- <link rel="stylesheet" href="{% if page.absolute_urls %}{{ site.url }}{% endif %}/style.css">
- {% capture canonicalurl %}{{ page.url | replace:'index.html','' }}{% endcapture %}
- <link rel="canonical" href="{{ canonicalurl | prepend: site.url }}">
- {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="/blog/feed.xml" />{% endif %}
+ <title>{% if pretitle %}{{ pretitle }} • {% endif %}{{ title }}</title>
+ {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | newline_to_br | replace:'<br />',' ' | strip_html | strip_newlines | truncate: 160 }}">{% endif %}
+
+ <link rel="stylesheet" href="{{ site.baseurl }}/style.css">
+ <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'/index.html','/' }}">
+ {% if page.rss %}<link rel="alternate" type="application/rss+xml" title="{{ site.blog.title }}" href="{{ site.baseurl }}/blog/feed.xml" />{% endif %}