diff options
Diffstat (limited to 'layouts/partials/blogsection.html')
-rw-r--r-- | layouts/partials/blogsection.html | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/layouts/partials/blogsection.html b/layouts/partials/blogsection.html index 0b9a349..10ba7a4 100644 --- a/layouts/partials/blogsection.html +++ b/layouts/partials/blogsection.html @@ -1,21 +1,22 @@ -<div class="content" id="blog"> +<div class="container"><!-- Begin Blog container --> {{ if .Site.Params.showlatest }} -<h2 class="section-head">Latest Post</h2> -{{ range first 1 .Data.Pages.ByPublishDate }} - <div class="summary">{{ .Date.Format .Site.Params.dateform }} - <h4><span style="font-weight: bold"><a href="{{ .RelPermalink }}">{{ .Title }}</a></span></h4> - {{ .Summary }} - {{ if .Truncated }} - <div class="read-more-link"><a href="{{ .RelPermalink }}">...Read More</a></div> - {{ end }} - </div> -{{ end }} +<h2 class="title is-2 has-text-centered">Latest Post</h2> + {{ range first 1 .Data.Pages.ByPublishDate }} + <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"> + {{ .Summary }} + {{ if .Truncated }} + <a href="{{ .RelPermalink }}">...Read More</a> + {{ end }} + </div> + </div> + {{ end }} {{ end }} {{ if .Site.Params.showallposts }} -<h2 class="section-head">All Posts</h2> -<div class="bloglist"> +<h2 class="title is-2 has-text-centered top-pad">All Posts</h2> <ul> {{ range .Data.Pages.ByPublishDate }} {{ if eq .Section "blog" }} @@ -23,9 +24,10 @@ {{ end }} {{ end }} </ul> -</div> {{ else }} -<div class="nav"><a href="/blog">All Blog Posts</a></div> +<div class="container has-text-centered top-pad"><a href="/blog">ALL BLOG POSTS</a></div> {{ end }} -<div class="nav"><a href="#top"><i class="fa fa-arrow-up"></i></a></div> -</div>
\ No newline at end of file + +</div><!-- End Blog container --> + +<div class="container has-text-centered top-pad"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
\ No newline at end of file |