From f1f5bcab636f6d248287d4f877d478c9c3fff145 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Mon, 28 Feb 2022 10:53:34 -0800 Subject: [PATCH] modify index template for setup nav --- DESCRIPTION | 2 +- NEWS.md | 6 ++++++ inst/pkgdown/templates/content-syllabus.html | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6117ffff..ba642602 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: varnish Title: Front-end for The Carpentries Lesson Template -Version: 0.1.4 +Version: 0.1.5 Authors@R: c( person(given = "Zhian N.", family = "Kamvar", diff --git a/NEWS.md b/NEWS.md index 40b4be5d..c6bcbce2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,9 @@ +# varnish 0.1.5 + +* The index page now has specific sections for schedule and setup that link to + the `#schedule` and `#setup` anchors. This partially addresses + https://github.com/carpentries/sandpaper/issues/260 + # varnish 0.1.4 * Removed " logo" suffix from the logo elements, as it is redundant diff --git a/inst/pkgdown/templates/content-syllabus.html b/inst/pkgdown/templates/content-syllabus.html index 57427cef..b84921b8 100644 --- a/inst/pkgdown/templates/content-syllabus.html +++ b/inst/pkgdown/templates/content-syllabus.html @@ -19,19 +19,25 @@

{{{pagetitle}}}

{{{readme}}} {{#syllabus}} +
+ {{#setup}} - + + {{/setup}} {{{syllabus}}}

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.

+
{{/syllabus}} {{#setup}} +
{{{setup}}} +
{{/setup}}