Updated html head tutorial.

This commit is contained in:
Panos Sakkos 2015-10-03 23:51:02 +02:00
parent 0817d83dc6
commit caa2e28134

View file

@ -18,19 +18,27 @@ lang: "en"
title: "{ John Smith }"
favicon: "/img/favicon.ico"
description: "Blog and website of John Smith, blogging mainly for tech. Opinions expressed are mine."
keywords: "smith, jones, personal, jekyll, theme"
keywords: "smith, jones, personal, Jekyll, theme"
</pre>
The values that you set, will be placed in the head section of every generated HTML page.
Don't forget to set the configurations for your site's url and Google tracking id
Don't forget to set the configurations for your site's url and Google tracking id:
<pre style="text-align: left">
url: "http://panossakkos.github.io/personal-jekyll-theme/"
google-tracking-id: "<YOUR GOOGLE TRACKING ID>"
google-tracking-id: ""
</pre>
The url is essential to be set, because it's used in many places across the theme.
The Google tracking code will be placed in every generated page.
If you don't want Google tracking, set it to an empty string, or simply remove the definition form the configuration file.
If you don't want Google tracking, set it to an empty string, or simply remove the definition from the configuration file.
If you are using *{ Personal }* as a Github repository theme, set the repository name as the site.baseurl, in the site configuration file.
This step is essential, since its related to file paths!
And when you serve the website locally, don't forget to set the baseurl to an empty string, like this:
<pre style="text-align: left">
jekyll serve --baseurl ""
</pre>