mirror of
https://git.adityakumar.xyz/adityakumar.xyz.git
synced 2024-12-22 08:52:53 +00:00
46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{{ with .Site.GetPage "/blog" }}
|
|
<div class="section" id="{{ .Title | urlize }}">
|
|
<!-- Begin Blog container -->
|
|
<div class="container">
|
|
{{ if .Site.Params.home.showLatest | default true }}
|
|
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
|
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
|
<div class="summary">
|
|
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }}{{ end }}
|
|
<h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h3>
|
|
<div class="markdown">
|
|
{{ .Summary }}
|
|
{{ if .Truncated }}
|
|
<a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ if .Site.Params.home.showAllPosts }}
|
|
<div class="section" id="all-posts">
|
|
<div class="container">
|
|
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
|
{{if .Site.Params.home.allPostsArchiveFormat}}
|
|
{{ partialCached "blog/archive.html" .}}
|
|
{{else}}
|
|
{{ partialCached "blog/li.html" . }}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
<div class="container has-text-centered top-pad">
|
|
<a href="{{ .Permalink }}">{{ i18n "index_blog_allPosts" . }}</a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<!-- End Blog container -->
|
|
{{ partial "top-icon.html" . }}
|
|
|
|
<!-- End Blog section -->
|
|
<div class="container">
|
|
<hr>
|
|
</div>
|
|
{{ end }}
|