summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts/notes/single.html
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/notes/single.html
parent4d75a6ded99babeffc3c264a9f38b510a7c59ce7 (diff)
move micro to its own site (better compatability with indieweb feats)
Diffstat (limited to 'indieweb-micro/themes/MinIndie/layouts/notes/single.html')
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/notes/single.html44
1 files changed, 44 insertions, 0 deletions
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 }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage