From e33fb4a8ad03e5331026548f16e392a643c97935 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Tue, 14 Apr 2026 09:33:19 +0300 Subject: [PATCH] Show layered-protection guide link on every article Adds a layout-level "Essential reading" block below the article body that links to the seven-layers pillar in the same language. Hidden on the pillar article itself. Avoids hand-editing 18 markdown files and guarantees every future article inherits the link automatically. Co-Authored-By: Claude Opus 4.6 --- layouts/_default/single.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c05a72f..53963ec 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -36,6 +36,24 @@ {{ .Content }} + {{/* Essential reading: link to the layered-protection pillar on every article except itself */}} + {{ if ne .Params.translationKey "layers-of-protection" }} + {{ $lang := .Page.Language.Lang }} + {{ $layers := where (where .Site.AllPages "Params.translationKey" "layers-of-protection") "Lang" $lang }} + {{ with index $layers 0 }} + + {{ end }} + {{ end }} + {{ if or .NextInSection .PrevInSection }}