From 812ba29121b352a07e5912d5a63143bc2c765a9e Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Fri, 27 Jan 2023 20:02:12 +0100 Subject: [PATCH] Show anchor links on headings --- input/Shared/_ChildPages.cshtml | 2 +- input/Shared/_ChildPagesItem.cshtml | 2 +- input/_Layout.cshtml | 4 ++++ input/assets/css/theme.scss | 11 +++++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/input/Shared/_ChildPages.cshtml b/input/Shared/_ChildPages.cshtml index 55338e8..7a9ce30 100644 --- a/input/Shared/_ChildPages.cshtml +++ b/input/Shared/_ChildPages.cshtml @@ -5,7 +5,7 @@ .ToDocumentList(); @if (!Document.GetBool(SiteKeys.NoChildPages) && children.Count > 0) { -

Child Pages

+

Child Pages

@foreach (IDocument child in children) {
diff --git a/input/Shared/_ChildPagesItem.cshtml b/input/Shared/_ChildPagesItem.cshtml index b678bc4..8b62856 100644 --- a/input/Shared/_ChildPagesItem.cshtml +++ b/input/Shared/_ChildPagesItem.cshtml @@ -4,7 +4,7 @@ @{ string excerpt = Model.GetString(Keys.Excerpt);
-

@Html.DocumentLink(Model)

+

@Html.DocumentLink(Model)

@if (!string.IsNullOrEmpty(excerpt)) { diff --git a/input/_Layout.cshtml b/input/_Layout.cshtml index aeaafbe..9bee707 100644 --- a/input/_Layout.cshtml +++ b/input/_Layout.cshtml @@ -36,6 +36,7 @@ + @if (Context.GetBool(WebKeys.GenerateSearchIndex)) @@ -233,6 +234,9 @@