Compare commits

..

No commits in common. "96c02e7ba36ddc0201759aa5986d44cf1bca70d1" and "098cbca3c3519d19fbdad10f0a344eff3bed9ebc" have entirely different histories.

2 changed files with 25 additions and 1 deletions

24
layouts/blog/section.html Normal file
View 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"> &bull; {{ partial "reading-time.html" . }}</div>
{{- end -}}
{{- if and .Site.Params.Display.Author .Page.Params.Author -}}
<div class="author float-left"> &bull; by {{ .Page.Params.Author }}</div>
{{- end -}}
</div>
<div class="summary">{{ .Summary }}</div>
<a href="{{ .RelPermalink }}">Read more &rarr;</a>
</div>
{{ end }}
</content>
{{ end }}

View file

@ -8,7 +8,7 @@
<h3>{{ .Params.position }} @ {{ .Params.company }}</h3> <h3>{{ .Params.position }} @ {{ .Params.company }}</h3>
<div class="details"> <div class="details">
<time class="float-left"> <time class="float-left">
{{ .Params.begin }} until {{ .Params.end | default "now" }} {{ .Params.begin }} to {{ .Params.end | default "now" }}
</time> </time>
</div> </div>
{{ .Content }} {{ .Content }}