diff options
author | pavel <pavel.post@deutschebahn.com> | 2020-04-08 23:48:38 +0300 |
---|---|---|
committer | pavel <pavel.post@deutschebahn.com> | 2020-04-08 23:48:38 +0300 |
commit | ff10f02d955de4beac261347b021ceb542593d09 (patch) | |
tree | 9a95cb16e0c1d535df6bd31844234b948b6a6cbe /layouts | |
parent | 328762da566636d17d49c80f745440321c3e2271 (diff) |
initial commit
Diffstat (limited to 'layouts')
23 files changed, 221 insertions, 327 deletions
diff --git a/layouts/404.html b/layouts/404.html deleted file mode 100644 index 8c8881d..0000000 --- a/layouts/404.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ partial "header" . }} -<section class="hero is-fullheight"> - <div class="hero-body"> - <div class="container has-text-centered"> - <h1 class="title notfound">404</h1> - <h2 class="subtitle is-4"> - Page not found - </h2> - <a class="button" href="{{ .Site.BaseURL }}">Home Page</a> - </div> - </div> -</section> -{{ partial "footer" . }}
\ No newline at end of file diff --git a/layouts/_default/index.rss.xml b/layouts/_default/index.rss.xml index 3911b68..a4d5de4 100644 --- a/layouts/_default/index.rss.xml +++ b/layouts/_default/index.rss.xml @@ -6,7 +6,7 @@ <generator>Hugo - gohugo.io</generator> <language>{{ .Site.Language }}</language> <contact>{{ $.Site.Params.rss.authorEmail }}</contact> - <copyright>{{ .Site.Copyright | safeHTML}}</copyright> + <copyright>{{ .Site.Params.Info.Copyright | safeHTML}}</copyright> {{ with .OutputFormats.Get "RSS" }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6c2402f..8755d08 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1 +1,112 @@ -{{ template "index.html" . }} +<!-- Header --> +{{ partial "header" . }} + +<!-- Navigation --> +{{ partial "nav" . }} + + +<!-- Microblog Area --> +{{ if .Site.Params.microblog.enable }} +<section class="section-highlight"> + + <div class ="container"> + + <h2 class="areatitle">{{ i18n "microblog_title" }}</h2> + + <!-- show "number" of latest "micro" type articles --> + {{ range first .Site.Params.microblog.number (where .Data.Pages.ByDate.Reverse "Type" "micro") }} + + <!-- Article Tags --> + <div class="subtitle tags is-6 is-pulled-right"> + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} + </div> + + <!-- Date above Article Title--> + {{if not .Date.IsZero }} + <h2 class="subtitle is-6"> + <!-- Consider german month names --> + {{if eq .Site.Language.Lang "de" }} + {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }} + {{ else }} + {{ .Date.Format "January 2, 2006 | 15:04" }} + {{ end }} + </h2> + {{ end }} + + <!-- Article Title --> + <h1 class="title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h1> + + <!-- End loop --> + {{ end }} + + </div> +</section> +{{ end }} + +<!-- Blog Area --> +<section class="section"> + + <div class="container"> + + <h2 class="areatitle">{{ i18n "blog_title" }}</h2> + <!--<h2 class="areatitle">AKTUELLE BEITRÄGE</h2>--> + + <!-- Loop through all posts filtered by type "article" --> + {{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "article") }} + {{ range .Paginator.Pages }} + + <article> + + <!-- Article Tags --> + <div class="subtitle tags is-6 is-pulled-right"> + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} + </div> + + <!-- Date above Article Title--> + {{if not .Date.IsZero }} + <h2 class="subtitle is-6"> + <!-- Consider german month names --> + {{if eq .Site.Params.defaultContentLanguage "de" }} + {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }} + {{ else }} + {{ .Date.Format "January 2, 2006 | 15:04" }} + {{ end }} + </h2> + {{ end }} + + + <!-- Article Title --> + <h1 class="title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h1> + + <div class="content"> + + <!-- Article Summary --> + {{ .Summary | plainify | safeHTML }} + + <!-- "Read More" Button--> + <a class="button is-link" href="{{ .Permalink }}" style="height:28px">{{ i18n "read_more" }}</a> + + </div> + + </article> + + <!-- End loop --> + {{ end }} + + </div> +</section> + + +<!-- "Older Posts" / "Newer Posts" Buttons --> +{{ partial "page-navigation" . }} + +<!-- Footer --> +{{ partial "footer" . }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d6fb577..e469b5b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,22 @@ +<!-- Header --> {{ partial "header" . }} + +<!-- Navigation --> {{ partial "nav" . }} + <section class="section"> - <div class="container"> - <div class="subtitle tags is-6 is-pulled-right"> - {{ if .Params.tags }} - {{ partial "tags" .Params.tags }} - {{ end }} + + <div class="container"> + + {{ if eq .Type "page" }} + {{ partial "page" . }} + {{ else }} + {{ partial "article" . }} + {{ end }} + </div> - {{if not .Date.IsZero }}<h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2>{{ end }} - <h1 class="title">{{ .Title }}</h1> - {{ if and (.Site.Params.Info.adsense) (.Params.adsenseTop) }} - {{ partial "adsense" . }} - {{ end }} - <div class="content"> - {{ .Content }} - {{ if .Site.Params.Info.related }} - <div class="related">{{ partial "related" . }}</div> - {{ end }} - </div> - {{ if and (.Site.Params.Info.adsense) (.Params.adsenseBottom) }} - {{ partial "adsense" . }} - {{ end}} - </div> + </section> -{{ if (and (.Site.Params.Info.codeCopy) (findRE "<pre" .Content 1)) }} - <script src="/js/copycode.js"></script> -{{ end }} -{{ partial "disqus" . }} + +<!-- Footer --> {{ partial "footer" . }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index 526534b..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ partial "header" . }} -{{ partial "nav" . }} -<section class="section"> - <div class="container"> - {{- $pctx := . -}} - {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} - {{- $pages := $pctx.RegularPages -}} - {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }} - {{ range sort .Paginator.Pages }} - <article> - <div class="subtitle tags is-6 is-pulled-right"> - {{ if .Params.tags }} - {{ partial "tags" .Params.tags }} - {{ end }} - </div> - <h2 class="subtitle is-6 date">{{ .Date.Format "January 2, 2006" }}</h2> - <h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}{{ partial "taxonomies_count" . }}</a>{{ if .Draft }} ::Draft{{ end }}</h1> - <div class="content"> - {{ .Summary | plainify | safeHTML }} - {{ if .Truncated }} - <a class="button is-link" href="{{ .Permalink }}" style="height:28px"> - Read more - </a> - {{ end }} - </div> - </article> - {{ end }} - </div> -</section> -{{ partial "pager" . }} -{{ partial "footer" . }}
\ No newline at end of file diff --git a/layouts/partials/adsense.html b/layouts/partials/adsense.html deleted file mode 100644 index ca37e25..0000000 --- a/layouts/partials/adsense.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ if not (in (printf "%#v" .Site.BaseURL) "localhost") }} -<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> -<ins class="adsbygoogle" - style="display:block; text-align:center;" - data-ad-format="fluid" - data-ad-layout="in-article" - data-ad-client="ca-pub-{{.Site.Params.Info.adsense}}" - data-ad-slot="6857547199"></ins> -<script> - (adsbygoogle = window.adsbygoogle || []).push({}); -</script> -{{ else }} -<div class="row"> -<div class="col-md-11 col-md-offset-1 card"> -<p>Adsense is unavailable while serving on localhost or 127.0.0.1</p> -</div> -</div> -{{ end }}
\ No newline at end of file diff --git a/layouts/partials/analytics/fathom.html b/layouts/partials/analytics/fathom.html deleted file mode 100644 index 7191265..0000000 --- a/layouts/partials/analytics/fathom.html +++ /dev/null @@ -1,12 +0,0 @@ -<script> - (function(f, a, t, h, o, m){ - a[h]=a[h]||function(){ - (a[h].q=a[h].q||[]).push(arguments) - }; - o=f.createElement('script'), - m=f.getElementsByTagName('script')[0]; - o.async=1; o.src=t; o.id='fathom-script'; - m.parentNode.insertBefore(o,m) - })(document, window, '{{ .Site.Params.fathomAnalytics.rootURL }}tracker.js', 'fathom'); - fathom('trackPageview'); -</script>
\ No newline at end of file diff --git a/layouts/partials/analytics/matomo.html b/layouts/partials/analytics/matomo.html deleted file mode 100644 index 2ddc9f3..0000000 --- a/layouts/partials/analytics/matomo.html +++ /dev/null @@ -1,15 +0,0 @@ -<script type="text/javascript"> - var _paq = _paq || []; - _paq.push(['trackPageView']); - _paq.push(['enableLinkTracking']); - (function() { - var u="{{ .Site.Params.matomoAnalytics.rootURL }}"; - _paq.push(['setTrackerUrl', u+'piwik.php']); - _paq.push(['setSiteId', '{{ .Site.Params.matomoAnalytics.siteID }}']); - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); - })(); -</script> -<noscript> - <img src="{{ .Site.Params.matomoAnalytics.rootURL }}piwik.php?idsite={{ .Site.Params.matomoAnalytics.siteID }}&rec=1" style="border:0" alt="" /> -</noscript> diff --git a/layouts/partials/article.html b/layouts/partials/article.html new file mode 100644 index 0000000..a0829ed --- /dev/null +++ b/layouts/partials/article.html @@ -0,0 +1,29 @@ +<!-- Article Tags --> +<div class="subtitle tags is-6 is-pulled-right"> + {{ if .Params.tags }} + {{ partial "tags" .Params.tags }} + {{ end }} +</div> + +<!-- Date above Article Title--> +{{if not .Date.IsZero }} +<h2 class="subtitle is-6"> + {{ .Date.Format "January 2, 2006" }} +</h2> +{{ end }} + +<!-- Article Title --> +<h1 class="title">{{ .Title }}</h1> + +<div class="content"> + + <!-- Article Content --> + {{ .Content }} + + <!-- Related Articles --> + {{ if .Site.Params.Info.related }} + <div class="related">{{ partial "related" . }}</div> + {{ end }} + +</div> + diff --git a/layouts/partials/data/description b/layouts/partials/data/description deleted file mode 100644 index e3c558d..0000000 --- a/layouts/partials/data/description +++ /dev/null @@ -1,11 +0,0 @@ -{{- with .Description -}} - {{- . -}} -{{- else -}} - {{- if .IsPage -}} - {{- .Summary -}} - {{- else -}} - {{- with .Site.Params.Info.description -}} - {{- . -}} - {{- end -}} - {{- end -}} -{{- end -}} diff --git a/layouts/partials/data/title b/layouts/partials/data/title deleted file mode 100644 index 0af7012..0000000 --- a/layouts/partials/data/title +++ /dev/null @@ -1,19 +0,0 @@ -{{- $title := ( .Title ) -}} -{{- $siteTitle := ( .Site.Title ) -}} -{{- $sep := ( .Site.Params.SEO.titleSeparator | default "-" ) -}} -{{- $title404 := ( $title ) -}} - -{{- if .IsHome -}} - {{ $siteTitle }} -{{- else if eq .Kind "404" -}} - {{ $title404 }} {{ $sep }} {{ $siteTitle }} -{{- else if eq .Kind "taxonomy" -}} - {{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) | title -}} - {{- print ": " -}} - {{- $title -}} - {{- print " " $sep " " $siteTitle -}} -{{- else if ( or .IsNode ( eq .Section "page" ) ) -}} - {{ $title }} {{ $sep }} {{ $siteTitle }} -{{- else -}} - {{ $title }} {{ $sep }} {{ $siteTitle }} -{{- end -}} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html deleted file mode 100644 index d9e3446..0000000 --- a/layouts/partials/disqus.html +++ /dev/null @@ -1,35 +0,0 @@ -{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }} -<section class="section"> - <div class="container"> - <aside><div id="disqus_thread"></div></aside> - {{ if .Site.Params.Features.DisqusOnDemand }} - <div id="show_comments"><a id="load_comments" class="button is-link">Load comments</a></div> - {{ end }} - <script type="text/javascript"> - var disqus_shortname = '{{ .Site.DisqusShortname }}'; - function disqus() { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - } - {{ if .Site.Params.Features.DisqusOnDemand }} - //Opens comments when linked to directly - var hash = window.location.hash.substr(1); - if ((hash.length > 8) && (hash.substring(0, 8) === "comment-")) { - disqus(); - document.getElementById("show_comments").style.display = "none"; - } else { - document.getElementById('load_comments').onclick = function() { - disqus(); - document.getElementById("show_comments").style.display = "none"; - }; - } - {{ else }} - disqus(); - {{ end }} - - </script> - <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> - </div> -</section> -{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 707adf1..60ec083 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,19 +1,12 @@ + <section class="section"> <div class="container has-text-centered"> - <p>{{ .Site.Copyright | safeHTML }}</p> + <p>{{ .Site.Params.Info.Copyright | safeHTML }}</p> {{if .Site.Params.Info.poweredby}} - <p>Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/ribice/kiss">Kiss</a>.</p> + <p>Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/pavel-pi/kiss-em">Kiss'Em</a>.</p> {{ end }} </div> </section> -{{ if .Site.GoogleAnalytics }} -{{ template "_internal/google_analytics_async.html" . }} -{{ end }} -{{ if .Site.Params.matomoAnalytics }} -{{- partial "analytics/matomo" . -}} -{{ end }} -{{ if .Site.Params.fathomAnalytics }} -{{- partial "analytics/fathom" . -}} -{{ end }} + </body> </html> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8d2f3b6..135e36e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,30 +1,32 @@ -<!DOCTYPE html> +<!doctype html> + <html xmlns="http://www.w3.org/1999/xhtml" {{ with .Site.LanguageCode }} lang="{{ . }}"{{ end }}> -<head> -<meta charset="UTF-8" /> -<meta name="viewport" content="width=device-width, initial-scale=1"/> -{{ if eq .IsHome false }} -<title>{{ .Title }} | {{ .Site.Title }}</title> -{{ else }} -<title>{{ .Site.Params.Info.homeTitle }}</title> -{{ end }} -{{ if .Site.Params.Info.enableSocial }} -{{- partial "social/opengraph" . -}} -{{ end }} -{{ if .Site.Params.rss }} -<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> -{{ end }} -<link rel="stylesheet" href="{{ "css/style.css" | relURL }}"/> -{{- range .Site.Params.Assets.customCSS -}} -<link rel='stylesheet' href='{{ . | absURL }}'> -{{- end -}} -<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> -<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> -<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> -<link rel="manifest" href="/site.webmanifest"> -<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> -<link rel="canonical" href="{{ .Permalink }}"> -<meta name="msapplication-TileColor" content="#da532c"> -<meta name="theme-color" content="#ffffff"> -</head> -<body>
\ No newline at end of file + + <head> + + <!-- Define character set --> + <meta charset="UTF-8" /> + + <!-- Mobile optimization --> + <meta name="viewport" content="width=device-width, initial-scale=1"/> + + <!-- Define Page title --> + <title> + {{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Title }} {{ end }} + </title> + + {{ if .Site.Params.rss.enable }} + <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + {{ end }} + + <!-- Theme's CSS --> + <link rel="stylesheet" href="{{ "css/style.css" | relURL }}"/> + + <!-- Custom CSS can be used to override CSS definitions --> + {{ range .Site.Params.Assets.customCSS }} + <link rel='stylesheet' href='{{ . | absURL }}'> + {{ end }} + + </head> + + <body> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 69f6f8d..6d9b1ff 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -7,12 +7,16 @@ </a> </div> <div class="nav-right"> + + <nav id="nav-items" class="nav-item level is-mobile"> {{- $social := ( .Site.Params.social ) -}} {{- range $platform := $social.config.platforms -}} {{- with $username := ( index $social $platform ) -}} + + <!-- do not open "about" in new tab --> <a class="level-item" aria-label="{{ $platform }}" href='{{ print ( index $.Site.Data.theme.social.base $platform ) $username }}' - target='_blank' rel='noopener'> + {{ if ne $platform "about" }} target='_blank' {{ end }} rel='noopener'> <span class="icon"> <i class> {{- partial "svg/icons" $platform -}} @@ -22,6 +26,8 @@ {{- end -}} {{- end -}} </nav> + + </div> </nav> @@ -52,5 +58,4 @@ </nav> </div> - <script src="/js/navicon-shift.js"></script> </section>
\ No newline at end of file diff --git a/layouts/partials/pager.html b/layouts/partials/page-navigation.html index 08fe3d4..5671230 100644 --- a/layouts/partials/pager.html +++ b/layouts/partials/page-navigation.html @@ -8,7 +8,7 @@ <span class="icon is-small is-marginless"> {{ partial "svg/icons" "prev" }} </span> - Newer + {{ i18n "next_page" }} </a> {{ end }} </div> @@ -17,7 +17,7 @@ <div class="level-item"> {{ if .Paginator.HasNext }} <a class="button" href="{{ .Paginator.Next.URL }}"> - Older + {{ i18n "prev_page" }} <span class="icon is-small is-marginless"> {{ partial "svg/icons" "next" }} </span> diff --git a/layouts/partials/page.html b/layouts/partials/page.html new file mode 100644 index 0000000..a1ea1bf --- /dev/null +++ b/layouts/partials/page.html @@ -0,0 +1,7 @@ +<!-- Article Title --> +<h1 class="title">{{ .Title }}</h1> + +<!-- Content --> +<div class="content"> + {{ .Content }} +</div>
\ No newline at end of file diff --git a/layouts/partials/related.html b/layouts/partials/related.html index 0748ebf..fda1889 100644 --- a/layouts/partials/related.html +++ b/layouts/partials/related.html @@ -1,9 +1,12 @@ {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }} -<h3>Similar articles:</h3> + +<h3>{{ i18n "similar_articles" }}</h3> + <ul> {{ range . }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> {{ end }} </ul> -{{ end }}
\ No newline at end of file + +{{ end }} diff --git a/layouts/partials/social/opengraph.html b/layouts/partials/social/opengraph.html deleted file mode 100644 index aeba122..0000000 --- a/layouts/partials/social/opengraph.html +++ /dev/null @@ -1,80 +0,0 @@ -<meta property='og:title' content='{{ partial "data/title" . }}'> -<meta property='og:description' content='{{ partial "data/description" . }}'> -<meta property='og:url' content='{{ .Permalink }}'> -<meta property='og:site_name' content='{{ .Site.Title }}'> -<meta property='og:type' content=' - {{- if .IsPage -}} - article - {{- else -}} - website - {{- end -}} -'> - -{{- with .Params.image -}} - <meta property='og:image' content='{{ . | absURL }}'> -{{- else -}} -{{- with .Site.Params.Social.email -}} - <meta property='og:image' content='https://www.gravatar.com/avatar/ - {{- . | md5 -}} - ?s=256'> -{{- end -}} - -{{- with .Params.audios -}} - {{- range first 6 . -}} - <meta property='og:audio' content='{{ . | absURL }}'> - {{- end -}} -{{- end -}} - -{{- with .Params.videos -}} - {{- range first 6 . -}} - <meta property='og:video' content='{{ . | absURL }}'> - {{- end -}} -{{- end -}} - -{{- if .IsPage -}} - {{- with .Site.Params.Social.facebook -}} - <meta property='article:author' content='https://facebook.com/{{ . }}'> - {{- end -}} - {{- end -}} - - {{- with .Site.Params.opengraph.facebook.pageid -}} - <meta property='article:publisher' content='{{ . }}'> - {{- end -}} - - <meta property='article:section' content='{{- .Section | title -}}'> - {{- range .Params.tags -}} - <meta property='article:tag' content='{{ . }}'> - {{- end -}} -{{- end -}} - -{{- $dateFormat := "2006-01-02T15:04:05Z07:00" -}} -{{- if .IsPage -}} - {{- if not .PublishDate.IsZero -}} - <meta property='article:published_time' content='{{ .PublishDate.Format $dateFormat }}'/> - {{- else if not .Date.IsZero -}} - <meta property='article:published_time' content='{{ .Date.Format $dateFormat }}'/> - {{- end -}} - - {{- if not .Lastmod.IsZero -}} - <meta property='article:modified_time' content='{{ .Lastmod.Format $dateFormat }}'/> - {{- end -}} - - {{- if not .ExpiryDate.IsZero -}} - <meta property='article:expiration_time' content='{{ .ExpiryDate.Format $dateFormat }}'/> - {{- end -}} -{{- else -}} - {{- if not .Site.LastChange.IsZero -}} - <meta property='og:updated_time' content='{{ .Site.LastChange.Format $dateFormat }}'/> - {{- end -}} -{{- end -}} - -{{- with .Site.Params.opengraph.facebook -}} - {{- with .appid -}} - <meta property='fb:app_id' content='{{ . }}'> - {{- end -}} - {{- range .admins -}} - <meta property='fb:admins' content='{{ . }}'> - {{- end -}} -{{- end -}} - -{{- partial "social/twitter" . -}} diff --git a/layouts/partials/social/twitter.html b/layouts/partials/social/twitter.html deleted file mode 100644 index 08a66b2..0000000 --- a/layouts/partials/social/twitter.html +++ /dev/null @@ -1,7 +0,0 @@ -<meta name='twitter:card' content='summary{{- if .Params.image -}}_large_image{{- end -}}'> -{{- if .Site.Params.opengraph.twitter.page -}} - <meta name='twitter:site' content='@{{- .Site.Params.opengraph.twitter.page -}}'> -{{- else -}} - <meta name='twitter:site' content='@{{- .Site.Params.Social.twitter -}}'> -{{- end -}} -<meta name='twitter:creator' content='@{{- .Site.Params.Social.twitter -}}'> diff --git a/layouts/partials/svg/icons.html b/layouts/partials/svg/icons.html index 32e83af..1a7a24d 100644 --- a/layouts/partials/svg/icons.html +++ b/layouts/partials/svg/icons.html @@ -1,12 +1,18 @@ +<!-- look out for more icons here: https://feathericons.com/ --> +<!-- and here: https://github.com/simple-icons/simple-icons/ --> <svg viewbox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'> {{ if eq "category" . }} <path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z"/> + {{ else if eq "android" . }} + <path d="M22.146 9.227c0-.815-.658-1.478-1.476-1.478s-1.48.66-1.48 1.48v6.19c0 .81.663 1.48 1.483 1.48.814 0 1.476-.67 1.476-1.48v-6.2h-.01zM5.393 8.032l.004 9.6c0 .885.704 1.59 1.573 1.59h1.063v3.28c0 .82.66 1.482 1.47 1.482s1.467-.66 1.48-1.468v-3.28h1.993v3.28c0 .823.66 1.483 1.47 1.483.823 0 1.482-.66 1.482-1.49v-3.28h1.078c.87 0 1.573-.71 1.573-1.578v-9.63L5.35 8.03l.04.002zm9.648-2.93c-.31 0-.56-.25-.56-.56 0-.305.25-.558.56-.56.31 0 .56.255.56.56 0 .31-.25.56-.56.56m-6.06 0c-.31 0-.56-.25-.56-.56 0-.307.25-.558.56-.558.31 0 .56.255.56.57s-.252.567-.57.567m6.29-2.9L16.29.33c.06-.105.014-.226-.076-.285C16.11 0 15.99.03 15.93.135l-1.05 1.9c-.868-.405-1.856-.63-2.89-.63s-2.018.215-2.892.603L8.064.105c-.053-.098-.18-.135-.278-.08-.1.045-.136.18-.08.27l1.03 1.875c-2.03 1.047-3.4 3.04-3.4 5.33h13.328c0-2.29-1.368-4.283-3.396-5.33M3.33 7.742c-.817 0-1.48.665-1.48 1.483v6.192c0 .82.664 1.48 1.484 1.48.814 0 1.477-.66 1.477-1.48v-6.19c0-.815-.66-1.478-1.47-1.478"/> {{ else if eq "tag" . }} <path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z"/> <line x1="7" y1="7" x2="7" y2="7"/> {{ else if eq "author" . }} <path d="M21,21V20c0-2.76-4-5-9-5s-9,2.24-9,5v1"/> <path d="M16,6.37A4,4,0,1,1,12.63,3,4,4,0,0,1,16,6.37Z"/> + {{ else if eq "xing" . }} + <path d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z"/> {{ else if eq "calendar" . }} <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/> <line x1="16" y1="2" x2="16" y2="6"/> diff --git a/layouts/partials/taxonomies_count.html b/layouts/partials/taxonomies_count.html deleted file mode 100644 index a17590d..0000000 --- a/layouts/partials/taxonomies_count.html +++ /dev/null @@ -1,13 +0,0 @@ -{{if .Site.Params.Info.taxonomiesCount}} -{{ $title := urlize .Title }} - {{ range $taxonomy_name, $taxonomy := .Site.Taxonomies }} - {{ if eq $.Section $taxonomy_name}} - {{ range $key, $value := $taxonomy }} - {{ $term := urlize $key }} - {{ if eq $title $term }} - ({{ $value.Count }}) - {{ end }} - {{ end }} - {{ end }} - {{ end }} -{{ end }}
\ No newline at end of file diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html index ad006df..176e28b 100644 --- a/layouts/taxonomy/tag.html +++ b/layouts/taxonomy/tag.html @@ -24,5 +24,5 @@ {{ end }} </div> </section> -{{ partial "pager" . }} +{{ partial "page-navigation" . }} {{ partial "footer" . }} |