From 53d179aaf7e93ca5475a9f3bf83394a3611bd5b4 Mon Sep 17 00:00:00 2001 From: Dave Eargle Date: Mon, 11 Jan 2021 15:13:47 -0700 Subject: [PATCH] * wrap scrolled nav download buttons in `show_downloads` * add source code link to scroll nav * clarify in README to not quote boolean config for `show_downloads` --- README.md | 2 +- _layouts/default.html | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d711fd2..328cb94 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ description: [A short description of your site's purpose] Additionally, you may choose to set the following optional variables: ```yml -show_downloads: ["true" or "false" to indicate whether to provide a download URL] +show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL] google_analytics: [Your Google Analytics tracking ID] ``` diff --git a/_layouts/default.html b/_layouts/default.html index 3987eeb..0a2c0e3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -6,7 +6,7 @@ - + @@ -57,7 +57,11 @@

{{ site.title | default: site.github.repository_name }}

Scroll to top - tarzipsource code + {% if site.show_downloads %} + tar + zip + source code + {% endif %}