feat: Added page title switcher (#286)
| | |
| | | |
| | | Please note that fields such as start, end, authors, and tags will only appear if they have been populated. The image path defined under `image` parameter is relative to the static folder, similarly to images included in the post. |
| | | |
| | | ### Reverse Page Title |
| | | |
| | | By default, the title of pages is `Author | PageTitle`. You can switch the order to `PageTitle | Author` by setting the parameter `reversepagetitle` to `true` in `config.toml`. |
| | | |
| | | ```toml |
| | | [params] |
| | | reversepagetitle = true |
| | | |
| | | ``` |
| | | |
| | | ## License |
| | | |
| | | Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE). |
| | |
| | | # readMore = true |
| | | # postSectionName = "blog" |
| | | |
| | | reversepagetitle = true # When set to 'true', the Window Title will be reversed to 'Title | Author' instead of the default 'Author | Title' |
| | | |
| | | [simpleAnalytics] |
| | | # enable = true |
| | |
| | | <head> |
| | | <title> |
| | | {{ .Site.Params.author }}{{ with .Title }} |
| | | | |
| | | {{ . }} |
| | | {{ if (eq .Site.Params.reversepagetitle true) }} |
| | | {{ with .Title }} |
| | | {{ . }} | |
| | | |
| | | {{ end }}{{ .Site.Params.author }} |
| | | |
| | | {{ else }} |
| | | {{ .Site.Params.author }}{{ with .Title }} |
| | | | {{ . }} |
| | | |
| | | {{ end }} |
| | | |
| | | {{ end }} |
| | | |
| | | </title> |
| | | |
| | | <!-- Meta --> |