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:
parent
29f217cb88
commit
11baa60fb9
7
assets/sass/elements/_pre.scss
Normal file
7
assets/sass/elements/_pre.scss
Normal file
@ -0,0 +1,7 @@
|
||||
pre {
|
||||
overflow: auto;
|
||||
background: black;
|
||||
color: white;
|
||||
border-radius: 0.5rem;
|
||||
padding: 1em;
|
||||
}
|
||||
@ -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
|
||||
|
||||
@ -3,6 +3,8 @@ languageCode = "en-us"
|
||||
title = "Me, Dan Barber"
|
||||
timeout = 30000
|
||||
|
||||
summaryLength = 999999
|
||||
|
||||
[params]
|
||||
AuthorName = "Daniel Barber"
|
||||
GitHubUser = "danbee"
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user