From 1e57958df990a618fd7577b254307c38e08c05c3 Mon Sep 17 00:00:00 2001 From: froggleston Date: Wed, 8 Nov 2023 15:44:33 +0000 Subject: [PATCH] Fix nav titles to not HTML escape --- DESCRIPTION | 2 +- NEWS.md | 4 ++++ inst/pkgdown/templates/content-chapter.html | 8 ++++---- inst/pkgdown/templates/content-syllabus.html | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c1e41c78..ee1d51b0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -28,7 +28,7 @@ Authors@R: c( family = "Davey", role = c("ctb"), email = "robertdavey@carpentries.org", - comment = c(ORCID = "0000-0002-5589-7754")), + comment = c(ORCID = "0000-0002-5589-7754")), person() ) Description: This package does nothing but contain template HTML CSS and JS files. diff --git a/NEWS.md b/NEWS.md index fe730cb3..7eb923e3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ setting the background-color to #FFFFFF (reported: @sarahmbrown, https://github.com/carpentries/workbench/issues/76 (#99); fixed @froggleston, #100) +* Back and forward navigation titles have been fixed to keep raw content and + not escape characters (reported: @tobyhodges, + https://github.com/carpentries/workbench/issues/71 (#98); fixed + @froggleston, #101) # varnish 0.3.1 diff --git a/inst/pkgdown/templates/content-chapter.html b/inst/pkgdown/templates/content-chapter.html index fcdf2b98..bb9212e3 100644 --- a/inst/pkgdown/templates/content-chapter.html +++ b/inst/pkgdown/templates/content-chapter.html @@ -15,12 +15,12 @@ {{#page_back}} {{/page_back}} {{#page_forward}} {{/page_forward}} @@ -68,12 +68,12 @@

{{& pagetitle}}

{{#page_back}} {{/page_back}} {{#page_forward}} {{/page_forward}} diff --git a/inst/pkgdown/templates/content-syllabus.html b/inst/pkgdown/templates/content-syllabus.html index 0f13f006..34146123 100644 --- a/inst/pkgdown/templates/content-syllabus.html +++ b/inst/pkgdown/templates/content-syllabus.html @@ -10,7 +10,7 @@
{{#page_forward}} - + {{/page_forward}}

@@ -50,7 +50,7 @@

{{{pagetitle}}}

{{#page_forward}} - + {{/page_forward}}