log101-dot-dev/layouts/posts/single.html
log101 55f2b00f91 feat: add featued images
content: add new posts
2023-12-11 05:05:40 +00:00

39 lines
936 B
HTML

{{ define "header" }}
{{ partial "post/header.html" . }}
{{ end }}
{{ define "main" }}
<main class="site-main section-inner animated fadeIn faster">
<article class="thin">
<header class="post-header">
{{- with .Params.tags }}
<div class="post-tags">
{{- range . -}}
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{.}}</a></span>
{{- end }}
</div>
{{- end }}
</header>
{{- if (or .Params.images .Params.featuredImg) }}
<div class="featured-image">
<img src="{{.Params.featuredImg}}">
</div>
{{- end }}
<div class="post-content">
{{ .Content | safeHTML }}
</div>
{{- if .Site.Params.relatedPosts }}
{{- partial "related-posts.html" . -}}
{{- end }}
<hr class="post-end">
<a class="post-to-top-link" href="#">⮝ Başa dön</a>
</article>
</main>
{{ end }}
{{ define "footer" }}
{{ partialCached "footer.html" . }}
{{ end }}