Skip to content

Commit

Permalink
Merge pull request #22 from carpentries/update-setup-page
Browse files Browse the repository at this point in the history
Modify index template for setup navigation
  • Loading branch information
zkamvar authored Feb 28, 2022
2 parents 9868ee2 + f1f5bca commit 1312ba5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 7 additions & 1 deletion inst/pkgdown/templates/content-syllabus.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,25 @@
<h1 class="schedule-heading">{{{pagetitle}}}</h1>
{{{readme}}}
{{#syllabus}}
<section id="schedule">
<table class="table schedule table-striped" role="presentation">
<tbody>
{{#setup}}
<tr>
<td></td><td><a href="setup.html">Setup Instructions</a></td><td> Download files required for the lesson</td>
<td></td><td><a href="#setup">Setup Instructions</a></td><td> Download files required for the lesson</td>
</tr>
{{/setup}}
{{{syllabus}}}
</table>
<p>
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
</p>
</section>
{{/syllabus}}
{{#setup}}
<section id="setup">
{{{setup}}}
</section>
{{/setup}}
</main>
<nav class="bottom-pagination mx-md-4" aria-label="Next Chapter">
Expand Down

0 comments on commit 1312ba5

Please sign in to comment.