mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
twitter cards support, dynamic title tag
This commit is contained in:
parent
1c54860de5
commit
4b84d6a19c
@ -1,5 +1,5 @@
|
||||
name: kremalicious
|
||||
description: Blog of designer & developer Matthias Kretschmann
|
||||
description: 'Blog of designer & developer Matthias Kretschmann'
|
||||
url: http://kremalicious.com
|
||||
author: Matthias Kretschmann
|
||||
|
||||
|
55
_src/_includes/head.html
Normal file
55
_src/_includes/head.html
Normal file
@ -0,0 +1,55 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>
|
||||
{% if paginator.next_page != 2 %}
|
||||
Page {{ paginator.page }} ¦ {{ page.title }}
|
||||
{% else %}
|
||||
{{ page.title }} ¦ {{ site.name }}
|
||||
{% endif %}
|
||||
</title>
|
||||
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta name="description" content="{{ site.description }}" />
|
||||
{% endif %}
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="cleartype" content="on">
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/kremalicious3.min.css">
|
||||
{% if page.style %}
|
||||
<link rel="stylesheet" href="/assets/css/{{ page.style }}">
|
||||
{% endif %}
|
||||
|
||||
<script data-cfasync="false" src="//use.typekit.com/msu4qap.js"></script>
|
||||
<script data-cfasync="false">try{Typekit.load();}catch(e){}</script>
|
||||
|
||||
<!-- Twitter Cards -->
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@kremaliciouscom">
|
||||
<meta name="twitter:creator" content="@kremalicious">
|
||||
{% if page.title %}
|
||||
<meta name="twitter:title" content="{{ page.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% endif %}
|
||||
{% if page.url %}
|
||||
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
|
||||
{% endif %}
|
||||
{% if page.description %}
|
||||
<meta name="twitter:description" content="{{ page.description }}">
|
||||
{% else %}
|
||||
<meta name="twitter:description" content="{{ site.description }}">
|
||||
{% endif %}
|
||||
{% if page.image %}
|
||||
<meta name="twitter:image:src" content="{{ site.url }}/media/{{ page.image }}">
|
||||
{% else %}
|
||||
<!-- <meta name="twitter:image:src" content="{{ site.url }}/media/logo.png"> -->
|
||||
{% endif %}
|
||||
|
||||
</head>
|
@ -25,27 +25,9 @@
|
||||
_____________________________________________
|
||||
-->
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>{{ page.title }} ¦ {{ site.name }}</title>
|
||||
<meta name="description" content="{{ page.description }}">
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="cleartype" content="on">
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/kremalicious3.min.css">
|
||||
{% if page.style %}
|
||||
<link rel="stylesheet" href="/assets/css/{{ page.style }}">
|
||||
{% endif %}
|
||||
|
||||
<script data-cfasync="false" src="//use.typekit.com/msu4qap.js"></script>
|
||||
<script data-cfasync="false">try{Typekit.load();}catch(e){}</script>
|
||||
|
||||
</head>
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
{% include header.html %}
|
||||
|
@ -2,7 +2,7 @@
|
||||
layout: base
|
||||
---
|
||||
|
||||
<article class="hentry fomrat-post">
|
||||
<article class="hentry format-post">
|
||||
<header>
|
||||
<h1 class="entry-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: base
|
||||
title: Home
|
||||
title: kremalicious
|
||||
description: 'Blog of designer & developer Matthias Kretschmann'
|
||||
---
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
|
Loading…
Reference in New Issue
Block a user