vanilla-hugo/layouts/blog/single.html
Danila Fedorin 1a9d9f33cf Use proper link concatenation
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 14:17:15 -07:00

45 lines
1.3 KiB
HTML

{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>
{{- range (.GetTerms "tags") -}}
<a class="button" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end -}}
</p>
<p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p>
</div>
<div class="post-content">
{{- if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
<div class="table-of-contents">
<div class="wrapper">
<em>{{- i18n "tableOfContents" -}}</em>
{{- .TableOfContents -}}
</div>
</div>
{{- end -}}
{{- if .Draft -}}
{{- partial "warning.html" (i18n "postDraft") -}}
{{- end -}}
{{- .Content -}}
</div>
{{- end -}}
{{- define "after" -}}
<div class="container">
{{- partial "seriesnav.html" . -}}
</div>
<hr class="container footer-divider">
<footer class="container">
<p>{{ i18n "contactFooter" | safeHTML }}</p>
<!--
<p>I'm also currently looking for Computer Science internships for the summer
of 2021. Take a look at my <a href="/Resume-Danila-Fedorin.pdf">resume</a>,
<a href="https://github.com/DanilaFe">GitHub profile</a>,
and <a href="/favorites">my favorite articles from this blog</a>
to learn more about me!</p>
-->
</footer>
{{- end -}}