diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 03:56:47 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-15 03:56:47 +0300 |
commit | a9168e6f04f766f7d88bc1b24aaa81336098b2fc (patch) | |
tree | a4db599140020cfb14803aa4d28b17d52e637a72 /layouts/partials/single | |
parent | 3b040f1503d90a309f41063d8f760a3e312ab351 (diff) |
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/partials/single')
-rw-r--r-- | layouts/partials/single/footer.html | 12 | ||||
-rw-r--r-- | layouts/partials/single/header.html | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html new file mode 100644 index 0000000..5c53001 --- /dev/null +++ b/layouts/partials/single/footer.html @@ -0,0 +1,12 @@ +<footer> + <div class="row between-xs"> + <span> + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} + </span> + + {{ if .Params.Location }} + <span class="p-location">@ {{.Params.Location}}</span> + {{ end }} + </div> +</footer> +{{ if .Params.comments }} {{ partial "comments.html" . }} {{ end }} diff --git a/layouts/partials/single/header.html b/layouts/partials/single/header.html new file mode 100644 index 0000000..7b40390 --- /dev/null +++ b/layouts/partials/single/header.html @@ -0,0 +1,15 @@ +<h1 class="post-title fw-semibold"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1> +{{ if .Date }} + <div class="d-flex align-items-center mb-4 text-muted"> + <span class="d-flex align-items-center ms-3" title="{{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}"> + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="me-2" viewBox="0 0 16 16"> + <path d="M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"></path> + <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"></path> + </svg> + {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}} + </span> + </div> +{{ end }} +{{ if .Params.Image }} + <img class="d-block img-fluid mb-2 rounded border shadow" max-width="800" loading="lazy" src="{{ .RelPermalink }}{{.Params.Image}}" /> +{{ end }}
\ No newline at end of file |