plan-b 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2f9a30a7727050e7404bfacd5e3f881f9b10413
4
- data.tar.gz: edf04fb82fad3d3dcc04e51eb23a2686f23d77c0
3
+ metadata.gz: 25df7459f22d1603b88f1ff99e9acfa6f953293d
4
+ data.tar.gz: bede5c768a73c8075b8f7fce753eb9570186c71b
5
5
  SHA512:
6
- metadata.gz: 58825e30d29cf613f17447189a7586da84fa8ef5831587024c38315405d183915c9c6f7f59dfb06381e77dd49720f6f069e7e3333ac2b6d515746a250d554f29
7
- data.tar.gz: 9b82033fe8c6df231282d714fad9957ce959e2ae9df3ccf6a98d1b6f785f517e2111bd0c3887ef9e5672256e26c7042e93869607434237ab9fb79a4c80fe2148
6
+ metadata.gz: 00fd24c2e988b03c2b9f0e84d85fc1808cb6b8aaeee03fc3ac5a4072e0878bc5fbbee8028d362ea88045e1e6002067cbac6aa9cd363690db51aae960c77f9d6d
7
+ data.tar.gz: 56e1a613a87023c2f87b25d95b52d5eb0e2b8b1a98a70780795b0f31b597cbd717ed4ac959156ca657277cc8d67f5a35dc0b9b0393cd33cc39b19c6920156283
data/_includes/head.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta name="keywords" content="blog, accent, {{author}}, {{title}}, jekyll">
5
5
  <meta name="description" content="{{description}}">
6
6
  <meta name="author" content="{{author}}">
7
- {% if page.url == "/404.html" %}
8
- <meta http-equiv="refresh" content="5; url=/">
7
+ {% if url == "/404.html" %}
8
+ <meta http-equiv="refresh" content="5; url={{url}}">
9
9
  {% endif %}
10
10
 
11
11
  <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
@@ -1,8 +1,109 @@
1
- {% include variables.html %}
1
+ {% if page.url %}
2
+ {% assign url = site.url | append: site.baseurl | append: page.url %}
3
+ {% else %}
4
+ {% assign url = site.url | append: site.baseurl | append: page.url %}
5
+ {% endif %}
6
+
7
+ {% if page.description %}
8
+ {% assign desc = page.description %}
9
+ {% else %}
10
+ {% if site.description %}
11
+ {% assign desc = site.description %}
12
+ {% else %}
13
+ {% assign desc = site.data.default.description %}
14
+ {% endif %}
15
+ {% endif %}
16
+
17
+ {% if page.title %}
18
+ {% assign title = page.title %}
19
+ {% else %}
20
+ {% if site.title %}
21
+ {% assign title = site.title %}
22
+ {% else %}
23
+ {% assign title = site.data.default.title %}
24
+ {% endif %}
25
+ {% endif %}
26
+
27
+ {% if site.favicon %}
28
+ {% assign favicon = site.favicon %}
29
+ {% else %}
30
+ {% assign favicon = site.data.default.favicon %}
31
+ {% endif %}
32
+
33
+ {% if site.author %}
34
+ {% assign author = site.author %}
35
+ {% else %}
36
+ {% assign author = site.data.default.author %}
37
+ {% endif %}
38
+
39
+ {% if site.header.container %}
40
+ {% assign header = site.header.container %}
41
+ {% else %}
42
+ {% assign header = site.data.default.header.container %}
43
+ {% endif %}
44
+
45
+ {% if site.header.navigation %}
46
+ {% assign header_navigation = site.header.navigation %}
47
+ {% else %}
48
+ {% assign header_navigation = site.data.default.header.navigation %}
49
+ {% endif %}
50
+
51
+ {% if site.footer.container %}
52
+ {% assign footer = site.footer.container %}
53
+ {% else %}
54
+ {% assign footer = site.data.default.footer.container %}
55
+ {% endif %}
56
+
57
+ {% if site.footer.navigation %}
58
+ {% assign footer_navigation = site.footer.navigation %}
59
+ {% else %}
60
+ {% assign footer_navigation = site.data.default.footer.navigation %}
61
+ {% endif %}
62
+
63
+ {% if site.footer.copyright %}
64
+ {% assign copyright = site.footer.copyright %}
65
+ {% else %}
66
+ {% assign copyright = site.data.default.footer.copyright %}
67
+ {% endif %}
68
+
69
+ {% if site.google_analytics %}
70
+ {% assign google_analytics = site.google_analytics %}
71
+ {% else %}
72
+ {% assign google_analytics = site.data.default.google_analytics %}
73
+ {% endif %}
74
+
2
75
  <!DOCTYPE html>
3
76
  <html lang="{{site.lang | default: 'en-US'}}">
4
- <head>{% include head.html %}</head>
5
- <body class="{{page.url|slugify|default:'default-page'}}">
77
+ <head>
78
+ <meta charset="utf-8">
79
+ <title>{{title}}</title>
80
+ <meta name="viewport" content="width=device-width, initial-scale=1">
81
+ <meta name="keywords" content="blog, accent, {{author}}, {{title}}, jekyll">
82
+ <meta name="description" content="{{description}}">
83
+ <meta name="author" content="{{author}}">
84
+ {% if url == "/404.html" %}
85
+ <meta http-equiv="refresh" content="5; url={{url}}">
86
+ {% endif %}
87
+
88
+ <link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
89
+ <link rel="stylesheet" type="text/css" href="{{"/assets/css/main.css" | relative_url}}">
90
+
91
+ {% if favicon %}
92
+ <link rel="icon" type="image/ico" href="{{favicon}}">
93
+ <link rel="shortcut-icon" type="image/ico" href="{{favicon}}">
94
+ {% endif %}
95
+
96
+ <meta name="og:description" content="{{description}}">
97
+ <meta name="og:title" content="{{title}}">
98
+ <meta name="og:url" content="{{url}}">
99
+ <meta name="og:type" content="article">
100
+
101
+ <meta name="twitter:card" content="summary">
102
+ <meta name="twitter:title" content="{{title}}">
103
+ <meta name="twitter:description" content="{{description}}">
104
+ <meta name="twitter:url" content="{{url}}">
105
+ </head>
106
+ <body class="{{url|slugify}}">
6
107
  <div class="page-wrapper">
7
108
  {% if header %}
8
109
  <div class="header">
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plan-b
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Salman Waheed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-01 00:00:00.000000000 Z
11
+ date: 2019-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll