1
0
mirror of https://github.com/danbee/danbarber.me.hugo.git synced 2025-03-04 08:59:18 +00:00

Proper summary rendering and pre

This commit is contained in:
Daniel Barber 2019-10-13 15:24:52 -04:00
parent 29f217cb88
commit 11baa60fb9
4 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,7 @@
pre {
overflow: auto;
background: black;
color: white;
border-radius: 0.5rem;
padding: 1em;
}

View File

@ -21,6 +21,7 @@
@import "elements/html";
@import "elements/figure";
@import "elements/headings";
@import "elements/pre";
// 5. Objects class-based selectors which define undecorated design patterns,
// for example media object known from OOCSS

View File

@ -3,6 +3,8 @@ languageCode = "en-us"
title = "Me, Dan Barber"
timeout = 30000
summaryLength = 999999
[params]
AuthorName = "Daniel Barber"
GitHubUser = "danbee"

View File

@ -3,7 +3,12 @@
{{ range .Pages }}
<article class="post">
<h3><a href="{{.Permalink}}">{{.Title}}</a></h3>
<p>{{.Summary}}</p>
{{ if .Truncated }}
{{.Summary}}
<a href="{{.Permalink}}">Read more →</a>
{{ else }}
{{.Content}}
{{ end }}
</article>
{{ end }}
</section>