mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Add themesDir option to configuration
themesDir can be used to change the default path of the themes folder. Fixes 1556
This commit is contained in:
		
				
					committed by
					
						
						Steve Francia
					
				
			
			
				
	
			
			
			
						parent
						
							40fccf2251
						
					
				
				
					commit
					47587321d9
				
			@@ -132,7 +132,7 @@ func FindArchetype(kind string) (outpath string) {
 | 
			
		||||
	search := []string{helpers.AbsPathify(viper.GetString("archetypeDir"))}
 | 
			
		||||
 | 
			
		||||
	if viper.GetString("theme") != "" {
 | 
			
		||||
		themeDir := filepath.Join(helpers.AbsPathify("themes/"+viper.GetString("theme")), "/archetypes/")
 | 
			
		||||
		themeDir := filepath.Join(helpers.AbsPathify(viper.GetString("themesDir")+"/"+viper.GetString("theme")), "/archetypes/")
 | 
			
		||||
		if _, err := os.Stat(themeDir); os.IsNotExist(err) {
 | 
			
		||||
			jww.ERROR.Println("Unable to find archetypes directory for theme :", viper.GetString("theme"), "in", themeDir)
 | 
			
		||||
		} else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user