Tweaks to post styling.

Dates on homepage list, better pagination (less confusing).
This commit is contained in:
Gabriel Simmer 2021-07-07 10:14:43 +01:00
parent c8ed961e17
commit 74f7934414
6 changed files with 38 additions and 6 deletions

View file

@ -3,3 +3,4 @@ languageCode = "en-us"
title = "Gabriel's Blog"
theme = "gs"
ignorefiles = [ "content/posts/exported/.*", "content/posts/drafts/.*" ]
paginate = 5

View file

@ -1,5 +1,5 @@
---
title: (Part 2) ATCS --- Flamingo {#part-2-atcs-flamingo .p-name}
title: (Part 2) ATCS --- Flamingo
date: 2016-12-08
---

View file

@ -48,6 +48,8 @@ seconds with a 14 item list), but I'll refine a bit in the future.
![How the spreadsheet looks](https://cdn-images-1.medium.com/max/600/1*a6NU2Lv_H2gHrffRT2pfEw.png)
[Gist source](https://gist.github.com/gmemstr/d0024ab38a9cd0aae3a8cce25202c9b0)
> "If everyone demanded peace instead of another television set, then
> there'd be peace." -- [**John
> Lennon**](https://www.goodreads.com/author/show/19968.John_Lennon) **(Probably)**

1
static/CNAME Normal file
View file

@ -0,0 +1 @@
blog.gabrielsimmer.com

View file

@ -10,13 +10,29 @@
<div class="eight columns">
{{- .Content -}}
{{ range .Paginator.Pages }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="nested-links f5 lh-copy nested-copy-line-height">
<div class="post-summary">
<div class="post-header">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<span>{{ .Date.Format "January 2, 2006" }}</span>
</div>
<div>
{{ .Summary }}
</div>
</div>
{{ end }}
<div class="pagination">
{{- template "_internal/pagination.html" . -}}
{{ $paginator := .Paginator }}
{{ if gt $paginator.TotalPages 1 }}
<ul>
{{ if $paginator.HasNext }}
<li><a href="{{ $paginator.Next.URL }}">Older</a></li>
{{ end }}
{{ if $paginator.HasPrev }}
<li><a href="{{ $paginator.Prev.URL }}">Newer</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>

View file

@ -74,7 +74,6 @@
}
.pagination {
width: 50%;
margin: 0 auto;
}
@ -84,6 +83,19 @@
justify-content: space-between;
}
.post-summary {
margin-bottom: 50px;
}
.post-header {
margin-bottom: 2rem;
}
.post-header > h2 {
margin-bottom: 0;
}
/* Base Styles
*/
/* NOTE