rolandjesse.de/_posts/2015-06-25-html-head-tutorial.markup
2015-09-30 22:42:20 +02:00

36 lines
1.1 KiB
Text

---
layout: post
section-type: post
title: Modifying the HTML HEAD
category: tech
tags: [ 'tutorial' ]
---
In the _config.yml, find and set the variables of the Head section:
<pre style="text-align: left">
#############
# HTML Head #
#############
author: "John Smith"
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"
</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
<pre style="text-align: left">
url: "http://panossakkos.github.io/personal-jekyll-theme/"
google-tracking-id: "<YOUR 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.