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

{{ .Title }}

-
+
{{ $baseurl := .Site.BaseURL }}
@@ -13,12 +13,14 @@

{{ .Title }}

{{ .Content }} -

{{ i18n "tags" }}:  - {{ range $i, $e := .Params.tags }} - {{if $i}}, {{end}} - {{ . }} - {{ end }} -

+ {{ with .Params.tags }} +

{{ i18n "tags" }}:  + {{ range $i, $e := . }} + {{if $i}}, {{end}} + {{ . }} + {{ end }} +

+ {{ end }} {{ partial "comments.html" . }}
diff --git a/layouts/post/summary.html b/layouts/post/summary.html index 03b3504..e4dd07a 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -1,15 +1,17 @@
- - + +

{{ .Title }} {{ if .Draft }}(draft){{end}}

{{ .Summary }}

{{ $baseurl := .Site.BaseURL }} -

{{ i18n "tags" }}:  - {{ range $i, $e := .Params.tags }} - {{if $i}}, {{end}} - {{ . }} - {{ end }}

+ {{ with .Params.tags }} +

{{ i18n "tags" }}:  + {{ range $i, $e := . }} + {{if $i}}, {{end}} + {{ . }} + {{ end }}

+ {{ end }}