krad 3.1.9 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/head.html +6 -16
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98b37f4a2f4a023659b9ad993573ada1dd1fd784
4
- data.tar.gz: 8645ed812e8bfa5654b2ee19c350da2fec636647
3
+ metadata.gz: a276997875f1816eb6472452ecc713c47ab5874a
4
+ data.tar.gz: 642648d5da33979a82f3016a89f4cb511e213815
5
5
  SHA512:
6
- metadata.gz: ab99ac5501b162e6c64df81000ab68c94e02a891866fbaf664e653846183b5d6b791970209c665ea12b0ad71fa3c42b4bbd5f4d9cdc17a8983432b4fc3205e92
7
- data.tar.gz: 48e57aad43e09afc1a8984c57df1f54eeb6c10ba0e1ea4cfdfe752192d24059a48944a6352b58fba14df7d85d8dd2551c9ef68e6de7fb2f9c5e791c3fab5748e
6
+ metadata.gz: c84b7364d62f0c55c09e2b2e6a3cefbee191bb714e4860e4e5f4cd70536782ebc9037aa3c411f871a32bc9f56ef5b708b48140525e79e73645376b7fd8e8f7e0
7
+ data.tar.gz: 794e5b9a479f2a5e1fe25bdc3bd1ce68e4a602fc34cdedf1ac43764337e0725dfd8099fae53e417877d547611282c7a022c71e8f09a4641436d88255b26193d0
data/_includes/head.html CHANGED
@@ -4,29 +4,19 @@
4
4
  <!-- Responsiveee -->
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <!-- New META! -->
7
- <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 60 | escape }}">
8
- <meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}, {{ site.keywords }}{% else %}{{ site.keywords }}{% endif %}">
7
+ <meta name="description" content="{% if page.title == "Home" %}{{ site.description }}{% else %}{{ page.content | strip_html | normalize_whitespace | truncate: 60 | escape }}{% endif %}">
8
+ <meta name="keywords" content="{% if page.keywords %}{{ page.keywords | concat: site.keywords | uniq | join: ", " }}{% else %}{{ site.keywords | join: ", " }}{% endif %}">
9
9
  <meta name="author" content="{{ site.author.name }}">
10
10
  <!-- Open Graph -->
11
11
  <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
12
12
  <meta property="og:url" content="{{ page.url | replace:'index.html','' | remove_first:'/' | absolute_url }}" />
13
- {%- if page.featured_image -%}
14
- <meta property="og:image" content="{{ page.featured_image }}" />
15
- {%- endif -%}
16
- <meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 60 | escape }}" />
13
+ {% if page.featured_image %}<meta property="og:image" content="{{ page.featured_image }}" />{% endif %}
14
+ <meta property="og:description" content="{% if page.title == "Home" %}{{ site.description }}{% else %}{{ page.content | strip_html | normalize_whitespace | truncate: 60 | escape }}{% endif %}" />
17
15
  <meta property="og:site_name" content="{{ site.title }}" />
18
- {%- if page.title -%}
19
- <meta content="article" property="og:type" />
20
- {%- else -%}
21
- <meta property="og:type" content="website" />
22
- {%- endif -%}
16
+ {% if page.title %}<meta content="article" property="og:type" />{% else %}<meta property="og:type" content="website" />{% endif %}
23
17
  <meta property="fb:app_id" content="{{ site.fb_app_id }}" />
24
18
  <title>
25
- {%- if page.title == "Home" -%}
26
- {{ site.title }} &middot; {{ site.tagline }}
27
- {%- else -%}
28
- {{ page.title }} &middot; {{ site.title }}
29
- {%- endif -%}
19
+ {% if page.title == "Home" %}{{ site.title }} &middot; {{ site.tagline }}{% else %}{{ page.title }} &middot; {{ site.title }}{% endif %}
30
20
  </title>
31
21
 
32
22
  <!-- Outworld Decorator -->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krad
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.9
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lê Thanh Tùng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-26 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll