summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'indieweb-micro/themes/MinIndie/layouts/_default/single.html')
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/single.html74
1 files changed, 74 insertions, 0 deletions
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 }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage