Files
personal-website/layouts/_default/single.html
T
hazemKrimi eae27cb10e chore: new blog post and small patches (#3)
* wip: blog post on open source

* wip: initial draft of the blog post

* chore: remove sharing a blog post

* fix: broken style from previous commit

* chore: improve handling keywords
2025-05-15 20:47:14 +01:00

30 lines
917 B
HTML

{{ define "styles" }}
{{ $styles := resources.Get "css/single.css" | toCSS | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
{{ end }}
{{ define "main" }}
<div id="container">
<div>
{{ partial "breadcrumb.html" . }}
<section id="metadata">
<h1>{{ .Title }}</h1>
<div>
<span>{{ readFile "assets/icons/calendar.svg" | safeHTML }} {{ .Date.Format .Site.Params.dateFormat }}</span>
<span>{{ readFile "assets/icons/clock.svg" | safeHTML }} {{ printf "%d minute(s) read" .ReadingTime }}</span>
</div>
</section>
<section id="content">
<div>
{{ .Content }}
</div>
</section>
</div>
{{ partial "table-of-contents.html" . }}
</div>
{{ end }}