From 30f54e2c81ac63d5e207199ffc1c71200a20d982 Mon Sep 17 00:00:00 2001 From: David Young Date: Sun, 24 May 2020 10:11:23 +1200 Subject: [PATCH] Setup preview branch (#88) * Setup preview branch * Add rightmessage js * Actually calling the js will help * Fussy javascript * Test embedded message after recipe * Update main.html --- mkdocs.yml | 6 +++--- overrides/main.html | 46 ++++++++++++++++++++++++++++++++++++++++ scripts/recipe-footer.md | 2 ++ 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index c59ce9f..6b1991f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,8 +8,8 @@ edit_uri: 'edit/master/manuscript/' # strict: true # Repository -repo_name: 'funkypenguin/geek-cookbook' -repo_url: 'https://github.com/funkypenguin/geek-cookbook' +repo_name: 'geek-cookbook/yes-this-is-it' +repo_url: 'https://github.com/geek-cookbook/yes-this-is-it' # Set this to "manuscript" so that we can produce leanpub content docs_dir: 'manuscript' @@ -209,7 +209,7 @@ extra_css: - 'stylesheets/mailchimp.css' extra_javascript: - - 'extras/javascript/discord.js' + - 'extras/javascript/discord.js' # Extensions markdown_extensions: diff --git a/overrides/main.html b/overrides/main.html index 89e471c..aad1053 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -25,3 +25,49 @@ {% endblock %} + +{% block analytics %} + + + {% set analytics = config.google_analytics %} + + + + + {% endblock %} diff --git a/scripts/recipe-footer.md b/scripts/recipe-footer.md index beac618..9120df5 100644 --- a/scripts/recipe-footer.md +++ b/scripts/recipe-footer.md @@ -6,6 +6,8 @@ Did you receive excellent service? Want to make your waiter happy? (_..and suppo Want to know now when this recipe gets updated, or when future recipes are added? Subscribe to the [RSS feed](https://mastodon.social/@geekcookbook_changes.atom), or leave your email address below, and we'll keep you updated. (*double-opt-in, no monkey business, no spam either - check the [archive](https://us16.campaign-archive.com/home/?u=a1d9cee4402be76497a2baf49&id=10e284530a) for proof!*) +
+