Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ linkedin_username:

# Add your google-analytics ID here to activate google analytics
google_analytics: UA-XXXXXXXXX-X # out your google-analytics code
# Opt out of tracking
disable_tracking: false

# Build settings
markdown: kramdown
Expand Down
13 changes: 13 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@

<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">

<meta property="og:description"
content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ site.remote_url }}{{ site.baseurl }}{{ page.url }}">
<meta property="og:title" content="{{page.title | normalize_whitespace | truncate: 50 | escape}}">

{% if page.background && page.background != blank %}
<meta property="og:image" content="{{ site.url }}{{ site.baseurl }}{{ page.background }}"/>
{% endif %}

<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

Expand All @@ -19,4 +29,7 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">

{% if site.layouts contains 'overrides.styles' %}
{% include overrides.styles.html %}
{% endif %}
</head>
3 changes: 3 additions & 0 deletions _includes/overrides.styles.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- Promise never to cause any merge conflicts in this file -->
<!-- Put your stylesheet or styles here -->

4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

{% include scripts.html %}

{% include google-analytics.html %}
{% unless site.disable_tracking %}
{% include google-analytics.html %}
{% endunless %}

</body>

Expand Down