Compare commits
No commits in common. "96c02e7ba36ddc0201759aa5986d44cf1bca70d1" and "098cbca3c3519d19fbdad10f0a344eff3bed9ebc" have entirely different histories.
96c02e7ba3
...
098cbca3c3
2 changed files with 25 additions and 1 deletions
24
layouts/blog/section.html
Normal file
24
layouts/blog/section.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{{ define "page" }}
|
||||
<content>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ .Content }}</p>
|
||||
<h2>Latest posts</h2>
|
||||
{{ range .Pages }}
|
||||
<div class="section-page-item">
|
||||
<h3>{{ .Title }}</h3>
|
||||
<div class="details">
|
||||
<time class="float-left">{{ .PublishDate | time.Format ":date_medium" }}</time>
|
||||
{{- if .Site.Params.Display.ReadingTime -}}
|
||||
<div class="read-time float-left"> • {{ partial "reading-time.html" . }}</div>
|
||||
{{- end -}}
|
||||
{{- if and .Site.Params.Display.Author .Page.Params.Author -}}
|
||||
<div class="author float-left"> • by {{ .Page.Params.Author }}</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
<div class="summary">{{ .Summary }}</div>
|
||||
<a href="{{ .RelPermalink }}">Read more →</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</content>
|
||||
{{ end }}
|
|
@ -8,7 +8,7 @@
|
|||
<h3>{{ .Params.position }} @ {{ .Params.company }}</h3>
|
||||
<div class="details">
|
||||
<time class="float-left">
|
||||
{{ .Params.begin }} until {{ .Params.end | default "now" }}
|
||||
{{ .Params.begin }} to {{ .Params.end | default "now" }}
|
||||
</time>
|
||||
</div>
|
||||
{{ .Content }}
|
||||
|
|
Loading…
Reference in a new issue