updates
							parent
							
								
									87fc8db54f
								
							
						
					
					
						commit
						f2b880dccf
					
				|  | @ -2,8 +2,8 @@ | |||
|   <div class="dashboard"> | ||||
|     <h1>Profile Settings</h1> | ||||
| 
 | ||||
|     <ul> | ||||
|       <li><router-link v-if="user.admin" to="/settings/global">Go to Global Settings</router-link></li> | ||||
|     <ul v-if="user.admin"> | ||||
|       <li><router-link to="/settings/global">Go to Global Settings</router-link></li> | ||||
|     </ul> | ||||
| 
 | ||||
|     <form @submit="changePassword"> | ||||
|  |  | |||
|  | @ -12,11 +12,7 @@ Using this plugin, you won't need to have your own computer to edit posts, neith | |||
| 
 | ||||
| ``` | ||||
| hugo [directory] [admin] { | ||||
|     clean_public    [true|false] | ||||
|     before_publish  command | ||||
|     after_publish   command | ||||
|     flag            name  [value] | ||||
|     # other file manager compatible options | ||||
|     database  path | ||||
| } | ||||
| ``` | ||||
| 
 | ||||
|  |  | |||
|  | @ -138,6 +138,9 @@ | |||
|         click: function (event, data, route) { | ||||
|           data.store.commit('showHover', 'new-archetype') | ||||
|         }, | ||||
|         if: function (data, route) { | ||||
|           return data.store.state.user.allowNew | ||||
|         }, | ||||
|         icon: 'merge_type', | ||||
|         name: 'Hugo new' | ||||
|       }, | ||||
|  |  | |||
|  | @ -80,13 +80,13 @@ func parse(c *caddy.Controller) ([]*filemanager.FileManager, error) { | |||
| 		} | ||||
| 
 | ||||
| 		// if there is a database path and it is not absolute,
 | ||||
| 		// it will be relative to Caddy folder.
 | ||||
| 		// it will be relative to ".caddy" folder.
 | ||||
| 		if !filepath.IsAbs(database) && database != "" { | ||||
| 			database = filepath.Join(path, database) | ||||
| 		} | ||||
| 
 | ||||
| 		// If there is no database path on the settings,
 | ||||
| 		// store one in .caddy/hugo/name.db.
 | ||||
| 		// store one in .caddy/hugo/{name}.db.
 | ||||
| 		if database == "" { | ||||
| 			// The name of the database is the hashed value of a string composed
 | ||||
| 			// by the host, address path and the baseurl of this File Manager
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Henrique Dias
						Henrique Dias