_includes/seo.html in sparrow-jekyll-theme-0.1.1 vs _includes/seo.html in sparrow-jekyll-theme-0.1.2
- old
+ new
@@ -1,77 +1,77 @@
-<!-- begin SEO -->
-{% if site.url %}
- {% assign seo_url = site.url | append: site.baseurl %}
-{% endif %}
-{% assign seo_url = seo_url | default: site.github.url %}
-
-{% if page.title %}
- {% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
-{% endif %}
-
-{% if seo_title %}
- {% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
-{% endif %}
-
-{% if site.url %}
- {% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
-{% endif %}
-
-<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
-
-{% assign seo_description = page.description | default: page.excerpt | default: site.description %}
-{% if seo_description %}
- {% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
-{% endif %}
-
-<meta name="description" content="{{ seo_description }}">
-
-{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
-
-<meta name="author" content="{{ seo_author }}">
-
-<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
-<meta property="og:site_name" content="{{ site.title }}">
-<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
-
-{% if seo_url %}
- <link rel="canonical" href="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
- <meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
-{% endif %}
-
-{% if page.excerpt %}
- <meta property="og:description" content="{{ seo_description }}">
-{% endif %}
-
-{% if site.twitter.username %}
- <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
- <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
- <meta name="twitter:description" content="{{ seo_description }}">
- <meta name="twitter:url" content="{{ canonical_url }}">
-
- <meta name="twitter:card" content="summary">
- {% if page.og_image %}
- <meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
- {% elsif site.og_image %}
- <meta name="twitter:image" content="{{ site.og_image | absolute_url }}">
- {% endif %}
- <meta name="twitter:creator" content="@{{ site.twitter.username }}">
-{% endif %}
-
-{% if page.og_image %}
- <meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
-{% elsif site.og_image %}
- <meta property="og:image" content="{% if site.og_image contains "://" %}{{ site.og_image }}{% else %}{{ site.og_image | absolute_url }}{% endif %}">
-{% endif %}
-
-{% if page.date %}
- <meta property="og:type" content="article">
- <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
-{% endif %}
-
-{% if paginator.previous_page %}
- <link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
-{% endif %}
-{% if paginator.next_page %}
- <link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
-{% endif %}
-
+<!-- begin SEO -->
+{% if site.url %}
+ {% assign seo_url = site.url | append: site.baseurl %}
+{% endif %}
+{% assign seo_url = seo_url | default: site.github.url %}
+
+{% if page.title %}
+ {% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
+{% endif %}
+
+{% if seo_title %}
+ {% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
+{% endif %}
+
+{% if site.url %}
+ {% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
+{% endif %}
+
+<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
+
+{% assign seo_description = page.description | default: page.excerpt | default: site.description %}
+{% if seo_description %}
+ {% assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once %}
+{% endif %}
+
+<meta name="description" content="{{ seo_description }}">
+
+{% assign seo_author = page.author | default: page.author[0] | default: site.author.name %}
+
+<meta name="author" content="{{ seo_author }}">
+
+<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
+<meta property="og:site_name" content="{{ site.title }}">
+<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
+
+{% if seo_url %}
+ <link rel="canonical" href="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
+ <meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
+{% endif %}
+
+{% if page.excerpt %}
+ <meta property="og:description" content="{{ seo_description }}">
+{% endif %}
+
+{% if site.twitter.username %}
+ <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
+ <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
+ <meta name="twitter:description" content="{{ seo_description }}">
+ <meta name="twitter:url" content="{{ canonical_url }}">
+
+ <meta name="twitter:card" content="summary">
+ {% if page.og_image %}
+ <meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
+ {% elsif site.og_image %}
+ <meta name="twitter:image" content="{{ site.og_image | absolute_url }}">
+ {% endif %}
+ <meta name="twitter:creator" content="@{{ site.twitter.username }}">
+{% endif %}
+
+{% if page.og_image %}
+ <meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | absolute_url }}{% endif %}">
+{% elsif site.og_image %}
+ <meta property="og:image" content="{% if site.og_image contains "://" %}{{ site.og_image }}{% else %}{{ site.og_image | absolute_url }}{% endif %}">
+{% endif %}
+
+{% if page.date %}
+ <meta property="og:type" content="article">
+ <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
+{% endif %}
+
+{% if paginator.previous_page %}
+ <link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
+{% endif %}
+{% if paginator.next_page %}
+ <link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
+{% endif %}
+