From 8ac75f4104f2d2cfd10d4ccd764730104367f93c Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Wed, 4 Jun 2025 17:41:37 +0200 Subject: [PATCH] use partial for meta section of `` --- layouts/_default/baseof.html | 22 ++++------------------ layouts/partials/head/meta.html | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/head/meta.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0f9c2eb..b6fdfed 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,26 +10,12 @@ itemtype="https://schema.org/Blog" > - - - - + + + {{- partialCached "head/meta.html" . -}} - diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html new file mode 100644 index 0000000..774ce69 --- /dev/null +++ b/layouts/partials/head/meta.html @@ -0,0 +1,17 @@ +<meta charset="utf-8" /> +<meta + name="viewport" + content="width=device-width, initial-scale=1" +/> +<meta + name="robots" + content="noindex" +/> +<meta + name="theme-color" + content="#FFFFF0" +/> +<meta + name="twitter:dnt" + content="on" +/>