🎉 Initial commit

This commit is contained in:
James Panther
2021-08-11 15:28:33 +10:00
commit a6a3ee761e
54 changed files with 6713 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}">
{{- partial "head.html" . -}}
<body
class="flex flex-col h-screen px-8 text-lg leading-7 text-grey-900 sm:px-14 md:px-24 lg:px-32 dark:bg-gray-800 dark:text-white"
>
{{- partial "header.html" . -}}
<main class="flex-grow">{{- block "main" . }}{{- end }}</main>
{{- partial "footer.html" . -}}
</body>
</html>
+13
View File
@@ -0,0 +1,13 @@
{{ define "main" }}
{{ partial "section-heading.html" . }}
<section>
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
<h2 class="mt-12 text-2xl font-bold first:mt-8">{{ .Key }}</h2>
<hr class="border-gray-400 border-dotted w-36" />
{{ range .Pages }}
{{ partial "article-link.html" . }}
{{ end }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}
+20
View File
@@ -0,0 +1,20 @@
{{ define "main" }}
<article class="max-w-prose">
<header>
<h1 class="mt-0 text-4xl font-extrabold">{{ .Title }}</h1>
<div class="mt-8 mb-12 text-base text-gray-400 dark:text-gray-500">
{{ partial "meta.html" . }}
</div>
</header>
<section class="prose dark:prose-light">
{{ partial "heading-anchor.html" .Content | emojify }}
</section>
<footer>
{{ partialCached "author.html" . }}
</footer>
{{/* Comments */}}
{{ if templates.Exists "partials/comments.html" }}
{{ partial "comments.html" . }}
{{ end }}
</article>
{{ end }}
+29
View File
@@ -0,0 +1,29 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ $excludedKinds := slice "taxonomy" "term" }}
{{ range .Data.Pages }}
{{ if not (in $excludedKinds .Kind) }}
{{ if not (isset .Params "externalurl") }}
{{- if .Permalink -}}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.Lang }}"
href="{{ .Permalink }}"
/>{{ end }}
<xhtml:link
rel="alternate"
hreflang="{{ .Language.Lang }}"
href="{{ .Permalink }}"
/>{{ end }}
</url>
{{- end -}}
{{ end }}
{{ end }}
{{ end }}
</urlset>