2020-06-22 10:22:19 +00:00
|
|
|
{{ define "main" }}
|
2022-11-30 01:09:34 +00:00
|
|
|
<article class="post">
|
|
|
|
<header class="post-header">
|
|
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
|
|
<div class="post-meta">
|
|
|
|
<div>
|
|
|
|
{{ partial "icon.html" (dict "ctx" $ "name" "calendar") }} {{
|
|
|
|
.PublishDate.Format "Jan 2, 2006" }}
|
2020-06-22 10:22:19 +00:00
|
|
|
</div>
|
2022-11-30 01:09:34 +00:00
|
|
|
<div>
|
|
|
|
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime
|
|
|
|
}} min read
|
|
|
|
</div>
|
|
|
|
{{- with .Params.tags -}}
|
|
|
|
<div>
|
|
|
|
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }} {{ range . -}} {{-
|
|
|
|
with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
|
|
|
|
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
{{- end -}} {{- end -}}
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|
2020-06-22 10:22:19 +00:00
|
|
|
</div>
|
2022-11-30 01:09:34 +00:00
|
|
|
</header>
|
|
|
|
<div class="post-content">{{ .Content }}</div>
|
|
|
|
<div class="post-footer">
|
2024-02-21 08:00:04 +00:00
|
|
|
<div id="remark42"></div>
|
2022-11-30 01:09:34 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
2024-02-21 08:00:04 +00:00
|
|
|
<script>
|
|
|
|
var remark_config = {
|
|
|
|
host: "https://remark.phundrak.com",
|
|
|
|
site_id: "blog",
|
|
|
|
theme: "dark",
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
!(function (e, n) {
|
|
|
|
for (var o = 0; o < e.length; o++) {
|
|
|
|
var r = n.createElement("script"),
|
|
|
|
c = ".js",
|
|
|
|
d = n.head || n.body;
|
|
|
|
"noModule" in r ? ((r.type = "module"), (c = ".mjs")) : (r.async = !0),
|
|
|
|
(r.defer = !0),
|
|
|
|
(r.src = remark_config.host + "/web/" + e[o] + c),
|
|
|
|
d.appendChild(r);
|
|
|
|
}
|
|
|
|
})(remark_config.components || ["embed"], document);
|
|
|
|
</script>
|
2020-06-22 10:22:19 +00:00
|
|
|
{{ end }}
|