diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-07-23 18:50:51 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-07-23 18:50:51 +0200 |
commit | 05bcb583f05c49d6ecd793b1fcdd0242930a1f96 (patch) | |
tree | 613cfa7a6b561009d74fbe67f5c04f68ea87d641 /layouts/posts/single.gmi | |
parent | cc2713533d4c2fc75960dfe1767497050bfef516 (diff) |
Add gemini output supportgemini
Diffstat (limited to 'layouts/posts/single.gmi')
-rw-r--r-- | layouts/posts/single.gmi | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi new file mode 100644 index 0000000..cab9527 --- /dev/null +++ b/layouts/posts/single.gmi @@ -0,0 +1,33 @@ +{{ define "main" }} +<article> + <header> + <h1>{{ .Title }}</h1> + {{- range .Params.tags }} + <a href="/tags/{{ . | lower }}">#{{ . }}</a> + {{- end }} + {{- if .Draft }} + <section class="admonition"> + <div class="admonition-title"> + draft + </div> + <div class="admonition-content"> + This blog post is still a + <strong>draft</strong>. It has most likely been + shared with you for reviewing purposes. Please + do not yet share this with other people. + </div> + </section> + {{- end }} + </header> + <main> + {{ .Content }} + </main> + <footer> + <p class="text-center"> + <a class="image-link" rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> + <img alt="Creative Commons License" src="/img/cc-by-sa.png"> + </a> + </p> + </footer> +</article> +{{ end }} |