diff --git a/themes/chosto/archetypes/section.md b/themes/chosto/archetypes/section.md index 147f846..85b641f 100644 --- a/themes/chosto/archetypes/section.md +++ b/themes/chosto/archetypes/section.md @@ -4,4 +4,4 @@ subtitle: code: draft: true --- - +{{/* We use sections to define "cases", i.e. serie of articles about a topic */}} diff --git a/themes/chosto/layouts/_default/_markup/render-heading.html b/themes/chosto/layouts/_default/_markup/render-heading.html index 6ece32d..aa53e92 100644 --- a/themes/chosto/layouts/_default/_markup/render-heading.html +++ b/themes/chosto/layouts/_default/_markup/render-heading.html @@ -1,2 +1,2 @@ - +{{/* Overwrite default title rendering to add anchor */}} {{ .Text | safeHTML }} \ No newline at end of file diff --git a/themes/chosto/layouts/_default/list.html b/themes/chosto/layouts/_default/list.html index d1a1fe0..7364cc7 100644 --- a/themes/chosto/layouts/_default/list.html +++ b/themes/chosto/layouts/_default/list.html @@ -1,13 +1,13 @@ {{ define "main" }} - +{{/* Default list used for homepage and taxonomy pages (e.g. tags), + but not for sections (see section.html template) */}}
- + ordered from newest to oldest */}} {{ $paginator := .Paginate (where (where site.RegularPages ".Type" "in" site.Params.mainSections) diff --git a/themes/chosto/layouts/_default/section.html b/themes/chosto/layouts/_default/section.html index c577a5b..7ab6f70 100644 --- a/themes/chosto/layouts/_default/section.html +++ b/themes/chosto/layouts/_default/section.html @@ -2,7 +2,7 @@
- + {{/* A section _index.md may have a content, describing its theme */}} {{ with .Content }}
@@ -10,9 +10,9 @@
{{ end }} - + to keep a sense of progression */}}
{{ $paginator := .Paginate .RegularPagesRecursive.ByDate }} {{ range $paginator.Pages }} diff --git a/themes/chosto/layouts/_default/single.html b/themes/chosto/layouts/_default/single.html index 2e94e31..7643edd 100644 --- a/themes/chosto/layouts/_default/single.html +++ b/themes/chosto/layouts/_default/single.html @@ -1,15 +1,15 @@ {{ define "main" }}
- - + */}} + {{/* is-desktop stacks vertically columns for tablets and mobiles. is-8 is a + maximum gap of 2rem between columns */}}
- + {{/* To ease reading, the content is a bit wider for small screens + but not too wide for big screens */}}