mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
30 lines
828 B
HTML
30 lines
828 B
HTML
{{ define "stylesheets" }}
|
|
<link rel="stylesheet" href="/css/post.css" />
|
|
{{ end }}
|
|
|
|
|
|
{{ define "main" }}
|
|
<div class="post">
|
|
<header class="post__header">
|
|
<h1 class="post__title">{{.Title}}</h1>
|
|
<time datetime="{{ .Date }}" class="post__date"
|
|
>{{ .Date.Format "Jan 2 2006" }}</time
|
|
>
|
|
</header>
|
|
<article class="post__content">
|
|
{{ partial "anchored-headings.html" .Content }}
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
{{ partial "math.html" . }}
|
|
{{ end }}
|
|
</article>
|
|
{{ partial "tags.html" .}} {{ partial "post-pagination.html" .}}
|
|
</div>
|
|
{{ end }} {{ define "footer" }}
|
|
<footer>
|
|
{{ partial "social-icons.html" .}}
|
|
<p>{{ replace .Site.Copyright "{year}" now.Year }}</p>
|
|
</footer>
|
|
{{ end }} {{ define "scripts" }}
|
|
<script src="https://unpkg.com/prismjs@^1.2"></script>
|
|
{{ end }}
|