vanilla-hugo/layouts/blog/single.html

55 lines
1.7 KiB
HTML
Raw Normal View History

{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
<p>
{{ range .Params.tags }}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</p>
2023-01-01 01:28:18 -08:00
<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">
2023-01-01 01:28:18 -08:00
<em>{{ i18n "tableOfContents" }}</em>
{{ .TableOfContents }}
</div>
</div>
{{ end }}
{{ if .Draft }}
2023-01-01 01:28:18 -08:00
{{ partial "warning.html" (i18n "postDraft") }}
{{ end }}
{{ .Content }}
</div>
{{ end }}
{{ define "after" }}
{{ $term := index (.GetTerms "series") 0 }}
{{ with $term }}
{{- /* No idea why the 'Reverse' is needed? */ -}}
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
<nav id="SeriesNavigation" class="container">
{{ with $pages.Prev page }}
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }}
{{ end }}
{{ with $pages.Next page }}
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }}
{{ end }}
</nav>
{{ end }}
<hr class="container footer-divider">
<footer class="container">
2023-01-01 01:28:18 -08:00
<p>{{ i18n "contactFooter" | safeHTML }}</p>
2021-06-28 12:03:45 -07:00
<!--
<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>
2021-06-28 12:03:45 -07:00
-->
</footer>
{{ end }}