From aba4da1b068586bea0c0ef4ed63e2882187cd83f Mon Sep 17 00:00:00 2001 From: "Kai T. Ohlhus" Date: Sun, 27 Oct 2024 01:53:18 +0900 Subject: [PATCH] _layouts/default.html: show package name in title --- _layouts/default.html | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 3703b6f..11490e9 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -21,18 +21,18 @@ integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"> - {{ page.title | default: site.title }} + {%- if page.layout == "package" -%} + {%- assign package_name = page.name | remove: '.yaml' -%} + {%- capture page_title -%}GNU Octave - The '{{ package_name }}' package{%- endcapture -%} + {%- else -%} + {%- assign page_title = site.title -%} + {%- endif -%} + {{ page_title }} - + @@ -44,13 +44,7 @@ {%- endif -%} - +