Initial commit

This commit is contained in:
Elnu 2022-06-10 12:27:13 -07:00
parent 1228692325
commit dbe51f693d
23 changed files with 1924 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{{ range (.Pages.GroupByDate "2006") }}
<h3>{{ .Key }}</h3>
{{ range .Pages }}
<time datetime="{{ .Date.Format " 2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "01/02" }}</time>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a><br>
{{- end -}}
{{ end }}

View file

@ -0,0 +1,13 @@
<footer>
{{ range .Site.Sections }}
<a href="{{.RelPermalink }}">{{ .Title }}</a>
{{ end }}
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies }}
{{ if $taxonomy }}<a href="{{ "/" | relLangURL }}{{ $taxonomyname | urlize }}/">{{ $taxonomyname | title }}</a> {{ end }}
{{ end }}
<div id="footer-content">
Copyright &copy; {{ dateFormat "2006" now }} <b>{{ .Site.Title }}</b>. All rights reserved.<br>
Site last regenerated with <a href="https://gohugo.io/">Hugo</a> at {{ partial "time.html" (dict "Date" now) }}</small>
</div>
</footer>

View file

@ -0,0 +1,22 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/normalize.css">
<link rel="stylesheet" href="/css/sakura{{ if isset .Site.Params "theme" }}-{{ .Site.Params.Theme }}{{ end }}.css">
{{ if isset .Site.Params "MatomoSiteId" }}
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://{{ .Site.Params.MatomoURL }}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ .Site.Params.MatomoSiteId }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
{{ end }}
<title>{{ if and (eq .Kind "term") (eq .Data.Singular "tag") }}#{{ end }}{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
</head>

View file

@ -0,0 +1 @@
{{ if and .IsHome (eq .Paginator.PageNumber 1) }}{{ .Site.Params.HomepageHeader | safeHTML }}{{ else }}<a href="/">&laquo; Home</a>{{ end }}

View file

@ -0,0 +1,7 @@
Posted by {{ .Site.Params.author }} on {{ partial "time.html" . }}
<p>
{{ range $i, $e := .Params.tags -}}
{{- if $i -}}, {{ end -}}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" rel="tag">#{{ $e }}</a>
{{- end -}}
</p>

View file

@ -0,0 +1,29 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
{{ $.Scratch.Set "dot_rendered" false }}
<nav aria-label="page navigation">
{{ if and (ne $pag.PageNumber 1) (ne $pag.PageNumber 2) }}
<a href="{{ $pag.First.URL }}" rel="first">« First</a>
{{ end }}
{{ if $pag.HasPrev }}
<a href="{{ $pag.Prev.URL }}" rel="prev" class="page-link"> Prev</a>
{{ end }}
{{ range $pag.Pagers }}
{{ if eq . $pag }}
{{ .PageNumber }}
{{ else if and (ge .PageNumber (sub $pag.PageNumber 2)) (le .PageNumber (add $pag.PageNumber 2)) }}
{{ $.Scratch.Set "dot_rendered" false }}
<a href="{{ .URL }}">{{ .PageNumber }}</a>
{{ else if eq ($.Scratch.Get "dot_rendered") false }}
{{ $.Scratch.Set "dot_rendered" true }}
&hellip;
{{ end }}
{{ end }}
{{ if $pag.HasNext }}
<a href="{{ $pag.Next.URL }}" rel="next" class="page-link">Next </a>
{{ end }}
{{ if and (ne $pag.PageNumber $pag.TotalPages) ((ne $pag.PageNumber (sub $pag.TotalPages 1))) }}
<a href="{{ $pag.Last.URL }}" rel="last" class="page-link">Last »</a>
{{ end }}
</nav>
{{ end }}

View file

@ -0,0 +1 @@
<time datetime="{{ .Date.Format " 2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006/01/02 15:04" }}</time>