Merge pull request #58 from thenktor/master

some new features and bug fixes
This commit is contained in:
Dmitry Kolosov 2020-09-07 21:10:36 +03:00 committed by GitHub
commit 350ae2dae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 20 deletions

View File

@ -1,23 +1,23 @@
powered: powered:
other: "powered by" other: "Erstellt mit"
theme: theme:
other: "theme" other: "Theme"
readMore: readMore:
other: "Weiterlesen" other: "Weiterlesen"
toNewPosts: toNewPosts:
other: "zu neueren Beiträgen" other: "Zu neueren Beiträgen"
toOldPosts: toOldPosts:
other: "zu älteren Beiträgen" other: "Uu älteren Beiträgen"
tag: tag:
other: "tag" other: "Schlagwort"
Tags: Tags:
other: "Tags" other: "Schlagwörter"
Posts: Posts:
other: "Beiträge" other: "Beiträge"
@ -29,16 +29,16 @@ Categories:
other: "Kategorien" other: "Kategorien"
toAllTags: toAllTags:
other: "zu allen tags" other: "Zu allen Schlagwörtern"
toAllCategories: toAllCategories:
other: "zu allen Kategorien" other: "Zu allen Kategorien"
skipToContent: skipToContent:
other: "zum Hauptinhalt springen" other: "Zum Hauptinhalt springen"
darkTheme: darkTheme:
other: "dunkles thema" other: "Dunkles thema"
lightTheme: lightTheme:
other: "licht thema" other: "Licht thema"

View File

@ -4,9 +4,15 @@
{{ partial "languageSelect.html" . }} {{ partial "languageSelect.html" . }}
{{ end }} {{ end }}
<div class="common-footer-bottom"> <div class="common-footer-bottom">
{{ if .Site.Menus.footer }}
{{ $currentPage := . }}
<ul class="footer-menu">
{{ range .Site.Menus.footer }}
<li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
<div class="copyright"> <div class="copyright">
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br> <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
{{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>. {{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.
@ -15,5 +21,4 @@
{{ partial "themeSwitcher.html" . }} {{ partial "themeSwitcher.html" . }}
</div> </div>
</footer> </footer>

View File

@ -1,6 +1,6 @@
{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }} {{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }}
{{ $toNewPostsMessage := i18n "toNewPosts" | humanize }} {{ $toNewPostsMessage := i18n "toNewPosts" }}
{{ $toOldPostsMessage := i18n "toOldPosts" | humanize }} {{ $toOldPostsMessage := i18n "toOldPosts" }}
<div class="pagination"> <div class="pagination">
<div class="left pagination-item {{ if not .Paginator.HasPrev }}disabled{{ end }}"> <div class="left pagination-item {{ if not .Paginator.HasPrev }}disabled{{ end }}">
{{ if .Paginator.HasPrev }} {{ if .Paginator.HasPrev }}
@ -13,4 +13,4 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
{{ end }} {{ end }}

View File

@ -11,7 +11,7 @@
{{ if .Params.categories }} {{ if .Params.categories }}
<ul class="post-categories"> <ul class="post-categories">
{{ range .Params.categories }} {{ range .Params.categories }}
<li><a href="{{ "categories/" | absLangURL }}{{ . }}">{{ . }}</a></li> <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}

View File

@ -425,13 +425,13 @@ article figcaption {
justify-content: space-between; justify-content: space-between;
} }
ul.language-select { ul.language-select, ul.footer-menu {
padding-left: 0; padding-left: 0;
list-style: none; list-style: none;
display: flex; display: flex;
} }
ul.language-select > li { ul.language-select > li, ul.footer-menu > li {
margin-right: 1em; margin-right: 1em;
} }