diff --git a/config.yaml b/config.yaml index 96b4c31..5856021 100644 --- a/config.yaml +++ b/config.yaml @@ -21,7 +21,14 @@ frontmatter: - :fileModTime - :default -markup.goldmark.renderer.unsafe: true +# To allow html +markup: + goldmark: + renderer: + unsafe: true + +# Important to correctly update all related files upon modifications +disableFastRender: true taxonomies: group: groups diff --git a/themes/acoeur/assets/ananke/css/custom.css b/themes/acoeur/assets/ananke/css/custom.css index 2e2eb91..6433f24 100644 --- a/themes/acoeur/assets/ananke/css/custom.css +++ b/themes/acoeur/assets/ananke/css/custom.css @@ -128,6 +128,7 @@ body.users .ac_choice input[type="radio"]:checked + label.text { border-radius: 0.2em; } +aside#actions input#cover, aside#actions input#file { display: none; } diff --git a/themes/acoeur/layouts/_default/group.html b/themes/acoeur/layouts/_default/group.html index eb40376..42a7727 100644 --- a/themes/acoeur/layouts/_default/group.html +++ b/themes/acoeur/layouts/_default/group.html @@ -1,33 +1,32 @@ {{ define "main" }} - {{ end }} diff --git a/themes/acoeur/layouts/_default/group.terms.html b/themes/acoeur/layouts/_default/group.terms.html index 067fd1b..6722f96 100644 --- a/themes/acoeur/layouts/_default/group.terms.html +++ b/themes/acoeur/layouts/_default/group.terms.html @@ -1,30 +1,30 @@ {{ define "main" }} - +
+ {{ range .Pages }} +
+ {{ .Render "summary-with-image" }} +
+ {{ end }} +
+ {{ end }} diff --git a/themes/acoeur/layouts/_default/pages.html b/themes/acoeur/layouts/_default/pages.html index 5523771..bbdae78 100644 --- a/themes/acoeur/layouts/_default/pages.html +++ b/themes/acoeur/layouts/_default/pages.html @@ -22,7 +22,7 @@ {{ end }} -
+
{{ range .Pages.ByTitle }} {{ .Render "summary-with-image" }} {{ end }} diff --git a/themes/acoeur/layouts/_default/summary-with-image.html b/themes/acoeur/layouts/_default/summary-with-image.html index 7e51920..9aebc76 100644 --- a/themes/acoeur/layouts/_default/summary-with-image.html +++ b/themes/acoeur/layouts/_default/summary-with-image.html @@ -1,26 +1,21 @@ {{ $featured_image := partial "func/GetFeaturedImage.html" . }} -
- {{ if $featured_image }} - {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} -
- - image from {{ .Title }} - +
+
+ {{ if $featured_image }} + + {{ .Title }} + + {{ else }} +   + {{ end }}
- {{ else }} - - {{ end }} - -
+
-

@@ -29,11 +24,8 @@

- - {{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }} -
{{ partial "ac_notation" .Parent }} diff --git a/themes/acoeur/layouts/_default/users.html b/themes/acoeur/layouts/_default/users.html index f167987..018ebe1 100644 --- a/themes/acoeur/layouts/_default/users.html +++ b/themes/acoeur/layouts/_default/users.html @@ -1,65 +1,72 @@ {{ define "main" }} - {{ with .Site.GetPage (path.Join "groups" .Params.groups) }} + {{ if .Params.groups }} + {{ with .Site.GetPage (path.Join "groups" .Params.groups) }} - {{ $featured_image := partial "func/GetFeaturedImage.html" . }} - {{ if $featured_image }} - - {{ .Title }} - - {{ else }} - - {{- .Title -}} - - {{ end }} + {{ $featured_image := partial "func/GetFeaturedImage.html" . }} + {{ if $featured_image }} + + {{ .Title }} + + {{ else }} + + {{- .Title -}} + + {{ end }} - {{ end }} + {{ end }} + {{ end }} -
{{ end }} diff --git a/themes/acoeur/layouts/index.html b/themes/acoeur/layouts/index.html index c430a28..6bbfc02 100644 --- a/themes/acoeur/layouts/index.html +++ b/themes/acoeur/layouts/index.html @@ -1,26 +1,36 @@ {{ define "header" }} {{/* We can override any block in the baseof file be defining it in the template */}} - {{ partial "page-header.html" . }} + {{ partial "page-header.html" . }} {{ end }} {{ define "main" }} -
- {{ .Content }} -
+
+ {{ .Content }} +
- {{ end }} diff --git a/themes/acoeur/layouts/partials/ac_notation.html b/themes/acoeur/layouts/partials/ac_notation.html index 360dcfc..6228d59 100644 --- a/themes/acoeur/layouts/partials/ac_notation.html +++ b/themes/acoeur/layouts/partials/ac_notation.html @@ -1,6 +1,6 @@ {{ if gt .Params.ac_total 0 }} - - {{ sub .Params.ac_total .Params.ac_errors }} / {{ .Params.ac_total }} - + + {{ sub .Params.ac_total .Params.ac_errors }} / {{ .Params.ac_total }} + {{ end }} diff --git a/themes/acoeur/layouts/partials/breadcrumb.html b/themes/acoeur/layouts/partials/breadcrumb.html index 321c114..4ab52c0 100644 --- a/themes/acoeur/layouts/partials/breadcrumb.html +++ b/themes/acoeur/layouts/partials/breadcrumb.html @@ -1,9 +1,7 @@ -{{ if and .Parent.IsSection (not .Parent.IsHome) }} - -{{ partial "breadcrumb.html" .Parent }} - -
  • - {{- .Title -}} -
  • - +{{ range .Ancestors.Reverse }} + {{ if and (not .IsHome) (not .Parent.IsHome) }} +
  • + {{- .Title -}} +
  • + {{ end }} {{ end }}