summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-01 22:27:26 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-01 22:28:46 -0800
commit743d1e3d4c421385111dfd63482cd92a5fff02c1 (patch)
tree8b79dfd7b89297b1c8c6864d57943f03e0a183fe /indieweb-micro/themes/MinIndie/layouts
parent4d75a6ded99babeffc3c264a9f38b510a7c59ce7 (diff)
move micro to its own site (better compatability with indieweb feats)
Diffstat (limited to 'indieweb-micro/themes/MinIndie/layouts')
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/_markup/render-image.html11
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/baseof.html26
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/list.html57
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/single.html74
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/summary.html13
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/taxonomy.html45
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/bookmarks/single.html44
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/index.html8
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/notes/notes.html42
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/notes/single.html44
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/article-extra.html0
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/article-old-content.html6
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/article-precontent.html0
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/article-prevnext.html17
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/article-related.html10
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/bio-hcard.html8
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/footer-extra.html0
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/footer.html14
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/head-extra.html20
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/header.html17
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/homepage-body.html5
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/pagination.html9
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/partials/single-title-extra.html3
23 files changed, 473 insertions, 0 deletions
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/_markup/render-image.html b/indieweb-micro/themes/MinIndie/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..41008ca
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/_markup/render-image.html
@@ -0,0 +1,11 @@
+{{ if .Title }}
+<figure>
+ <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
+ <figcaption>{{ .Title }}</figcaption>
+</figure>
+{{ else }}
+<figure>
+ <img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
+</figure>
+{{ end }}
+
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/baseof.html b/indieweb-micro/themes/MinIndie/layouts/_default/baseof.html
new file mode 100644
index 0000000..e8b6411
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/baseof.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode | default "en-us" }}">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <style type=text/css>body{font-family:monospace;}</style>
+ <title>{{ .Title }} | {{ .Site.Title }}</title>
+ {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
+ {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ <link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
+ {{ range .Site.Params.customCSS -}}
+ <link rel="stylesheet" href="{{ . | relURL }}?rnd={{ now.Unix }}">
+ {{- end }}
+ {{- with .OutputFormats.Get "RSS" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
+ {{- end }}
+
+ {{ partial "head-extra.html" . }}
+</head>
+<body>
+ {{ partial "header" . }}
+ {{ block "main" . }}{{ end }}
+ {{ partial "footer" . }}
+</body>
+</html>
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/list.html b/indieweb-micro/themes/MinIndie/layouts/_default/list.html
new file mode 100644
index 0000000..f3639a1
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/list.html
@@ -0,0 +1,57 @@
+{{ define "main" }}
+<main class="content-list">
+ {{ $pageKind := .Kind }}
+ {{ if or .Title .Content }}
+ <div>
+ {{ if .Title }}
+ <h1>
+ {{ .Title }}
+ {{ partial "single-title-extra.html" . }}
+ </h1>
+ {{ end }}
+ {{ with .Content }}<div class="justify">{{ . }}</div>{{ end }}
+ </div>
+ {{ end }}
+
+ <div class="h-feed">
+ {{ $yearCptr := "" }}
+ {{ $monthCptr := "" }}
+ {{ range .Paginator.Pages }}
+ {{ $postYear := .Date.Year }}
+ {{ $postMonth := .Date.Month }}
+
+ {{ if or (ne $monthCptr $postMonth) (and (eq $yearCptr "") (eq $monthCptr "")) }}
+ {{ $yearCptr = $postYear }}
+ {{ $monthCptr = $postMonth }}
+ {{ if and (ne $yearCptr "") (ne $monthCptr "") }}
+ </ul>
+ </div>
+ {{ end }}
+ <div>
+ <h3>{{ $monthCptr }} {{ $yearCptr }}</h3>
+ <ul>
+ {{ end }}
+
+ <li class="h-entry">
+ <div hidden>
+ {{ partial "bio-hcard.html" . }}
+ </div>
+ <div class="post-title">
+ <time class="date dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02" }}</time>:
+ {{ if eq $pageKind "term" }}[{{ .Type }}] {{ end }}
+ <a href="{{ .Permalink }}" class="u-url p-name title">
+ {{.Title }}
+ </a>
+ </div>
+ </li>
+
+ {{ $yearCptr = $postYear }}
+ {{ $monthCptr = $postMonth }}
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+
+ {{ partial "pagination.html" . }}
+</main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/single.html b/indieweb-micro/themes/MinIndie/layouts/_default/single.html
new file mode 100644
index 0000000..425efc1
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/single.html
@@ -0,0 +1,74 @@
+{{ define "main" }}
+{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}
+ <main>
+ <article class="h-entry">
+ <h1 class="p-name">{{ .Title }}</h1>
+
+ <div hidden>{{ partial "bio-hcard.html" . }}</div>
+
+ {{ if .Date }}
+ <div><b>
+ <time class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">
+ {{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}
+ </time>
+ - <a href="{{ .Permalink }}" class="u-url u-uid" >Permalink</a>
+ </b></div>
+ {{ end }}
+
+ {{- if or .Params.categories .Params.tags -}}
+ <div class="article-meta">
+ {{- with .Params.categories -}}
+ <span class="categories">
+ Categories:
+ {{ range . }}
+ <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ </span>
+ {{- end -}}
+ {{- if and .Params.categories .Params.tags -}}
+ --
+ {{- end -}}
+ {{- with .Params.tags -}}
+ <span class="tags">
+ Tags:
+ {{ range . }}
+ #<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="p-category">{{ . }}</a>
+ {{ end }}
+ </span>
+ {{- end -}}
+ </div>
+ {{- end -}}
+
+ {{- with .Site.Params.tagPostOlderThanXDays -}}
+ {{- if and (gt $ageDays .) (eq $.Type "posts") -}}
+ {{ partial "article-old-content.html" . }}
+ {{- end -}}
+ {{- end -}}
+
+ {{- partial "article-precontent.html" . -}}
+
+ {{- if .Params.toc -}}
+ <div class="toc noprint">
+ <h2>Table of Content</h2>
+ <aside>
+ {{ .TableOfContents }}
+ </aside>
+ </div>
+ {{- end -}}
+
+ <div class="e-content">
+ {{ .Content }}
+ </div>
+
+ {{ partial "article-extra.html" . }}
+
+ {{ if .Site.Params.enableNextPrevPages }}
+ {{ partial "article-prevnext.html" . }}
+ {{ end }}
+
+ {{ if .Site.Params.enableRelatedPages }}
+ {{ partial "article-related.html" . }}
+ {{ end }}
+ </article>
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/summary.html b/indieweb-micro/themes/MinIndie/layouts/_default/summary.html
new file mode 100644
index 0000000..a347932
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/summary.html
@@ -0,0 +1,13 @@
+<article>
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
+ <b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ <div>
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <a href="{{ .Permalink }}">Read more...</a>
+ {{ end }}
+ </div>
+</article>
diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/taxonomy.html b/indieweb-micro/themes/MinIndie/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..3e10031
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/_default/taxonomy.html
@@ -0,0 +1,45 @@
+{{ define "main" }}
+{{ $pageTitle := .Title }}
+<main>
+ <div>
+ <h1>
+ {{ .Title }}
+ <a href="{{ .Permalink }}index.xml">
+ <img style="height:1.5rem; display: inline;" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-label='RSS' role='img' viewBox='0 0 512 512'%3E%3Cpath d='M0 0h512v512H0' fill='%23f80'/%3E%3Cpath d='M109 271A132 133 0 0 1 241 403h60A192 193 0 0 0 109 211v-54A246 247 0 0 1 355 403h60A306 307 0 0 0 109 97m35 235a35 35 0 1 0 2 0' fill='%23fff'/%3E%3C/svg%3E" alt="RSS icon" />
+ </a>
+ </h1>
+ <div>
+ {{ .Content }}
+ </div>
+ {{- if eq .Kind "taxonomy" -}}
+ <ul>
+ {{ range .Pages.ByTitle }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ {{- if eq .Kind "term" -}}
+ <p>Content linked to the taxonomy term « {{ strings.ToUpper .Title }} »:</p>
+ {{ $currentType := "" }}
+ {{ range sort .Pages.ByDate.Reverse ".Type" "desc" }}
+ {{ if or (eq $currentType "") (ne $currentType .Type) }}
+ {{ if ne $currentType "" }}
+ </ul>
+ </div>
+ {{ end }}
+ <div>
+ <h3>{{ strings.FirstUpper .Type }}</h3>
+ <ul>
+ {{ end }}
+ <li>
+ <time class="date dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
+ <a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ </li>
+ {{ $currentType = .Type }}
+ {{ end }}
+ </ul>
+ </div>
+ {{- end -}}
+ </div>
+</main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/bookmarks/single.html b/indieweb-micro/themes/MinIndie/layouts/bookmarks/single.html
new file mode 100644
index 0000000..8ee4bf1
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/bookmarks/single.html
@@ -0,0 +1,44 @@
+{{ define "main" }}
+ <main>
+ <article class="h-entry">
+ <div hidden>{{ partial "bio-hcard.html" . }}</div>
+
+ <h1 class="p-name">
+ <a href="{{ .Params.bookmark_url }}" target="_blank" class="">
+ {{ .Title }}
+ </a>
+ </h1>
+ <div><b>
+ <time class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">
+ {{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}
+ </time>
+ - <a href="{{ .Permalink }}" class="u-url u-uid" >Permalink</a>
+ </b></div>
+ <div class="tags">
+ Tags:
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="p-category">{{ . }}</a>
+ {{ end }}
+ </div>
+
+ {{ with .Params.description }}
+ <div class="bookmark-description">
+ Description:
+ <blockquote>{{ . }}</blockquote>
+ </div>
+ {{ end }}
+
+ {{ with .Content }}
+ <div class="e-content justify">{{ . }}</div>
+ {{ end }}
+
+ <div>
+ → <a href="{{ .Params.bookmark_url }}" target="_blank" class="u-bookmark-of h-cite">
+ {{ .Params.bookmark_url }}
+ </a><br /><br />
+ </div>
+
+ {{ partial "article-extra.html" . }}
+ </article>
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/index.html b/indieweb-micro/themes/MinIndie/layouts/index.html
new file mode 100644
index 0000000..777a2fd
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/index.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+ <main>
+ <hr />
+ <h1 class="site-title">{{ .Site.Title }}</h1>
+ {{- partial "bio-hcard.html" . -}}
+ {{- partial "homepage-body.html" . -}}
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/notes/notes.html b/indieweb-micro/themes/MinIndie/layouts/notes/notes.html
new file mode 100644
index 0000000..e0e0d17
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/notes/notes.html
@@ -0,0 +1,42 @@
+{{ define "main" }}
+ <main>
+ {{ $pageKind := .Kind }}
+ {{ if or .Title .Content }}
+ <div>
+ {{ with .Title }}
+ <h1>
+ {{ . }}
+ <a href="/notes/index.xml"><img style="height:1.5rem; display: inline;" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-label='RSS' role='img' viewBox='0 0 512 512'%3E%3Cpath d='M0 0h512v512H0' fill='%23f80'/%3E%3Cpath d='M109 271A132 133 0 0 1 241 403h60A192 193 0 0 0 109 211v-54A246 247 0 0 1 355 403h60A306 307 0 0 0 109 97m35 235a35 35 0 1 0 2 0' fill='%23fff'/%3E%3C/svg%3E" alt="RSS icon" /></a>
+ <a href="https://indieweb.org/h-feed" target="_blank"><img style="height:1.5rem; display: inline;" src="/images/H_Feed_icon.svg" alt="h-feed icon" /></a>
+ </h1>
+ {{ end }}
+ {{ with .Content }}<div class="justify">{{ . }}</div>{{ end }}
+ </div>
+ {{ end }}
+
+ <div class="h-feed">
+ {{ range .Pages }}
+ <div class="h-entry note">
+ <div hidden>
+ {{ partial "bio-hcard.html" . }}
+ </div>
+ <p class="p-content">
+ {{ .Content }}
+ </p>
+
+ <time class="date dt-published" datetime="{{ .Date.Format "2006-01-02 15:04" }}">
+ <a href="{{ .RelPermalink }}">{{ .Date.Format "2006-01-02 15:04" }}</a>
+ </time>
+
+ {{ with .Params.Tags }}
+ - Tags:
+ {{ range . }}
+ #<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="p-category">{{ . }}</a>
+ {{ end }}
+ {{ end }}
+ </div>
+ {{ end }}
+ </div>
+
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/notes/single.html b/indieweb-micro/themes/MinIndie/layouts/notes/single.html
new file mode 100644
index 0000000..32afcea
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/notes/single.html
@@ -0,0 +1,44 @@
+{{ define "main" }}
+{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}
+ <main>
+ <article class="h-entry">
+ <div hidden>{{ partial "bio-hcard.html" . }}</div>
+ <div><b>
+ <time class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">
+ {{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}
+ </time>
+ - <a href="{{ .Permalink }}" class="u-url u-uid" >Permalink</a>
+ </b></div>
+
+ {{- if or .Params.categories .Params.tags -}}
+ <div class="article-meta">
+ {{- with .Params.categories -}}
+ <span class="categories">
+ Categories:
+ {{ range . }}
+ <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ </span>
+ {{- end -}}
+ {{- if and .Params.categories .Params.tags -}}
+ --
+ {{- end -}}
+ {{- with .Params.tags -}}
+ <span class="tags">
+ Tags:
+ {{ range . }}
+ #<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" class="p-category">{{ . }}</a>
+ {{ end }}
+ </span>
+ {{- end -}}
+ </div>
+ {{- end -}}
+
+ {{- partial "article-precontent.html" . -}}
+
+ <div class="e-content">
+ {{ .Content }}
+ </div>
+ </article>
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/article-extra.html b/indieweb-micro/themes/MinIndie/layouts/partials/article-extra.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/article-extra.html
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/article-old-content.html b/indieweb-micro/themes/MinIndie/layouts/partials/article-old-content.html
new file mode 100644
index 0000000..785f3be
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/article-old-content.html
@@ -0,0 +1,6 @@
+<div class="alert noprint">
+ <strong
+ >/!\ Warning: This article is older than {{ . }} days, make sure the content
+ is still relevant!</strong
+ >
+</div>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/article-precontent.html b/indieweb-micro/themes/MinIndie/layouts/partials/article-precontent.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/article-precontent.html
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/article-prevnext.html b/indieweb-micro/themes/MinIndie/layouts/partials/article-prevnext.html
new file mode 100644
index 0000000..d89b779
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/article-prevnext.html
@@ -0,0 +1,17 @@
+<div class="article-nextprev noprint">
+ <div class="next-post">
+ {{ if .NextInSection }}
+ <a class="link-reverse" href="{{ .NextInSection.Permalink }}?ref=footer"
+ >« {{ .NextInSection.Title | truncate 30 "..." }}</a
+ >
+ {{ end }}
+ </div>
+
+ <div class="previous-post">
+ {{ if .PrevInSection }}
+ <a class="link-reverse" href="{{ .PrevInSection.Permalink }}?ref=footer"
+ >{{ .PrevInSection.Title | truncate 30 "..."}} »</a
+ >
+ {{ end }}
+ </div>
+</div>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/article-related.html b/indieweb-micro/themes/MinIndie/layouts/partials/article-related.html
new file mode 100644
index 0000000..5a6fe50
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/article-related.html
@@ -0,0 +1,10 @@
+{{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }}
+<div class="noprint">
+ <h2>Releated Posts</h2>
+ <ul>
+ {{ range . }}
+ <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
+ {{ end }}
+ </ul>
+</div>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/bio-hcard.html b/indieweb-micro/themes/MinIndie/layouts/partials/bio-hcard.html
new file mode 100644
index 0000000..0a476e4
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/bio-hcard.html
@@ -0,0 +1,8 @@
+<div class="h-card p-author bio-card" style="text-align:center;">
+ <div class="bio">
+ <img class="u-photo avatar" src="{{ .Site.Params.Author.avatar }}" alt="{{ .Site.Params.Author.name }}'s avatar">
+ <p class="p-note">{{ .Site.Params.Author.Bio | safeHTML }}</p>
+ </div>
+ <p class="bio-name"><a href="{{ .Site.BaseURL }}" rel="me" class="p-nickname p-name u-url">{{ .Site.Params.Author.name }}</a></p>
+</div>
+<hr/>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/footer-extra.html b/indieweb-micro/themes/MinIndie/layouts/partials/footer-extra.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/footer-extra.html
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/footer.html b/indieweb-micro/themes/MinIndie/layouts/partials/footer.html
new file mode 100644
index 0000000..978a390
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/footer.html
@@ -0,0 +1,14 @@
+<hr />
+<footer>
+ <p>
+ {{- range .Site.Menus.footer }}
+ <a href="{{ .URL }}"><b>{{ .Name }}</b></a>.
+ {{- end }}
+ </p>
+
+ {{ partial "footer-extra.html" . }}
+
+ <p style="text-align: center" class="copyright">
+ &copy; <a href="{{ .Site.BaseURL }}"><b>{{ if .Site.Copyright }}{{ .Site.Copyright }}{{ else }}{{ .Site.Title }}{{ end }}</b></a>.
+ </p>
+</footer>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/head-extra.html b/indieweb-micro/themes/MinIndie/layouts/partials/head-extra.html
new file mode 100644
index 0000000..8c3984f
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/head-extra.html
@@ -0,0 +1,20 @@
+{{- range .Site.Params.indieweb.relme }}
+ <link rel="me" href="{{ .url }}" />
+{{- end -}}
+
+{{- with .Site.Params.indieweb.relmepgp -}}
+ <link rel="pgpkey" href="{{ . }}">
+{{- end -}}
+
+{{ with .Site.Params.indieweb }}
+ <link
+ rel="authorization_endpoint"
+ href="{{ .authorizationEndpoint | default "https://indieauth.com/auth" }}"
+ />
+ <link
+ rel="token_endpoint"
+ href="{{ .tokenEndpoint | default "https://tokens.indieauth.com/token" }}"
+ />
+ <link rel="webmention" href="{{ .webmentionEndpoint }}" />
+{{ end }}
+
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/header.html b/indieweb-micro/themes/MinIndie/layouts/partials/header.html
new file mode 100644
index 0000000..efbd8e1
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/header.html
@@ -0,0 +1,17 @@
+<header>
+ <div style="display:flex;flex-flow:row wrap;justify-content:space-between">
+ <div style="align-self:flex-start;">
+ {{ strings.Repeat ( .Site.Params.Author.Name | len | add 6 ) "=" }}<br>
+ == <a href="{{ .Site.BaseURL }}">{{ .Site.Params.Author.Name }}</a> ==<br>
+ {{ strings.Repeat ( .Site.Params.Author.Name | len | add 6 ) "=" }}
+ </div>
+ <div style="align-self:center;">{{ .Site.Params.subtitle }}</div>
+ </div>
+ <nav style="margin: 1rem auto;">
+ {{ with .Site.Menus.main }}
+ {{ range . }}
+ <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>.
+ {{ end }}
+ {{ end }}
+ </nav>
+</header>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/homepage-body.html b/indieweb-micro/themes/MinIndie/layouts/partials/homepage-body.html
new file mode 100644
index 0000000..151ef62
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/homepage-body.html
@@ -0,0 +1,5 @@
+{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+{{ range $paginator.Pages }}
+ {{ .Render "summary" }}
+{{ end }}
+{{ partial "pagination.html" . }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/pagination.html b/indieweb-micro/themes/MinIndie/layouts/partials/pagination.html
new file mode 100644
index 0000000..79f8053
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/pagination.html
@@ -0,0 +1,9 @@
+<div>
+{{ if .Paginator.HasPrev }}
+ <a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
+{{ end }}
+{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
+{{ if .Paginator.HasNext }}
+ <a href="{{ .Paginator.Next.URL }}">Next Page</a>
+{{ end }}
+</div>
diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/single-title-extra.html b/indieweb-micro/themes/MinIndie/layouts/partials/single-title-extra.html
new file mode 100644
index 0000000..bd79e22
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/partials/single-title-extra.html
@@ -0,0 +1,3 @@
+{{ with .AlternativeOutputFormats.Get "rss" }}
+<a href="{{ .RelPermalink }}"><img style="height:1.5rem; display: inline;" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-label='RSS' role='img' viewBox='0 0 512 512'%3E%3Cpath d='M0 0h512v512H0' fill='%23f80'/%3E%3Cpath d='M109 271A132 133 0 0 1 241 403h60A192 193 0 0 0 109 211v-54A246 247 0 0 1 355 403h60A306 307 0 0 0 109 97m35 235a35 35 0 1 0 2 0' fill='%23fff'/%3E%3C/svg%3E" alt="RSS icon" /></a>
+{{ end }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage