[16971] | 1 | {{ if .Site.Params.showFooter | default true }} |
---|
| 2 | <footer> |
---|
| 3 | <div class="container"> |
---|
| 4 | |
---|
| 5 | {{ if gt (.Site.Params.amountLatestPostsInFooter | default 7) 0 }} |
---|
| 6 | <div class="recent-posts"> |
---|
| 7 | <strong>{{ i18n "latestPosts" }}</strong> |
---|
| 8 | <ul> |
---|
| 9 | {{ $dontRender := (slice "page" "quote" "link" "status") }} |
---|
| 10 | {{ range (first (.Site.Params.amountLatestPostsInFooter | default 7) (where (where .Site.Pages.ByPublishDate.Reverse ".Kind" "page") ".Type" "not in" $dontRender )) }} |
---|
| 11 | <li> |
---|
| 12 | <a href="{{ .Permalink }}">{{ .Title }}</a> |
---|
| 13 | </li> |
---|
| 14 | {{ end }} |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | {{ end }} |
---|
| 18 | |
---|
| 19 | {{ if and .Site.Taxonomies.categories (gt ( .Site.Params.amountCategoriesInFooter | default 7 ) 0 ) }} |
---|
| 20 | <div class="categories"> |
---|
| 21 | <a href="{{ "/categories/" | relLangURL }}"><strong>{{ i18n "categories" }}</strong></a> |
---|
| 22 | <ul> |
---|
| 23 | {{ range $order, $taxonomy := (first ( .Site.Params.amountCategoriesInFooter | default 7 ) .Site.Taxonomies.categories.ByCount) }} |
---|
| 24 | <li> |
---|
| 25 | <a href="{{ (print "/categories/" ($taxonomy.Name | urlize)) | relLangURL }}">{{ $taxonomy.Name | humanize }} |
---|
| 26 | ({{ $taxonomy.Count }})</a> |
---|
| 27 | </li> |
---|
| 28 | {{ end }} |
---|
| 29 | </ul> |
---|
| 30 | </div> |
---|
| 31 | {{ end }} |
---|
| 32 | |
---|
| 33 | <div class="right"> |
---|
| 34 | {{ if .Site.Params.showSocialMedia | default true }} |
---|
| 35 | <div class="external-profiles"> |
---|
| 36 | <strong>{{ i18n "socialMedia" }}</strong> |
---|
| 37 | |
---|
| 38 | {{ range .Site.Params.socialMediaLinks }} |
---|
| 39 | <a href="{{ .link }}" target="_blank"><i class="{{ .icon }}"></i></a> |
---|
| 40 | {{ end }} |
---|
| 41 | </div> |
---|
| 42 | {{ end }} |
---|
| 43 | |
---|
| 44 | {{ if and (.Site.Params.showFooterLanguageChooser | default true) (gt .Site.Languages 1) }} |
---|
| 45 | {{- $.Scratch.Set "language" .Language -}} |
---|
| 46 | <div class="languages"> |
---|
| 47 | <strong>{{ i18n "otherLanguages" }}</strong> |
---|
| 48 | {{ range $.Site.Home.AllTranslations }} |
---|
| 49 | {{ if eq ($.Scratch.Get "language") .Language }} |
---|
| 50 | <a href="{{ .Permalink }}" class="active">{{ .Language }}</a> |
---|
| 51 | {{ else }} |
---|
| 52 | <a href="{{ .Permalink }}">{{ .Language }}</a> |
---|
| 53 | {{ end }} |
---|
| 54 | {{ end }} |
---|
| 55 | </div> |
---|
| 56 | {{ end }} |
---|
| 57 | |
---|
| 58 | {{ if .Site.Params.showArchive | default true }} |
---|
| 59 | <div class="archive"> |
---|
| 60 | <a href="{{ "/archive/" | relLangURL }}"><strong>{{ i18n "archive" }}</strong></a> |
---|
| 61 | </div> |
---|
| 62 | {{ end }} |
---|
| 63 | </div> |
---|
| 64 | </div> |
---|
| 65 | </footer> |
---|
| 66 | {{ end }} |
---|
| 67 | |
---|
| 68 | <div class="credits"> |
---|
| 69 | <div class="container"> |
---|
| 70 | <div class="copyright"> |
---|
| 71 | <a href="{{ .Site.Params.copyrightUrl | default "https://github.com/Lednerb" }}" target="_blank"> |
---|
| 72 | © |
---|
| 73 | {{ if .Site.Params.copyrightUseCurrentYear }} |
---|
| 74 | {{ now.Year }} |
---|
| 75 | {{ else }} |
---|
| 76 | {{ .Site.Params.copyrightYearOverride | default 2018 }} |
---|
| 77 | {{ end }} |
---|
| 78 | {{ .Site.Params.copyrightBy | default "by Lednerb" }} |
---|
| 79 | </a> |
---|
| 80 | {{ with .OutputFormats.Get "rss" -}} |
---|
| 81 | - |
---|
| 82 | <a href="{{ .Permalink }}">{{ .Name }}</a> |
---|
| 83 | {{- end }} |
---|
| 84 | </div> |
---|
| 85 | <div class="author"> |
---|
| 86 | <a href="{{ .Site.Params.creditsUrl | default "https://github.com/Lednerb/bilberry-hugo-theme" }}" |
---|
| 87 | target="_blank">{{ .Site.Params.creditsText | default "Bilberry Hugo Theme" }}</a> |
---|
| 88 | </div> |
---|
| 89 | </div> |
---|
| 90 | </div> |
---|