Fixing structure of cards in feed

This commit is contained in:
2023-09-24 15:25:51 -07:00
parent 0cb8356b67
commit 88bf31076d
6 changed files with 18 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
<div id="content" class="feed-container">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}

View File

@@ -5,7 +5,11 @@
<h5 class="card-header postcard card-title">{{ .Title }}</h5>
</a>
<div class="card-body postcard">
<p class="card-text">{{ .Description }}</p>
{{ if .Page.Params.Article }}
<p class="card-text">{{ .Description }}</p>
{{ else }}
<p class="card-text">{{ .Content }}</p>
{{ end }}
</div>
<div class="card-footer text-muted postcard">
{{ .Date | time.Format ":date_short" }} {{ .Date | time.Format ":time_long"}}

View File

@@ -1,5 +1,7 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<h5>{{ .Description }}</h5>
{{ if .Params.Article }}
<h5>{{ .Params.Description }}</h5>
{{ end }}
<div class="container">{{ .Content }}</div>
{{ end }}