From ac5a0ea9d58d28c8febd12e70f8aca1e6c5c2551 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Sun, 4 Oct 2026 11:22:52 +0200 Subject: [PATCH] remove dead code - mathjax.html: no page sets enableMathJax, and it was loading a useless polyfill along with some MathJax v2 code that never ran - section.html: blog, speaking and writing have their own templates - baseurl and figure shortcodes: no longer used The generated site is identical. Refs #11 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3 --- layouts/_partials/head.html | 4 ---- layouts/_partials/mathjax.html | 36 -------------------------------- layouts/_shortcodes/baseurl.html | 1 - layouts/_shortcodes/figure.html | 10 --------- layouts/section.html | 14 ------------- 5 files changed, 65 deletions(-) delete mode 100644 layouts/_partials/mathjax.html delete mode 100644 layouts/_shortcodes/baseurl.html delete mode 100644 layouts/_shortcodes/figure.html delete mode 100644 layouts/section.html diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index a68bd3a..f3f96ee 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -86,10 +86,6 @@ {{- end -}} -{{- if .Params.enableMathJax -}} - {{- partial "mathjax.html" . -}} -{{- end -}} - {{- partial "lang-detection.html" . -}} {{- if .Store.Get "en_article_in_fr_site" -}} diff --git a/layouts/_partials/mathjax.html b/layouts/_partials/mathjax.html deleted file mode 100644 index 143f716..0000000 --- a/layouts/_partials/mathjax.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - diff --git a/layouts/_shortcodes/baseurl.html b/layouts/_shortcodes/baseurl.html deleted file mode 100644 index 192466e..0000000 --- a/layouts/_shortcodes/baseurl.html +++ /dev/null @@ -1 +0,0 @@ -{{- .Page.Site.BaseURL -}} diff --git a/layouts/_shortcodes/figure.html b/layouts/_shortcodes/figure.html deleted file mode 100644 index 89cf1f5..0000000 --- a/layouts/_shortcodes/figure.html +++ /dev/null @@ -1,10 +0,0 @@ - -{{ $url := .Get "src" }} -
- {{- .Get - {{ with .Get "title" }} -
- {{- . -}} -
- {{ end }} -
\ No newline at end of file diff --git a/layouts/section.html b/layouts/section.html deleted file mode 100644 index 38234e3..0000000 --- a/layouts/section.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ define "main" }} - -
-
-

{{ .Title }}

-
- {{ .Content }} -
    - {{ range (sort .Pages "Date").Reverse }} -
  • {{ .Title }}
  • - {{ end }} -
-
-{{ end }}