forked from nyancrimew/maia.crimew.gay
		
	slightly optimize nunjucks config
This commit is contained in:
		
							parent
							
								
									5a0601e532
								
							
						
					
					
						commit
						b77e776752
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -14,6 +14,11 @@ module.exports = function (eleventyConfig) { | ||||||
|   const formatPart = (part, date) => |   const formatPart = (part, date) => | ||||||
|   new Intl.DateTimeFormat("en", part).format(date); |   new Intl.DateTimeFormat("en", part).format(date); | ||||||
| 
 | 
 | ||||||
|  |   eleventyConfig.setNunjucksEnvironmentOptions({ | ||||||
|  |     lstripBlocks: true, | ||||||
|  |     trimBlocks: true | ||||||
|  |   }); | ||||||
|  | 
 | ||||||
|   eleventyConfig.addPlugin(pluginRss); |   eleventyConfig.addPlugin(pluginRss); | ||||||
|   eleventyConfig.addPlugin(syntaxHighlight); |   eleventyConfig.addPlugin(syntaxHighlight); | ||||||
|   eleventyConfig.addPlugin(timeToRead); |   eleventyConfig.addPlugin(timeToRead); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue