summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie
diff options
context:
space:
mode:
Diffstat (limited to 'indieweb-micro/themes/MinIndie')
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/indie/single.html66
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html12
-rw-r--r--indieweb-micro/themes/MinIndie/static/css/style.css4
3 files changed, 80 insertions, 2 deletions
diff --git a/indieweb-micro/themes/MinIndie/layouts/indie/single.html b/indieweb-micro/themes/MinIndie/layouts/indie/single.html
new file mode 100644
index 0000000..906b704
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/indie/single.html
@@ -0,0 +1,66 @@
+{{ define "main" }}
+{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}
+ <main>
+ <article class="h-entry">
+ <a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
+ <h1 class="p-name">{{ .Title }}</h1>
+ <div hidden>{{ partial "bio-hcard.html" . }}</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 -}}
+
+ {{- 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>
+ <a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
+ </main>
+{{ end }}
diff --git a/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html b/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html
new file mode 100644
index 0000000..27a1bdd
--- /dev/null
+++ b/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html
@@ -0,0 +1,12 @@
+{{ $url := .Get 0 }}
+{{ $date := .Get 1 }}
+
+<div class="follow-card h-entry">
+ <a class="follow-target u-follow-of" href="{{ $url }}">
+ {{ $url }}
+ </a>
+
+ <time class="follow-date dt-published" datetime="{{ $date }}T00:00:00Z">
+ {{ $date }}
+ </time>
+</div>
diff --git a/indieweb-micro/themes/MinIndie/static/css/style.css b/indieweb-micro/themes/MinIndie/static/css/style.css
index bc04f86..73e3665 100644
--- a/indieweb-micro/themes/MinIndie/static/css/style.css
+++ b/indieweb-micro/themes/MinIndie/static/css/style.css
@@ -259,13 +259,13 @@ tbody tr:nth-child(even) {
align-self: center;
text-align: center;
}
-
+
/* Smaller avatar on mobile */
.banner .avatar {
width: 90px;
height: 90px;
}
-
+
.banner img:first-child {
border-radius: 6px;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage