Display post author

This commit is contained in:
simon987 2019-05-14 22:26:17 -04:00
parent f16e743150
commit 0a43b0764b
6 changed files with 18 additions and 3 deletions

View File

@ -3,6 +3,7 @@ title: "Overview Of Private Trackers"
date: 2019-05-12T21:52:00-04:00 date: 2019-05-12T21:52:00-04:00
draft: false draft: false
tags: ["torrents"] tags: ["torrents"]
author: "simon987"
--- ---
# Private BitTorrent trackers # Private BitTorrent trackers

View File

@ -3,6 +3,7 @@ title: "Web Scraping 101: E-Reader app"
date: 2019-05-13T10:46:34-04:00 date: 2019-05-13T10:46:34-04:00
tags: ["scraping"] tags: ["scraping"]
draft: false draft: false
author: "simon987"
--- ---
Let's say you bought a textbook and it comes with Let's say you bought a textbook and it comes with

View File

@ -3,6 +3,7 @@ title: "Automating Youtube Archival"
date: 2019-05-11 date: 2019-05-11
draft: false draft: false
tags: ["youtube-dl", "automation"] tags: ["youtube-dl", "automation"]
author: "simon987"
--- ---
Google has been known to terminate entire Youtube channels without Google has been known to terminate entire Youtube channels without

View File

@ -32,6 +32,9 @@
{{ end }} {{ end }}
</p> </p>
<h1>{{ if .Draft }}DRAFT: {{end}}{{ .Title }}</h1> <h1>{{ if .Draft }}DRAFT: {{end}}{{ .Title }}</h1>
{{ if isset .Params "author" }}
<div class="post-author">by {{ .Params.author }}</divv>
{{ end }}
</div> </div>
<div class="post-content"> <div class="post-content">

View File

@ -19,6 +19,9 @@
<a class="post-list" href="{{ .Permalink }}">{{ $page.Title }}</a> <a class="post-list" href="{{ .Permalink }}">{{ $page.Title }}</a>
<p class="footnote"> <p class="footnote">
{{ with $page.Params.author }}
{{ . }},
{{ end }}
<time datetime="{{ $page.Date }}"> <time datetime="{{ $page.Date }}">
{{ if .Site.Params.dateformatpretty }} {{ if .Site.Params.dateformatpretty }}
{{ $page.Date.Format .Site.Params.dateformatpretty }} {{ $page.Date.Format .Site.Params.dateformatpretty }}
@ -42,7 +45,6 @@
{{ with $page.Params.series }} {{ with $page.Params.series }}
series: [ {{ range $page.Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}/">{{ . }}</a> {{ end }}] series: [ {{ range $page.Params.series }}<a href="{{ $baseurl }}series/{{ . | urlize }}/">{{ . }}</a> {{ end }}]
{{ end }} {{ end }}
</p> </p>
</li> </li>
{{ end }} {{ end }}

View File

@ -61,7 +61,6 @@ pre code {
} }
.site-title { .site-title {
text-transform: none;
font-weight: normal; font-weight: normal;
font-family: "Source Sans Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Source Sans Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
} }
@ -235,7 +234,6 @@ pre code {
font-weight: bold; font-weight: bold;
font-size: 39px; font-size: 39px;
line-height: 40px; line-height: 40px;
margin-top: 8px;
margin-bottom: 0; margin-bottom: 0;
} }
@ -318,3 +316,12 @@ hr {
figure { figure {
text-align: center; text-align: center;
} }
.post-author {
display: block;
font-family: verdana, arial, helvetica, sans-serif;
color: #757575;
margin-top: -0.1em;
margin-left: 2em;
margin-bottom: 1em;
}