This commit is contained in:
Henrique Dias 2017-07-18 08:11:42 +01:00
parent 87fc8db54f
commit f2b880dccf
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
4 changed files with 8 additions and 9 deletions

View File

@ -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">

View File

@ -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
}
```

View File

@ -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'
},

View File

@ -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