From 7f215f71b3d035983e1b2f5b1b9bd2f8663b0a42 Mon Sep 17 00:00:00 2001 From: MosheF Date: Tue, 24 Apr 2018 13:54:07 +0300 Subject: [PATCH] Add the ability to hide github link --- README.md | 1 + _config.yml | 1 + _layouts/default.html | 2 ++ 3 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 424e109..72df046 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ 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_github: ["true" or "false" to indicate whether to provide a github URL] google_analytics: [Your Google Analytics tracking ID] ``` diff --git a/_config.yml b/_config.yml index c5cf3fd..968605c 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,6 @@ title: Hacker theme description: Hacker is a theme for GitHub Pages. show_downloads: true +show_github: true google_analytics: theme: jekyll-theme-hacker \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 909e43c..4bfdead 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -21,7 +21,9 @@ Download as .zip Download as .tar.gz {% endif %} + {% if site.show_github %} View on GitHub + {% endif %}