commit fdf9c6321f1f492adb00f4e28ff45e4db89b79f4
Author: Chris Kiriakou <chris@kiriakou.net>
Date: Sat, 19 Sep 2026 00:07:51 +0200
First Commit
Diffstat:
26 files changed, 727 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/hugo-gh-pages.yml b/.github/workflows/hugo-gh-pages.yml
@@ -0,0 +1,70 @@
+name: Deploy theme example site to GitHub Pages
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - "example/**"
+ - "layouts/**"
+ - "assets/**"
+ - "static/**"
+ - "hugo.json"
+ - ".github/workflows/hugo-gh-pages.yml"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "hugo-theme-example"
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v3
+ with:
+ hugo-version: "latest"
+ extended: true
+
+ - name: Create temporary Hugo site
+ run: |
+ hugo new site site-tmp
+ rm -rf site-tmp/hugo.*
+ cd site-tmp
+ git init
+ git submodule add "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" themes/yamt
+ cd ..
+
+ - name: Copy example site into temp site
+ run: |
+ cp -r site-tmp/themes/yamt/example/* site-tmp/
+
+ - name: Build Hugo (from temp site)
+ working-directory: site-tmp
+ run: |
+ ls -R content/ themes/
+ hugo --baseURL https://ckiri.github.io/yamt/ --minify
+
+ - name: Upload Pages artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: site-tmp/public
+
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ needs: build
+
+ steps:
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
diff --git a/LICENSE b/LICENSE
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) 2025 Chris Kiriakou
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/assets/css/main.css b/assets/css/main.css
@@ -0,0 +1,223 @@
+html {
+ font-size: 1.1rem;
+ text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%;
+ -moz-text-size-adjust: 100%;
+ -webkit-text-size-adjust: 100%;
+ height: 100%;
+ scrollbar-color: grey transparent;
+}
+
+body {
+ display: flex;
+ flex-direction: column;
+ min-height: 100dvh;
+ height: 100%;
+ margin: 0 auto;
+ max-width: 47.5rem;
+ width: 100%;
+}
+
+header,
+main,
+footer {
+ padding-left: 0.5rem;
+ padding-right: 0.5rem;
+ width: 100%;
+ box-sizing: border-box;
+}
+
+header { padding-top: 0.5rem; }
+
+main {
+ flex: 1 0 auto;
+ max-width: 100%;
+ box-sizing: border-box;
+}
+
+footer {
+ font-size: smaller;
+ padding-bottom: 0.5rem;
+}
+
+footer nav {
+ width: 100%;
+ white-space: nowrap;
+ display: flex;
+ gap: 2ch;
+}
+
+footer nav { justify-content: center; }
+
+img {
+ display: block;
+ max-width: 100%;
+}
+
+p:has(img) {
+ display: flex;
+ gap: 1ch;
+ align-items: flex-start;
+}
+
+p img {
+ max-width: 35%;
+ height: auto;
+ align-self: flex-start;
+ object-fit: contain;
+ flex-shrink: 0;
+}
+
+main > *,
+article > * {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
+}
+
+a { overflow-wrap: break-word; }
+
+a:hover { text-decoration: none; }
+
+pre,
+code { font: 0.95em/1.1 "FreeMono", "Courier", "Courier New", monospace; }
+
+code { overflow-wrap: break-word; }
+
+article > pre {
+ display: block;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+
+table {
+ border-collapse: collapse;
+ overflow: hidden;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+th,
+td { padding: 0.25rem; }
+
+.math-block {
+ width: 100%;
+ overflow-x: auto;
+}
+
+.site-menu {
+ display: flex;
+ gap: 1rem;
+ justify-content: flex-end;
+}
+
+.tags {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 1rem;
+ align-items: center;
+}
+
+.metadata { display: grid; }
+
+.metadata > * { flex-direction: row; }
+
+.metadata-edited { font-style: italic; }
+
+.previews img { max-height: 200px; }
+
+.preview { margin: 1rem 0; }
+
+.preview nav { text-align: right; }
+
+.preview-footer {
+ display: flex;
+ column-gap: 2ch;
+}
+
+.preview-footer > * {
+ display: flex;
+ gap: 2ch;
+}
+
+.preview-footer-right { margin-left: auto; }
+
+.recent-posts > div { margin-top: 0.5rem; }
+
+.page-item {
+ display: flex;
+ flex-direction: row;
+ align-items: baseline;
+ margin: 0.25rem 0;
+}
+
+.page-item > div:first-child {
+ flex-shrink: 0;
+ white-space: nowrap;
+}
+
+.page-item > div > span { padding-right: 0.5rem; }
+
+figcaption,
+.footnotes { font-size: smaller; }
+
+.tag::before { content: "#"; }
+
+.highlight > .chroma { overflow-x: auto; }
+
+.highlight td,
+.highlight th,
+.highlight table { border: none; }
+
+.chroma .lnlinks { outline: none; }
+
+.chroma .lntd { vertical-align: top; }
+
+.chroma .line {
+ display: flex;
+ width: 100%;
+}
+
+.chroma .cl { flex: 1 1 auto; }
+
+@media print {
+ html {
+ font-size: 12pt;
+ line-height: 1.6;
+ }
+
+ a,
+ p {
+ overflow-wrap: break-word;
+ hyphens: auto;
+ text-align: justify;
+ }
+
+ .tag-section,
+ .micro-post-footer,
+ .regular-post-footer,
+ header,
+ footer { display: none; }
+
+ tbody,
+ thead {
+ border-top: 1px solid;
+ border-bottom: 1px solid;
+ }
+
+ figure,
+ .footnotes > ol > li,
+ table,
+ tr,
+ td,
+ th { page-break-inside: avoid; }
+
+ pre {
+ font-size: 10pt;
+ line-height: 1.1;
+ }
+
+ @page {
+ size: A4;
+ margin: 20mm;
+ }
+}
diff --git a/description b/description
@@ -0,0 +1 @@
+YAMT: Yet Another Minimal Theme
diff --git a/i18n/de.json b/i18n/de.json
@@ -0,0 +1,21 @@
+{
+ "section": "Bereich",
+ "tags": "Tags",
+ "recent": "Aktuelles",
+ "on": "auf",
+ "show": "Anzeigen",
+ "latestPost": "Neuster Beitrag",
+ "new": "neu",
+ "edited": "Bearbeitet",
+ "blog": "Blog",
+ "home": "Startseite",
+ "about": "Über Mich",
+ "email": "E-Mail",
+ "imprint": "Impressum",
+ "privacy": "Datenschutz",
+ "rssFeed": "RSS Feed",
+ "readMore": "Mehr lesen",
+ "min": "Min.",
+ "readingTime": "Lesedauer",
+ "recentPosts": "Aktuelle Blogbeiträge"
+}
diff --git a/i18n/en.json b/i18n/en.json
@@ -0,0 +1,21 @@
+{
+ "section": "Section",
+ "tags": "Tags",
+ "recent": "Recent",
+ "on": "on",
+ "show": "show",
+ "latestPost": "Latest Post",
+ "new": "new",
+ "edited": "Edited",
+ "blog": "Blog",
+ "home": "Home",
+ "about": "About",
+ "email": "Email",
+ "imprint": "Imprint",
+ "privacy": "Privacy",
+ "rssFeed": "RSS Feed",
+ "readMore": "Read More",
+ "min": "min.",
+ "readingTime": "Reading Time",
+ "recentPosts": "Recent Blog Posts"
+}
diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html
@@ -0,0 +1,13 @@
+{{- if .IsBlock -}}
+ <figure>
+ <img src="{{ .Destination | safeURL }}"
+ {{- with .PlainText }} alt="{{ . }}"{{ end -}}
+ >
+ {{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}}
+ </figure>
+{{- else -}}
+ <img src="{{ .Destination | safeURL }}"
+ {{- with .PlainText }} alt="{{ . }}"{{ end -}}
+ {{- with .Title }} title="{{ . }}"{{ end -}}
+ >
+{{- end -}}
diff --git a/layouts/_markup/render-passthrough.html b/layouts/_markup/render-passthrough.html
@@ -0,0 +1,14 @@
+{{- $opts := dict "output" "mathml" "displayMode" (eq .Type "block") }}
+{{- with try (transform.ToMath .Inner $opts) }}
+ {{- with .Err }}
+ {{- errorf "Unable to render math-markup to HTML using transform.ToMath. KaTeX display engine threw following error: %s: see %s." . $.Position }}
+ {{- else }}
+ {{ if eq $opts.displayMode true }}
+ <div class="math-block">
+ {{ .Value }}
+ </div>
+ {{ else }}
+ {{- .Value }}
+ {{ end }}
+ {{- end }}
+{{- end -}}
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html
@@ -0,0 +1,15 @@
+<hr>
+<nav>
+<span class="nav-item" id="copyright">
+© {{ now.Year }} {{ .Site.Params.author.name }}
+</span>
+<span class="nav-item" id="email">
+<a href="mailto:c@ckiri.com">{{ T "email" }}</a>
+</span>
+<span class="nav-item" id="imprint">
+ <a href="{{ absLangURL "imprint" }}">{{ T "imprint" }}</a>
+</span>
+<span class="nav-item" id="privacy">
+ <a href="{{ absLangURL "privacy" }}">{{ T "privacy" }}</a>
+</span>
+</nav>
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
@@ -0,0 +1,18 @@
+<meta charset="utf-8">
+<meta name="generator" content="hugo">
+<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
+<meta name="color-scheme" content="light dark">
+<meta name="author" content="{{ .Site.Params.author.email}} ({{ .Site.Params.author.name }})">
+{{- with .Summary }}
+<meta name="description" content="{{ . }}">
+{{- end }}
+{{- with .Params.tags }}
+<meta name="keywords" content="{{ delimit . ", " }}">
+{{- end }}
+<meta name="format-detection" content="telephone=no">
+<title>{{ .Title }} | {{ site.Title }}</title>
+{{ partialCached "head/css.html" . -}}
+{{ with .OutputFormats.Get "rss" -}}
+{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
+{{ end -}}
+<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}" type="image/x-icon">
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
@@ -0,0 +1,9 @@
+{{- with resources.Get "css/main.css" -}}
+{{- if hugo.IsDevelopment -}}
+<link rel="stylesheet" href="{{ .RelPermalink }}">
+{{- else -}}
+{{- with . | minify | fingerprint -}}
+<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
+{{- end -}}
+{{- end -}}
+{{- end }}
diff --git a/layouts/_partials/head/js.html b/layouts/_partials/head/js.html
@@ -0,0 +1,25 @@
+{{- with resources.Get "js/main.js" }}
+ {{- $opts := dict
+ "minify" (not hugo.IsDevelopment)
+ "sourceMap" (cond hugo.IsDevelopment "external" "")
+ "targetPath" "js/main.js"
+ }}
+ {{- with . | js.Build $opts }}
+ {{- if hugo.IsDevelopment }}
+ <script src="{{ .RelPermalink }}"></script>
+ {{- else }}
+ {{- with . | fingerprint }}
+ <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
+ {{- end }}
+ {{- end }}
+ {{- end }}
+{{- end }}
+{{- with resources.Get "js/main.js" -}}
+ {{- if hugo.IsDevelopment -}}
+ <script src="{{ .RelPermalink }}"></script>
+ {{- else -}}
+ {{- with . | minify | fingerprint -}}
+ <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>>
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
@@ -0,0 +1,8 @@
+<nav class="site-menu">
+{{ partial "menu.html" (dict "menuID" "main" "page" .) -}}
+{{- range .Translations -}}
+<span> | </span>
+<a href="{{ .RelPermalink }}" class="lang-switch">{{ .Language.Label }}</a>
+{{ end -}}
+</nav>
+<hr>
diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html
@@ -0,0 +1,32 @@
+{{- $page := .page -}}
+{{- $menuID := .menuID -}}
+{{- with index site.Menus $menuID -}}
+{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}}
+{{- end -}}
+{{- define "_partials/inline/menu/walk.html" -}}
+{{- $page := .page -}}
+{{- range .menuEntries -}}
+{{- $attrs := dict "href" .URL -}}
+{{- if $page.IsMenuCurrent .Menu . -}}
+{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") -}}
+{{- else if $page.HasMenuCurrent .Menu . -}}
+{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") -}}
+{{- end -}}
+{{- $name := .Name -}}
+{{- with .Identifier -}}
+{{- with T . -}}
+{{- $name = . -}}
+{{- end -}}
+{{- end -}}
+<a
+{{- range $k, $v := $attrs -}}
+{{- with $v -}}
+{{- printf " %s=%q" $k $v | safeHTMLAttr -}}
+{{- end -}}
+{{- end -}}
+>{{ $name }}</a>
+{{ with .Children -}}
+{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}}
+{{- end -}}
+{{- end -}}
+{{- end -}}
diff --git a/layouts/_partials/preview.html b/layouts/_partials/preview.html
@@ -0,0 +1,26 @@
+<div class="preview">
+{{- $wc := .WordCount }}
+{{- $microPostLen := .Site.Params.microPostLen }}
+<article class="{{ if le $wc $microPostLen }}preview-micro-post{{ else }}preview-regular-post{{ end }}" id="{{ .File.ContentBaseName }}">
+<h2 class="preview-post-title">{{ .Title }}</h2>
+{{ .Summary }}
+<div class="preview-footer">
+<div class="preview-footer-left metadata">
+{{- $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+{{- $dateF := .Date | time.Format ":date_medium" }}
+{{- $timeF := .Date | time.Format ":time_short" }}
+<time id="publication-date-time" datetime="dateTime">{{ $dateF }} {{ $timeF }}</time>
+</div>
+<div class="preview-footer-right">
+<nav id="post-link">
+{{- if le $wc $microPostLen }}
+<a href="{{ .RelPermalink }}">{{ T "show" }}</a>
+{{- else }}
+<a href="{{ .RelPermalink }}">{{ T "readMore" }}</a>
+<span id="reading-time">(~{{ .ReadingTime }} {{ T "min" }})</span>
+{{- end }}
+</nav>
+</div>
+</div>
+</article>
+</div>
diff --git a/layouts/_partials/tag.html b/layouts/_partials/tag.html
@@ -0,0 +1 @@
+<a href="{{ .RelPermalink }}" class="tag">{{ .LinkTitle }}</a>
diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html
@@ -0,0 +1,15 @@
+{{- /*
+For a given taxonomy, renders a list of terms assigned to the page.
+
+@context {page} page The current page.
+@context {string} taxonomy The taxonomy.
+
+@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+*/}}
+{{- $page := .page }}
+{{- $taxonomy := .taxonomy }}
+{{- with $page.GetTerms $taxonomy }}
+{{- range . -}}
+{{ partial "tag.html" }}
+{{- end -}}
+{{- end }}
diff --git a/layouts/baseof.html b/layouts/baseof.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="{{- site.Language.Locale -}}" dir="{{- or site.Language.Direction `ltr` -}}">
+<head>
+{{ partial "head.html" . -}}
+</head>
+<body>
+<header>
+{{ partial "header.html" . -}}
+</header>
+<main>
+{{- block "main" . }}
+{{ end -}}
+</main>
+<footer>
+{{ partial "footer.html" . -}}
+</footer>
+</body>
+</html>
diff --git a/layouts/home.html b/layouts/home.html
@@ -0,0 +1,27 @@
+{{ define "main" }}
+<article>
+{{ .Content -}}
+</article>
+{{- $posts := where .Site.RegularPages "Section" "posts" }}
+{{- with $posts }}
+<hr>
+<div class="recent-posts">
+<div>{{ T "recentPosts" }}:</div>
+<div class="pages">
+{{- range first 3 . -}}
+<div class="page-item" id="{{ .File.ContentBaseName }}">
+{{ $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+{{- $dateF := .Date | time.Format ":date_medium" -}}
+{{- $timeF := .Date | time.Format ":time_short" -}}
+<div>
+<span><time datetime="{{ $dateTime }}">{{ $dateF }} {{ $timeF }}</time>:</span>
+</div>
+<div>
+<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
+</div>
+</div>
+{{- end }}
+</div>
+</div>
+{{- end }}
+{{ end }}
diff --git a/layouts/page.html b/layouts/page.html
@@ -0,0 +1,42 @@
+{{- define "main" -}}
+{{- $wc := .WordCount -}}
+{{- $microPostLen := .Site.Params.microPostLen -}}
+{{- if le $wc $microPostLen }}
+<article class="micro-post">
+{{ else }}
+<article class="regular-post">
+{{ end -}}
+<h1 class="title">{{ .Title }}</h1>
+{{- if .Date }}
+<div class="metadata">
+{{ with .Date -}}
+{{- $dateTime := . | time.Format "2006-01-02T15:04:05-07:00" }}
+{{- $dateF := . | time.Format ":date_full" }}
+{{- $timeF := . | time.Format ":time_short" -}}
+<div>
+<time id="publication-date-time" datetime="{{ $dateTime }}">{{ $dateF }} {{ $timeF }}</time>
+</div>
+{{ end -}}
+{{ with .Params.edited -}}
+{{- $dateTime := . | time.Format "2006-01-02T15:04:05-07:00" }}
+{{- $dateF := . | time.Format ":date_full" }}
+{{- $timeF := . | time.Format ":time_short" -}}
+<div class="metadata-edited">{{ T "edited" }}:
+<time id="metadata-edited-date-time" datetime="{{ $dateTime }}">{{ $dateF }} {{ $timeF }}</time>
+</div>
+{{ end -}}
+</div>
+{{- end }}
+{{ .Content -}}
+{{- with .GetTerms "tags" -}}
+<div class="tag-section">
+<hr>
+<div class="tags">
+{{ range . }}
+{{- partial "tag.html" . -}}
+{{ end -}}
+</div>
+</div>
+{{ end -}}
+</article>
+{{ end -}}
diff --git a/layouts/rss.xml b/layouts/rss.xml
@@ -0,0 +1,59 @@
+{{- $authorEmail := "" }}
+{{- with site.Params.author }}
+ {{- if reflect.IsMap . }}
+ {{- with .email }}
+ {{- $authorEmail = . }}
+ {{- end }}
+ {{- end }}
+{{- end }}
+
+{{- $authorName := "" }}
+{{- with site.Params.author }}
+ {{- if reflect.IsMap . }}
+ {{- with .name }}
+ {{- $authorName = . }}
+ {{- end }}
+ {{- else }}
+ {{- $authorName = . }}
+ {{- end }}
+{{- end }}
+
+{{- $pctx := . }}
+{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
+{{- $pages := slice }}
+{{- if or $.IsHome $.IsSection }}
+{{- $pages = $pctx.RegularPages }}
+{{- else }}
+{{- $pages = $pctx.Pages }}
+{{- end }}
+{{- $limit := .Site.Config.Services.RSS.Limit }}
+{{- if ge $limit 1 }}
+{{- $pages = $pages | first $limit }}
+{{- end }}
+{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ T "section" }}: "{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }}" {{ T "on" }} {{ end }}{{ .Site.Title }}{{ end }}</title>
+ <link>{{ .Permalink }}</link>
+ <description>{{ T "recent" }} {{ if ne .Title .Site.Title }}{{ with .Title }}in "{{ . }}" {{ end }}{{ end }}{{ T "on" }} {{ .Site.Title }}</description>
+ <generator>Hugo</generator>
+ <language>{{ site.Language.Locale }}</language>{{ with $authorEmail }}
+ <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
+ <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
+ <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
+ <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ {{- with .OutputFormats.Get "RSS" }}
+ {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
+ {{- end }}
+ {{- range $pages }}
+ <item>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
+ {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
+ <guid>{{ .Permalink }}</guid>
+ <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+ </item>
+ {{- end }}
+ </channel>
+</rss>
diff --git a/layouts/section.html b/layouts/section.html
@@ -0,0 +1,22 @@
+{{ define "main" }}
+{{- if .Content }}
+<article>
+<h1>{{ .Title }}</h1>
+{{- with .Site.GetPage "section" "posts" -}}
+{{- with .OutputFormats.Get "RSS" -}}
+<a href="{{ .RelPermalink }}">{{ T "rssFeed" }}</a>
+{{- end -}}
+{{- end }}
+{{ .Content -}}
+</article>
+<hr>
+{{- end }}
+<div class="previews">
+{{ range $index, $page := (sort .RegularPages ".Date" "desc") -}}
+{{- partial "preview.html" $page -}}
+{{- if ne (sub (len $.RegularPages) 1) $index -}}
+<hr class="sep">
+{{ end -}}
+{{ end -}}
+</div>
+{{ end }}
diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+<article>
+<h1>{{ .Title }}</h1>
+{{ .Content -}}
+</article>
+<div class="tags">
+{{- range .Pages -}}
+{{- partial "tag.html" . -}}
+{{- end -}}
+</div>
+{{ end }}
diff --git a/layouts/term.html b/layouts/term.html
@@ -0,0 +1,25 @@
+{{ define "main" }}
+<article>
+<h1>{{ .Title }}</h1>
+{{- with .OutputFormats.Get "RSS" -}}
+<a href="{{ .RelPermalink }}">{{ T "rssFeed" }}</a>
+{{- end }}
+{{ .Content -}}
+</article>
+<hr>
+<div class="pages">
+{{- range .Pages }}
+<div class="page-item" id="{{ .File.ContentBaseName }}">
+{{ $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+{{- $dateF := .Date | time.Format ":date_medium" -}}
+{{- $timeF := .Date | time.Format ":time_short" -}}
+<div>
+<span><time datetime="{{ $dateTime }}">{{ $dateF }} {{ $timeF }}</time>:</span>
+</div>
+<div>
+<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
+</div>
+</div>
+{{- end }}
+</div>
+{{ end }}
diff --git a/owner b/owner
@@ -0,0 +1 @@
+Chris Kiriakou
diff --git a/url b/url
@@ -0,0 +1 @@
+https://git.ckiri.com/yamt.git