From 780e41ceaeea370709d2c6024eb66b4551177e8e Mon Sep 17 00:00:00 2001 From: "Marcus M. Darden" Date: Mon, 3 Mar 2025 06:20:26 +0100 Subject: [PATCH] Add a customizable section to spec document head This will allow local customizations of the without the need to override the entire spec layout. A file is added to _includes named custom-head.html and its contents are included before the close tag of the document head. --- _includes/custom-head.html | 6 ++++++ _layouts/default.html | 1 + _layouts/spec.html | 1 + 3 files changed, 8 insertions(+) create mode 100644 _includes/custom-head.html diff --git a/_includes/custom-head.html b/_includes/custom-head.html new file mode 100644 index 00000000..cb20434e --- /dev/null +++ b/_includes/custom-head.html @@ -0,0 +1,6 @@ +{% comment %} + +Any uncommented code in this file will be included just before the end of +the document head. + +{% endcomment %} diff --git a/_layouts/default.html b/_layouts/default.html index dc94f637..0d0d4c1f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,6 +10,7 @@ {%- endif %} + {% include custom-head.html %}
diff --git a/_layouts/spec.html b/_layouts/spec.html index de79b690..d79df420 100644 --- a/_layouts/spec.html +++ b/_layouts/spec.html @@ -167,6 +167,7 @@ {%- endif %} + {% include custom-head.html %}