diff --git a/_config.yml b/_config.yml index ed1ee2a759b74..093a42a393699 100644 --- a/_config.yml +++ b/_config.yml @@ -16,7 +16,7 @@ title: Just the Docs description: A Jekyll theme for documentation baseurl: "/just-the-docs/" # the subpath of your site, e.g. /blog -# url: "" # the base hostname & protocol for your site, e.g. http://example.com +url: "https://pmarsceill.github.io" # the base hostname & protocol for your site, e.g. http://example.com permalink: pretty exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"] @@ -31,3 +31,7 @@ aux_links: # Color scheme currently only supports "dark" or nil (default) color_scheme: nil + +# Google Analytics Tracking (optional) +# e.g, UA-1234567-89 +ga_tracking: UA-2709176-10 diff --git a/_includes/head.html b/_includes/head.html index 077564e5a628e..fa5dee7ce1601 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -7,8 +7,18 @@ {{ page.title }} - {{ site.title }} + + {% if site.ga_tracking != nil %} + + + {% endif %} + {% if site.search_enabled != nil %} - + {% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index ddc2dbbefedf0..06662ee1c29b3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,7 +15,7 @@

This site uses Just the Docs, a documentation theme for Jekyll.

-
+
-
+
{% unless page.url == "/" %} {% if page.parent %}