From 39e6453d1201a9d04a7b8216e118a46b55c4ed0a Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Sat, 7 Jan 2012 14:28:55 +0000 Subject: Add various meta tags. --- _site_build/_includes/head.html | 5 ++++- _site_build/_includes/header.html | 4 +--- _site_build/_plugins/posts.rb | 8 ++++++-- _site_build/archives/index.html | 2 +- _site_build/index.html | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) (limited to '_site_build') diff --git a/_site_build/_includes/head.html b/_site_build/_includes/head.html index b573f7c..33ea474 100644 --- a/_site_build/_includes/head.html +++ b/_site_build/_includes/head.html @@ -1,8 +1,11 @@ {{ page.title }} - {{ site.title }} - + + + {% if page.robots %}{% endif %} + diff --git a/_site_build/_includes/header.html b/_site_build/_includes/header.html index 7a3c22e..4f9d01e 100644 --- a/_site_build/_includes/header.html +++ b/_site_build/_includes/header.html @@ -1,8 +1,6 @@

{{ site.title }}

- {% if site.subtitle %} -

{{ site.subtitle }}

- {% endif %} + {% if site.subtitle %}

{{ site.subtitle }}

{% endif %}
diff --git a/_site_build/_plugins/posts.rb b/_site_build/_plugins/posts.rb index 75c1c18..41826dd 100644 --- a/_site_build/_plugins/posts.rb +++ b/_site_build/_plugins/posts.rb @@ -1,11 +1,15 @@ require 'sanitize' module Jekyll - module TruncateFilter + module PostFilter def truncate(html, num_characters = 1000, indicator = ' [...]') '

' << Sanitize.clean(html).slice(Regexp.new(".{1,#{num_characters}}( |$)")).chomp(' ') << indicator << '

' end + + def chomp_url(url, str = 'index.html') + url.chomp(str) + end end end -Liquid::Template.register_filter(Jekyll::TruncateFilter) +Liquid::Template.register_filter(Jekyll::PostFilter) diff --git a/_site_build/archives/index.html b/_site_build/archives/index.html index 45d9bdc..e09e2b0 100644 --- a/_site_build/archives/index.html +++ b/_site_build/archives/index.html @@ -1,7 +1,7 @@ --- layout: default title: Archives -robots: noindex, noodp, noydir +robots: follow, noindex, noodp, noydir ---

Archives

diff --git a/_site_build/index.html b/_site_build/index.html index ac66924..6fe253c 100644 --- a/_site_build/index.html +++ b/_site_build/index.html @@ -1,7 +1,7 @@ --- layout: default title: Home -robots: noindex, noodp, noydir +robots: follow, noindex, noodp, noydir ---
{% for post in site.posts limit:site.max_recent_posts %} -- cgit v1.2.3-13-gbd6f