summaryrefslogtreecommitdiff
path: root/themes/archie/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'themes/archie/layouts/partials')
-rw-r--r--themes/archie/layouts/partials/footer.html42
-rw-r--r--themes/archie/layouts/partials/head.html11
-rw-r--r--themes/archie/layouts/partials/header.html66
-rw-r--r--themes/archie/layouts/partials/paginator.html15
4 files changed, 134 insertions, 0 deletions
diff --git a/themes/archie/layouts/partials/footer.html b/themes/archie/layouts/partials/footer.html
new file mode 100644
index 0000000..6063791
--- /dev/null
+++ b/themes/archie/layouts/partials/footer.html
@@ -0,0 +1,42 @@
+<footer>
+<hr>
+{{- range $index, $key := .Site.Params.Social -}}
+<a class="soc" href="{{ $key.url }}" title="{{ $key.name }}"><i class="{{ $key.name }}"></i></a>|
+{{- end -}} ⚡️
+
+{{ dateFormat "2006" now }} {{ with .Site.Copyright }} {{ . }} | {{ end }} <a href="https://github.com/athul/archie">Archie Theme</a>
+
+| Built with <a href="https://gohugo.io">Hugo</a> |
+
+
+{{- range $index, $key := .Site.Params.donations -}}
+<a class="soc" href="{{ $key.url }}" title="{{ $key.name }}"><i class="{{ $key.name }}"></i></a>|
+{{- end -}}
+
+</footer>
+{{ if not .Site.IsServer }}
+<!-- Matomo -->
+<script type="text/javascript">
+ var _paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+ _paq.push(["setDomains", ["*.blog.rogs.me"]]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="//analytics.rogs.me/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '2']);
+ 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+'matomo.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- End Matomo Code -->
+
+{{ end }}
+
+{{- if (isset .Site.Params "social") -}}
+<script>
+ feather.replace()
+</script>
+{{- end -}}
diff --git a/themes/archie/layouts/partials/head.html b/themes/archie/layouts/partials/head.html
new file mode 100644
index 0000000..20fde3e
--- /dev/null
+++ b/themes/archie/layouts/partials/head.html
@@ -0,0 +1,11 @@
+<header>
+ <div class="main">
+ <img style="width:100px" src="{{ .Site.Params.avatar | default "avatar.jpg" | relURL }}">
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ </div>
+ <nav>
+ {{ range .Site.Menus.main }}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{ end }}
+ </nav>
+</header>
diff --git a/themes/archie/layouts/partials/header.html b/themes/archie/layouts/partials/header.html
new file mode 100644
index 0000000..7234f29
--- /dev/null
+++ b/themes/archie/layouts/partials/header.html
@@ -0,0 +1,66 @@
+<head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ {{- $title := ( .Title ) -}}
+ {{- $siteTitle := ( .Site.Title ) -}}
+ {{- if .IsHome -}}
+ <title>{{ $siteTitle }} | Home </title>
+ {{- else -}}
+ <title>{{ $title }} - {{ $siteTitle }}</title>
+ {{- end -}}
+
+ {{- if isset .Site.Params "favicon" -}}
+ <link rel="icon" type="image/png" href={{ .Site.Params.favicon }} />
+ {{- end -}}
+
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <meta property="og:description" content="{{ .Params.description }}" />
+ <meta name="twitter:description" content="{{ .Params.description }}" />
+ <meta name="description" content="{{ $.Param "description" }}" />
+ <meta name="description" content="{{ $.Params.description }}" />
+
+ <meta property="og:title" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta name="twitter:title" content="{{ $title }} | {{ $siteTitle }}" />
+
+ <meta property="og:image" content="{{ .Site.Params.og_image }}"/>
+ <meta itemprop="name" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta name="application-name" content="{{ $title }} | {{ $siteTitle }}" />
+ <meta property="og:site_name" content="{{ .Site.Params.sitename }}" />
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ {{- template "_internal/opengraph.html" . -}}
+ {{- template "_internal/twitter_cards.html" . -}}
+ {{ if and (isset .Site.Params "social") (.Site.Params.useCDN | default false) -}}
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
+ {{- else if (isset .Site.Params "social") -}}
+ <script src="{{ .Site.BaseURL }}js/feather.min.js"></script>
+ {{ end }}
+ {{ if .Site.Params.useCDN | default false -}}
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@1,500&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
+ {{- else -}}
+ <link href="{{ .Site.BaseURL }}css/fonts.css" rel="stylesheet">
+ {{ end }}
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ .Site.BaseURL }}css/main.css" />
+ {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") -}}
+ <link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/dark.css" {{ if eq .Site.Params.mode "auto" }}media="(prefers-color-scheme: dark)"{{ end }} />
+ {{ end }}
+ <!-- Custom CSS style get applied last -->
+ {{- if isset .Site.Params "customcss" }}
+ {{ range .Site.Params.customCSS }}
+ <link rel="stylesheet" type="text/css" ref="{{ . | relURL }}">
+ {{ end }}
+ {{- end -}}
+ {{- range .Site.Params.customJS }}
+ {{- if or (hasPrefix . "http://") (hasPrefix . "https://") }}
+ <script src="{{ . }}"></script>
+ {{- else }}
+ <script src="{{ $.Site.BaseURL }}{{ . }}"></script>
+ {{- end }}
+ {{- end }}
+ <script src="https://kit.fontawesome.com/0460fae059.js" crossorigin="anonymous"></script>
+</head>
diff --git a/themes/archie/layouts/partials/paginator.html b/themes/archie/layouts/partials/paginator.html
new file mode 100644
index 0000000..5acc06d
--- /dev/null
+++ b/themes/archie/layouts/partials/paginator.html
@@ -0,0 +1,15 @@
+{{ $pag := $.Paginator }}
+{{ if gt $pag.TotalPages 1 }}
+<ul class="pagination">
+ <span class="page-item page-prev">
+ {{ if $pag.HasPrev }}
+ <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
+ {{ end }}
+ </span>
+ <span class="page-item page-next">
+ {{ if $pag.HasNext }}
+ <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
+ {{ end }}
+ </span>
+</ul>
+{{ end }}