Provided custom meta descriptions for each page and post

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2018-01-09 16:40:46 +01:00
parent c41bb9dd7f
commit 83a7b7bb77
13 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="description"
content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
content="{% if post.excerpt %}{{ post.excerpt | strip_html | strip_newlines | truncate: 160 }}{% elif page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
{% asset main.css %}
{% asset fa-svg-with-js.css %}

View File

@ -2,6 +2,7 @@
layout: category
title: Blog
category: blog
description: On this page you can find all my blog posts that don't fit somewhere else.
---
<h1>Blog</h1>

View File

@ -2,6 +2,7 @@
layout: category
title: Computer Science
category: cs
description: This page gives an overview over my university activities, including but not limited to publications.
---
<h1>Computer Science</h1>

View File

@ -1,6 +1,7 @@
---
title: 404 - Link not found
permalink: /404.html
description: The link you have tried to access, doesn't exist.
---
<div class="container my-3">

View File

@ -2,6 +2,7 @@
title: Curriculum Vitae
permalink: /cv/
sidebarboxes: cv-pdf job_offers encrypted-communication
description: On this page you can find my curriculum vitae.
---
{% if site.data.author.image %}

View File

@ -1,6 +1,7 @@
---
title: Datenschutzerklärung
permalink: /datenschutz/
description: Die Datenschutzerklärung für diese Website kann hier gefunden werden.
---
For your convenience there is an <a href="{{ site.baseurl }}{% link pages/privacy-policy.html %}">English version</a> available.

View File

@ -1,6 +1,7 @@
---
title: Impressum
permalink: /impressum/
description: Das Impressum für diese Website kann hier gefunden werden.
---
For your convenience there is an <a href="{{ site.baseurl }}{% link pages/legal-notice.html %}">English version</a> available.

View File

@ -1,6 +1,7 @@
---
title: Legal Notice
permalink: /legal-notice/
description: The legal notice for this website can be found here.
---
<h2>Information provided according to Sec. 5 German Telemedia Act (TMG):</h2>

View File

@ -1,6 +1,7 @@
---
title: Privacy Policy
permalink: /privacy-policy/
description: The privacy policy for this website can be found here.
---
<h2>Data Protection</h2>

View File

@ -2,6 +2,7 @@
title: Snowden Refugees
permalink: /snowden-refugees/
sidebarboxes: snowden-refugees encrypted-communication
description: The Snowden Refugees helped Edward Snowden in 2013. They had nothing and gave everything. Here you can find out how to help them.
---
<p>

View File

@ -4,6 +4,7 @@ title: G20
category: G20
sidebarboxes: author politics_qanda encrypted-communication
parent_link: /politics/
description: This page collects all the reports from the G20 special committee of the Hamburg Parliament.
---
<h1>G20</h1>

View File

@ -3,6 +3,7 @@ layout: category
title: Politics
category: politics
sidebarboxes: author politics_qanda encrypted-communication
description: All my political activities and related blog posts can be found on this page.
---
<h1>Politics</h1>

View File

@ -2,6 +2,7 @@
layout: category
title: Speeches
category: speeches
description: This page provides an overview over all my speeches.
---
<h1>Speeches</h1>