Browse Source

More SEO tweaks

master
Kenneth Skovhede 8 years ago
parent
commit
02d91632a3
  1. 4
      _config.yml
  2. 6
      _includes/open-graph.html
  3. 6
      _layouts/default.html
  4. 7
      _layouts/home.html

4
_config.yml

@ -1,10 +1,10 @@
# Site wide configuration
title: Duplicati
description: Store securely encrypted backups on cloud storage services!
description: Free backup software to store backups online with strong encryption. Works with FTP, SSH, WebDAV, OneDrive, Amazon S3, Google Drive and many others.
logo: duplicati-fb-share-v1.png # 120x120 px default image used for Twitter summary card
teaser: # 400x250 px default teaser image used in image archive grid
locale: en
locale: en_US
url:
# Jekyll configuration

6
_includes/open-graph.html

@ -14,7 +14,11 @@
<meta property="og:locale" content="{{ site.locale }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if page.excerpt %}
<meta property="og:description" content="{{ page.excerpt | strip_html }}">
{% else %}
<meta property="og:description" content="{{ site.description | strip_html }}">
{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.image.feature %}

6
_layouts/default.html

@ -3,7 +3,11 @@
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if page.excerpt %}
<meta name="description" content="{{ page.excerpt | strip_html }}">
{% else %}
<meta name="description" content="{{ site.description | strip_html }}">
{% endif %}
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}

7
_layouts/home.html

@ -2,9 +2,12 @@
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Free backup software to store backups online with strong encryption. Works with FTP, SSH, WebDAV, OneDrive, Amazon S3, Google Drive and many others." />
<title>{% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if page.excerpt %}
<meta name="description" content="{{ page.excerpt | strip_html }}">
{% else %}
<meta name="description" content="{{ site.description | strip_html }}">
{% endif %}
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}

Loading…
Cancel
Save