Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

adds support for HTML/nonstandard excerpt #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
24 changes: 12 additions & 12 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@
<link href="{{ site_url }}/feed.xml" rel="alternate" type="application/rss+xml" title="{{ site.inc.title }}" />
<meta name="title" content="{% if page.title %}{{ page.title }} {% else %}{{ site.inc.title }}{% endif %}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
{% if page.site.gplus %}<link rel="publisher" href="https://plus.google.com/{{ site.inc.gplus }}">{% endif %}
{% if page.author.gplus %}<link rel="author" href="https://plus.google.com/{{ page.author.gplus }}">{% endif %}
{% if page.site.gplus %}<link rel="publisher" href="https://plus.google.com/{{ site.inc.gplus }}">{% endif %}
{% if page.author.gplus %}<link rel="author" href="https://plus.google.com/{{ page.author.gplus }}">{% endif %}
<meta property="og:title" content="{% if page.title %}{{ page.title }} {% else %}{{ site.inc.title }}{% endif %}"/>
<meta property="og:url" content="{{ site.url }}{{ page.url }}"/>
{% if page.cover_image %}
<meta property="og:image" content="{{ site.url }}/images/{{ page.cover_image }}"/>
{% if page.main_image %}
<meta property="og:image" content="{{ site.url }}/images/{{ page.main_image }}"/>
<meta property="og:image" content="{{ site.url }}/images/{{ page.main_image }}"/>
{% endif %}
<meta property="og:image" content="{{ site.url }}/images/{{ site.inc.logo }}"/>
<meta property="og:image" content="{{ site.url }}/images/{{ site.inc.logo }}"/>
{% endif %}
{% if page.excerpt %}
<meta property="og:description" content="{{ page.excerpt }}"/>
<meta name="description" content="{{ page.excerpt }}"/>
<meta property="og:description" content="{{ page.excerpt | escape }}"/>
<meta name="description" content="{{ page.excerpt | escape }}"/>
{% endif %}
<meta property="og:site_name" content="{{ site.inc.title }}">
<meta property="og:site_name" content="{{ site.inc.title }}">
</head>
<body>

<section class="site-nav">
<header>
<nav id="navigation">
Expand All @@ -51,22 +51,22 @@

<footer class="site-footer">
<div class="container">
&copy; {{ site.time | date: "%Y" }}
&copy; {{ site.time | date: "%Y" }}

<nav>
<a href="{{ site.inc.url }}">{{ site.inc.company }}</a> &middot;
<a href="/">Blog</a> &middot;
{% if site.inc.product_link %}<a href="{{ site.inc.product_link }}">Product</a> &middot; {% endif %}
{% if site.inc.about_link %}<a href="{{ site.inc.about_link }}">About</a>{% endif %}
</nav>

<nav class="social">
{% if site.inc.twitter %}
<a href="https://twitter.com/{{ site.inc.twitter }}" title="Follow on Twitter" target="_blank"><i class="icon icon-twitter black"></i></a>
{% endif %}
{% if site.inc.facebook %}
<a href="http://facebook.com/{{ site.inc.facebook }}" title="Follow on Facebook" target="_blank"><i class="icon icon-facebook black"></i></a>
{% endif %}
{% endif %}
<a href="/feed.xml" title="RSS Feed">
<i class="icon icon-rss black"></i>
</a>
Expand Down