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 42c41a57dd
commit 2c155a34b3
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
5 changed files with 23 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/html";
@import "elements/figure"; @import "elements/figure";
@import "elements/headings"; @import "elements/headings";
@import "elements/pre";
// 5. Objects class-based selectors which define undecorated design patterns, // 5. Objects class-based selectors which define undecorated design patterns,
// for example media object known from OOCSS // for example media object known from OOCSS

View File

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

View File

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

View File

@ -328,6 +328,13 @@ h3 {
font-family: "Gotham A", "Gotham B", sans-serif; font-family: "Gotham A", "Gotham B", sans-serif;
font-weight: 700; } font-weight: 700; }
pre {
overflow: auto;
background: black;
color: white;
border-radius: 0.5rem;
padding: 1em; }
.container { .container {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;