log101-dot-dev/layouts/partials/posts/header.html
log101 54513568fb feat: add code highlighting
style: change tags' style
2023-12-07 19:37:29 +00:00

15 lines
947 B
HTML

<header id="site-header" class="animated slideInUp">
<div>
<div class="back-title">
<a href="{{.Site.BaseURL}}">{{ i18n "backTitle" | safeHTML }}</a>
<h1 id="post-title">{{ .Title }}</h1>
<div class="post-meta"><span>{{ time.Format .Site.Params.dateform .Date }}</span></div>
</div>
<div>
{{ if (or .Params.images .Params.featuredImg) -}}
<button id="img-btn" class="hdr-btn" title="{{i18n "featuredImage"}}"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-image"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg></button>
{{- end }}
</div>
</div>
</header>