mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
parent
2e01da3ccd
commit
27921af8f3
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
{{ if .Site.Params.showlatest }}
|
||||
<h2 class="title is-2 top-pad">Latest Post</h2>
|
||||
{{ range first 1 .Data.Pages.ByPublishDate }}
|
||||
{{ range first 1 (where .Data.Pages.ByPublishDate "Section" "blog") }}
|
||||
<div class="summary">{{ .Date.Format .Site.Params.dateform }}
|
||||
<h3 class="title is-3 strong-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<div class="markdown">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{ if .Site.Params.showlatest }}
|
||||
<h2 class="title is-2 has-text-centered">Latest Post</h2>
|
||||
{{ range first 1 .Data.Pages.ByPublishDate }}
|
||||
{{ range first 1 (where .Data.Pages.ByPublishDate "Section" "blog") }}
|
||||
<div class="summary">{{ .Date.Format .Site.Params.dateform }}
|
||||
<h3 class="title is-3 latest-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<div class="markdown">
|
||||
|
|
Loading…
Reference in a new issue