mirror of
https://github.com/gmemstr/blog.gabrielsimmer.com.git
synced 2024-09-19 11:41:10 +01:00
Tweaks to post styling.
Dates on homepage list, better pagination (less confusing).
This commit is contained in:
parent
c8ed961e17
commit
74f7934414
|
@ -3,3 +3,4 @@ languageCode = "en-us"
|
|||
title = "Gabriel's Blog"
|
||||
theme = "gs"
|
||||
ignorefiles = [ "content/posts/exported/.*", "content/posts/drafts/.*" ]
|
||||
paginate = 5
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: (Part 2) ATCS --- Flamingo {#part-2-atcs-flamingo .p-name}
|
||||
title: (Part 2) ATCS --- Flamingo
|
||||
date: 2016-12-08
|
||||
---
|
||||
|
||||
|
|
|
@ -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
1
static/CNAME
Normal file
|
@ -0,0 +1 @@
|
|||
blog.gabrielsimmer.com
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue