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

View File

@ -4,9 +4,15 @@
{{ partial "languageSelect.html" . }}
{{ end }}
<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">
<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>.
@ -15,5 +21,4 @@
{{ partial "themeSwitcher.html" . }}
</div>
</footer>

View File

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

View File

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

View File

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