diff options
Diffstat (limited to 'layouts/posts/page.html')
| -rw-r--r-- | layouts/posts/page.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/layouts/posts/page.html b/layouts/posts/page.html new file mode 100644 index 00000000..bdb0f617 --- /dev/null +++ b/layouts/posts/page.html @@ -0,0 +1,42 @@ +{{ define "main" }} + {{ partial "components/post-page-header.html" . }} + <article class="post" id="article"> + <!-- Post Header --> + <header + style="view-transition-name: post-{{ .File.UniqueID }}" + class="post-header" + > + {{ partial "posts/banner" . }} + <!-- Title and Subtitle --> + <h1 class="post-title"> + <span data-pagefind-meta="title">{{ .Title }}</span> + {{ with .Params.subtitle }} + <small class="post-subtitle">{{ . }}</small> + {{ end }} + </h1> + <!-- Post Meta --> + <div class="post-meta"> + {{ partial "components/date" . }} + {{ if or .Params.categories .Params.tags }}<span>ยท</span>{{ end }} + {{ partial "components/category-pill" . }} + {{ partial "components/tags" . }} + </div> + </header> + + <!-- Post Content --> + <div class="post-content markdown-body" + style="view-transition-name: post-content-{{ .File.UniqueID }}"> + <!-- TOC --> + {{ partial "posts/toc" . }} + <!-- Content --> + <div id="post-content"> + {{ .Content }} + </div> + <!-- Endnotes --> + {{ partial "posts/endnotes" . }} + </div> + + {{ partial "posts/action-menu.html" . }} + {{ partial "posts/now-read-this.html" . }} + </article> +{{ end }} |
