Updating post layout

This commit is contained in:
2020-06-09 01:40:51 +01:00
parent e2c1b06006
commit bd2be62986
5 changed files with 38 additions and 28 deletions

View File

@@ -1,5 +1,7 @@
{{- if .Params.authors -}}
<ul class="authors list-inline">
<p class="text-muted">Written by</p>
<!-- <br> -->
{{- range .Params.authors -}}
{{- with $.Site.GetPage (printf "/authors/%s" (. | urlize)) -}}
{{- $term := . -}}

View File

@@ -1,4 +1,4 @@
<footer class="footer text-center bg-dark py-4" style="z-index: 10;">
<footer class="footer text-center bg-primary py-4" style="z-index: 10;">
<div class="container">
<div class="row">
<div class="col">
@@ -41,7 +41,7 @@
{{- end }}
</ul>
<p class="text-muted">
<p class="text-white">
{{ if .Site.Copyright }}
{{ .Site.Copyright | safeHTML }}
{{ else }}
@@ -49,9 +49,6 @@
{{ end }}
</p>
<!-- <p class="text-muted">
Powered by <a href="https://gohugo.io" target="_blank">Hugo</a> with <a href="https://github.com/puresyntax71/hugo-theme-chunky-poster" target="_blank">Chunky Poster</a>.
</p> -->
</div>
</div>
</div>

View File

@@ -1,6 +1,6 @@
{{- $related := .Site.RegularPages.Related . | first 3 -}}
{{- with $related -}}
<div class="related-content row mt-5 row-cols-1 row-cols-lg-3">
<div class="related-content row mt-5 row-cols-1 row-cols-lg-5">
{{- range . -}}
<div class="col mb-3">
{{ .Render "card" }}