From e7fdcc6852393d4cae70c2bbba987eec84ade8dc Mon Sep 17 00:00:00 2001 From: Geoffrey Garrett Date: Thu, 30 Jun 2022 02:03:33 +0200 Subject: [PATCH] fix(code title): small fix for SPA --- layouts/partials/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 867b863f8..a17d87d94 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -84,7 +84,9 @@ const pathWindow = window.location.pathname; const isHome = pathBase == pathWindow; - + {{if $.Site.Data.config.enableSPA -}} + addTitleToCodeBlocks(); + {{ end }} {{if $.Site.Data.config.enableFooter}} const container = document.getElementById("graph-container")