{{ .Title }} {{ if .Draft }}(draft){{end}}
{{ .Summary }}
{{ $baseurl := .Site.BaseURL }} - - + + + {{ with .Params.tags }} + + {{ end }}diff --git a/README.md b/README.md index b6256ad..6af0c29 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,11 @@ theme = "pixyll" twitter_username = "username" disqus_shortname = "sitename" paginate = true + +[[menu.main]] + url = "/about" + name = "About" + weight = 0 ``` ## Search diff --git a/i18n/en.toml b/i18n/en.toml index 0ed1828..0b8625a 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,9 +1,3 @@ -[about] -other = "About" - -[contact] -other = "Contact" - [tags] other = "Tags" @@ -18,3 +12,10 @@ other = "Newer" [older] other = "Older" + +[by] +other = "by" + +[post_date_format] +other = "Jan 2, 2006" + diff --git a/i18n/ru.toml b/i18n/ru.toml index c8d2b78..1dd963a 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -1,9 +1,3 @@ -[about] -other = "О нас" - -[contact] -other = "Контакты" - [tags] other = "Теги" @@ -18,3 +12,9 @@ other = "Следующая" [older] other = "Предыдущая" + +[by] +other = "автор: " + +[post_date_format] +other = "02.01.2006" diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 8ba1dc0..9caa646 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,6 +1,11 @@ -{{ i18n "about" }} +{{ $currentPage := . }} +{{ range .Site.Menus.main }} + {{ .Name }} +{{ end }} + +{{ if .Site.Taxonomies.tags }} {{ i18n "tags" }} -{{ i18n "contact" }} +{{ end }} {{- if .Site.IsMultiLingual -}} {{- range $lang := .Site.Languages -}} {{- if ne $.Site.Language $lang -}} diff --git a/layouts/post/single.html b/layouts/post/single.html index 3e6c8a1..71fc7de 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -5,7 +5,7 @@
{{ .Summary }}
{{ $baseurl := .Site.BaseURL }} - - + + + {{ with .Params.tags }} + + {{ end }}