citra-web/site/themes/citra-bs-theme/layouts/entry/header.html
liushuyu 8e9b406e71 tree-wide: adapt to latest Hugo layout ...
* Use Hugo to process SCSS and images
* Use co-location page bundles
* Use Hugo/ESBuild to minify JS files
* Update NPM dependencies
2023-02-10 08:50:35 -07:00

22 lines
726 B
HTML

<a href="{{ .Permalink }}">
<div class="entry-embed-header">
{{ $slug := path.BaseName .RelPermalink }}
<div class="entry-embed" style="background: url('{{ .Site.BaseURL }}/images/banners/{{ .Params.Banner | default (print $slug ".png") }}')">
<header>
<h1>{{ .Title }}</h1>
</header>
</div>
{{/* Each entry-meta is 40 + 5 padding in height. */}}
<div class="entry-meta" style="position: absolute; top: 5px; right: 20px;">
{{ .Date.Format "January 02 2006" }}
</div>
{{ range .Params.tags }}
<div class="entry-meta" style="position: absolute; top: 45px; right: 20px;">
{{ . }}
</div>
{{ end }}
</div>
</a>