Compare commits
7 Commits
1a5a3f3d97
...
b39575ff9e
Author | SHA1 | Date |
---|---|---|
Jez Cope | b39575ff9e | |
Jez Cope | 3cc880b5a3 | |
Jez Cope | 964aab9397 | |
Jez Cope | c3621e7017 | |
Jez Cope | e056229575 | |
Jez Cope | cc0a37bbbb | |
Jez Cope | d7119f0f62 |
|
@ -91,7 +91,7 @@ h6, .content h6
|
|||
ul
|
||||
list-style-type: "- "
|
||||
|
||||
&.taxonomy-list
|
||||
&.taxonomy-list.tags-list
|
||||
column-count: 4
|
||||
|
||||
.summary
|
||||
|
@ -181,10 +181,8 @@ h6, .content h6
|
|||
.reacts a.reaction
|
||||
display: inline-block
|
||||
|
||||
.toc
|
||||
@extend .panel
|
||||
@extend .is-size-7
|
||||
@extend .mt-4
|
||||
|
||||
ul
|
||||
@extend .menu-list
|
||||
|
||||
#current
|
||||
font-weight: bold
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
<time>{{ .Date.Format .Site.Params.DateFormat }}</time>
|
||||
<div class="page-date">
|
||||
<strong>Date:</strong>
|
||||
<time>{{ .Date.Format .Site.Params.DateFormat }}</time>
|
||||
</div>
|
||||
{{ partial "series.html" .Params.series }}
|
||||
{{ partial "tags.html" .Params.tags }}
|
||||
|
|
|
@ -4,15 +4,17 @@
|
|||
{{ if or .Title .Content }}
|
||||
<div class="columns">
|
||||
<div class="column is-8 is-offset-2">
|
||||
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
||||
{{ with .Content }}<div class="content">{{ . }}</div>{{ end }}
|
||||
{{ with .Title }}<h1 class="mb-5">{{ . }}</h1>{{ end }}
|
||||
{{ with .Content }}<div class="content">{{ . }}<hr /></div>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="columns mb-6">
|
||||
<div class="column is-8 is-offset-2 content">
|
||||
<ul class="list {{ .Kind }}-list">
|
||||
{{ range sort .Pages "Title" "asc" }}
|
||||
<ul class="list {{ .Kind }}-list{{ with .Data.Plural }} {{.}}-list{{ end }}">
|
||||
{{ $sort_field := "Date" }}
|
||||
{{ if eq .Kind "taxonomy" }}{{ $sort_field = "Title" }}{{ end }}
|
||||
{{ range sort .Pages $sort_field "asc" }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
{{ partial "status" . }}
|
||||
</div>
|
||||
<div class="column is-8">
|
||||
{{ partial "series-items" . }}
|
||||
{{ partial "toc" . }}
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
{{ define "main" }}
|
||||
<section class="hero px-3 site-description">
|
||||
<div class="hero-body container">
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-three-fifths">
|
||||
{{ with .Site.Params.Description }}{{.}}{{ end }}
|
||||
{{ with .Site.Params.Topics }}
|
||||
{{ $last := sub (len .) 1 }}
|
||||
{{ range $i, $x := . }}
|
||||
<a href="/tags/{{ $x | urlize }}/">{{ $x }}</a>
|
||||
{{ if lt $i $last }}<span class="ampersand">&</span>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column is-8 is-offset-2">
|
||||
{{ with .Site.Params.Description }}{{.}}{{ end }}
|
||||
{{ with .Site.Params.Topics }}
|
||||
{{ $last := sub (len .) 1 }}
|
||||
{{ range $i, $x := . }}
|
||||
<a href="/tags/{{ $x | urlize }}/">{{ $x }}</a>
|
||||
{{ if lt $i $last }}<span class="ampersand">&</span>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
{{ $page := . }}
|
||||
{{ with .Params.series }}
|
||||
{{ $series := (site.GetPage "/series").GetPage . }}
|
||||
<div class="card mb-5">
|
||||
<header class="card-header has-background-primary has-text-white">
|
||||
<p class="card-header-title has-text-white">
|
||||
Series
|
||||
</p>
|
||||
</header>
|
||||
<div class="card-content content is-size-7">
|
||||
{{ with $series.Params.on }}
|
||||
<p>This post is part of <a href="{{ $series.RelPermalink }}">a series on {{.}}</a>.</p>
|
||||
{{ else }}
|
||||
<p>This post is part of the series <a href="{{ $series.RelPermalink }}" class="has-text-white">{{ $series.Title }}</a></p>
|
||||
{{ end }}
|
||||
<ul>
|
||||
{{ range $series.Pages }}
|
||||
<li>
|
||||
{{ if ne . $page }}<a href="{{ .RelPermalink }}">{{ else }}<span id="current">> {{ end }}
|
||||
{{ .Title }}
|
||||
{{ if ne . $page }}</a>{{ else }} <</span>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -0,0 +1,7 @@
|
|||
{{ with . }}
|
||||
{{ $series := (site.GetPage "/series").GetPage . }}
|
||||
<div>
|
||||
<strong>Series:</strong>
|
||||
<a href="{{ $series.RelPermalink }}">{{ $series.Title }}</a>
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,3 +1,8 @@
|
|||
{{ range . }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">[{{ . }}]</a>
|
||||
{{ end }}
|
||||
<div class="page-tags">
|
||||
<strong>Tags:</strong>
|
||||
{{ range . }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">[{{ . }}]</a>
|
||||
{{ else }}
|
||||
<em>None</em>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{{ if .Params.ShowTOC }}
|
||||
<div class="toc">
|
||||
<p class="panel-heading">Contents</p>
|
||||
<div class="panel-block">
|
||||
<div class="card mb-5">
|
||||
<div class="card-header has-background-light">
|
||||
<p class="card-header-title">Contents</p>
|
||||
</div>
|
||||
<div class="card-content content is-size-7">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }} ({{ .Data.series | len }} posts)</a>
|
||||
{{- with .Params.summary }}: {{.}}{{ end }}
|
||||
</li>
|
|
@ -1,10 +1,10 @@
|
|||
<div class="panel{{ with .Get 1 }} is-{{.}}{{ end }}">
|
||||
<p class="panel-heading">
|
||||
{{ .Get 0 | title }}
|
||||
</p>
|
||||
<div class="panel-block">
|
||||
<div class="content">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
<div class="card mb-5">
|
||||
<header class="card-header{{ with .Get 1 }} has-background-{{.}} has-text-white{{ end }}">
|
||||
<p class="card-header-title">
|
||||
{{ .Get 0 | title }}
|
||||
</p>
|
||||
</header>
|
||||
<div class="card-content content">
|
||||
{{ .Inner | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue