forest-time-jekyll 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffb51bd3cc59537c9e104a6dac47cd0be39525d80560520fc73b93c42e7af255
4
- data.tar.gz: a7669f131cb9d413dde9f362fb535cadca1b0bad72ba23043b5964662cef46ec
3
+ metadata.gz: b991564f6b2b6a77f198f038965b87c9208b1e07b202992ee03229446c0c5d19
4
+ data.tar.gz: 367a43801410ed3375d21fdafbd3475d74d2708c967a29606a8f3f2971787ea3
5
5
  SHA512:
6
- metadata.gz: 947e7fab76250b98b82dddb5d2d1dde707fb019f9757adfe605ba4ffee5d9b7f1e1485e73e1e4d99e2f97098f5f9d9cb916ef8880d57342aaf28b115b4519967
7
- data.tar.gz: 88b9bb3169bc917a6a96646fcd3d98a36db350bf28815663c4576bd865de2f03406a13beacdc27aa273e92de30f4d91bf872cb3040108262e097c0a81b7b6797
6
+ metadata.gz: 4e17f5dcecadcd5844b6dcc3949dfcb7ee6a079fd69ac9eebc4ae1369a11a767188c7512a641dc888c111c09e361c5439ff29f240bca15807007e246e0949de4
7
+ data.tar.gz: 43e779012a9f2bac9e593fafddf3088919be19bc8f799eda8118217e178a3a432fd30b2aaccf89ebb8e99e324d048c6f28ce813d100a3f8359a02b3d3a4d78b7
data/_data/ui-text.yml ADDED
@@ -0,0 +1,32 @@
1
+ # User interface text and labels
2
+
3
+ home : "Home"
4
+ back_to_home : "Back to home"
5
+ about : "About"
6
+ and : "and"
7
+ onn : "on" # for some reason "on" does not show up when used... !?
8
+ of : "of"
9
+ here : "here"
10
+ published_by : "Published by"
11
+ powered_by : "Powered by"
12
+ page : "Page"
13
+ previous : "Previous"
14
+ not_found_page : "Oh, snap! Looks like this one doesn't exist anymore..."
15
+ oldPostNotice : "Dear reader, this piece was moved here from an older address. If you notice something wrong, let me know " # will be followed by a "here" link
16
+ noComments : "Yup, there's no comment section, but I can always be contacted " # will be followed by a "here" link
17
+ next : "Next"
18
+ xml_feed : "XML feed"
19
+
20
+ months:
21
+ january : "January"
22
+ february : "February"
23
+ march : "March"
24
+ april : "April"
25
+ may : "May"
26
+ june : "June"
27
+ july : "July"
28
+ august : "August"
29
+ september : "September"
30
+ october : "October"
31
+ november : "November"
32
+ december : "December"
data/_includes/head.html CHANGED
@@ -3,12 +3,19 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1" />
4
4
 
5
5
  {% if page.title %}
6
- <title>{{ page.title }} — {{ site.title }}</title>
6
+ {% capture title %}{{ page.title }} — {{ site.title }}{% endcapture %}
7
7
  {% else %}
8
- <title>{{ site.title }} — {{ site.description }}</title>
8
+ {% capture title %}{{ site.title }} — {{ site.description }}{% endcapture %}
9
9
  {% endif %}
10
10
 
11
- <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
11
+ {% if page.excerpt %}
12
+ {% capture description %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% endcapture %}
13
+ {% else %}
14
+ {% capture description %}{{ site.description }}{% endcapture %}
15
+ {% endif %}
16
+
17
+ <title>{{ title }}</title>
18
+ <meta name="description" content="{{ description }}">
12
19
 
13
20
  <!-- Favicon -->
14
21
  <link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}{{ site.brandingFolder }}/apple-touch-icon.png">
@@ -20,7 +27,14 @@
20
27
  <meta name="msapplication-TileColor" content="#ffffff">
21
28
  <meta name="theme-color" content="#ffffff">
22
29
 
23
- <link rel="stylesheet" href="{{ site.baseurl }}/assets/core.css">
30
+ <!-- Open Graph -->
31
+ <meta property="og:title" content="{{ title }}" />
32
+ <meta property="og:type" content="article" />
33
+ <meta property="og:url" content="{{ site.url }}{{ page.url | prepend: site.baseurl }}" />
34
+ <meta property="og:image" content="{{ site.brandingFolder | prepend: site.baseurl | prepend: site.url }}/cover.jpg" />
35
+ <meta property="og:description" content="{{ description }}" />
36
+
37
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/core.css">
24
38
  <link rel="canonical" href="{{ page.url | prepend: site.baseurl }}">
25
39
  <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ site.baseurl }}/feed.xml" />
26
40
 
data/_layouts/home.html CHANGED
@@ -10,12 +10,25 @@ layout: default
10
10
  <ul>
11
11
  {% for post in paginator.posts %}
12
12
  <li>
13
+ {% if site.minimalistHome %}
14
+ {% unless post.next %}
15
+ <h3 class="post-year">{{ post.date | date: '%Y' }} &#172;</h3>
16
+ {% else %}
17
+ {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
18
+ {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
19
+ {% if year != nyear %}
20
+ <h3 class="post-year">{{ post.date | date: '%Y' }} &#172;</h3>
21
+ {% endif %}
22
+ {% endunless %}
23
+ {% endif %}
24
+
13
25
  <div class="title"><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></div>
14
- <div class="post-date">
15
- <time>
16
- {% assign m = post.date | date: "%-m" %}
17
- {{ post.date | date: "%-d" }}
18
- {% case m %}
26
+ {% unless site.minimalistHome %}
27
+ <div class="post-date">
28
+ <time>
29
+ {% assign m = post.date | date: "%-m" %}
30
+ {{ post.date | date: "%-d" }}
31
+ {% case m %}
19
32
  {% when '1' %} {{ site.data.ui-text.months.january }}
20
33
  {% when '2' %} {{ site.data.ui-text.months.february }}
21
34
  {% when '3' %} {{ site.data.ui-text.months.march }}
@@ -28,11 +41,13 @@ layout: default
28
41
  {% when '10' %} {{ site.data.ui-text.months.october }}
29
42
  {% when '11' %} {{ site.data.ui-text.months.november }}
30
43
  {% when '12' %} {{ site.data.ui-text.months.december }}
31
- {% endcase %}
32
- {{ post.date | date: "%Y" }}
33
- </time>
34
- </div>
35
- <div class="description">{{ post.description}}</div>
44
+ {% endcase %}
45
+ {{ post.date | date: "%Y" }}
46
+ </time>
47
+ </div>
48
+
49
+ <div class="description">{{ post.description | strip_html | strip_newlines }}</div>
50
+ {% endunless %}
36
51
  </li>
37
52
  {% endfor %}
38
53
  </ul>
data/_sass/main.scss CHANGED
@@ -5,9 +5,11 @@ $primary-color: #4787ed;
5
5
  $secondary-color: #F37C22;
6
6
  $gray: #777;
7
7
  $base-margin: 1rem;
8
+
8
9
  @import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400|Roboto:400,500,700&subset=latin-ext');
9
10
  @import 'objects.text';
10
11
  @import 'objects.image';
12
+
11
13
  body {
12
14
  font-size: 17px;
13
15
  line-height: 20px;
@@ -0,0 +1,7 @@
1
+ ---
2
+ # this ensures Jekyll reads the file to be transformed into CSS later
3
+ # only Main files contain this front matter, not partials.
4
+ ---
5
+
6
+ @import 'main';
7
+ @import 'syntax';
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest-time-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudiu Constantin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-09 00:00:00.000000000 Z
11
+ date: 2018-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE.md
63
63
  - README.md
64
+ - _data/ui-text.yml
64
65
  - _includes/comments.html
65
66
  - _includes/footer.html
66
67
  - _includes/head.html
@@ -76,12 +77,13 @@ files:
76
77
  - _sass/_objects.text.scss
77
78
  - _sass/main.scss
78
79
  - _sass/syntax.scss
79
- - assets/core.scss
80
+ - assets/css/core.scss
80
81
  - assets/icons/android-chrome-192x192.png
81
82
  - assets/icons/android-chrome-512x512.png
82
83
  - assets/icons/apple-touch-icon.png
83
84
  - assets/icons/avatar.jpg
84
85
  - assets/icons/browserconfig.xml
86
+ - assets/icons/cover.jpg
85
87
  - assets/icons/favicon-16x16.png
86
88
  - assets/icons/favicon-32x32.png
87
89
  - assets/icons/favicon.ico
data/assets/core.scss DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- # Front matter comment to ensure Jekyll properly reads file.
3
- ---
4
-
5
- @import 'main';
6
- @import 'syntax';