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 %}