summaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/page.html
diff options
context:
space:
mode:
author2026-01-31 20:38:50 +0300
committer2026-01-31 23:38:53 +0300
commit49458f5ffd5a48c465117ec27f6437683f75acc1 (patch)
treea99ee68116d10c2b2e5a70c442cdadec95ba793c /themes/neonxp/layouts/page.html
downloadblog-49458f5ffd5a48c465117ec27f6437683f75acc1.tar.gz
blog-49458f5ffd5a48c465117ec27f6437683f75acc1.tar.bz2
blog-49458f5ffd5a48c465117ec27f6437683f75acc1.tar.xz
blog-49458f5ffd5a48c465117ec27f6437683f75acc1.zip
initial
Diffstat (limited to '')
-rw-r--r--themes/neonxp/layouts/page.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/themes/neonxp/layouts/page.html b/themes/neonxp/layouts/page.html
new file mode 100644
index 0000000..506b56a
--- /dev/null
+++ b/themes/neonxp/layouts/page.html
@@ -0,0 +1,37 @@
+{{ define "main" }}
+<div class="h-entry">
+ <article>
+ <h1 class="p-name">{{ .Title }}</h1>
+ {{if .Date }}
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+ <time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ {{end}}
+ </article>
+ <article class="e-content">
+ {{ .Content }}
+ </article>
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+ {{if .Param "comments"}}
+ <h2>Комментарии</h2>
+ {{ range $key, $comment := where .Site.Data.comments "url" "eq" .Page.Path }}
+ <article>
+ <b>{{$comment.from}}:</b>
+ <p>{{$comment.comment}}</p>
+ </article>
+ {{ else }}
+ <article>Комментариев пока нет.</article>
+ {{ end }}
+
+ <article>
+ {{ $comment := (print "mailto:blog@neonxp.ru?subject=" .Page.Permalink | safeHTML) }}
+ Для отправки комментария достаточно отправить e-mail со своим комментарием
+ на адрес
+ <a href={{$comment}}>blog@neonxp.ru</a>, в теме нужно указать ссылку на
+ пост.<br />
+ Или просто нажать кнопку ниже. Всё очень просто :)<br />
+ <a class="btn-primary" href={{$comment}}>Написать комментарий</a>
+ </article>
+ {{end}}
+</div>
+{{ end }} \ No newline at end of file