forest-time-jekyll 0.1.9 → 0.2.0
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 +4 -4
- data/_data/ui-text.yml +32 -0
- data/_includes/head.html +18 -4
- data/_layouts/home.html +25 -10
- data/_sass/main.scss +2 -0
- data/assets/css/core.scss +7 -0
- data/assets/icons/cover.jpg +0 -0
- metadata +5 -3
- data/assets/core.scss +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b991564f6b2b6a77f198f038965b87c9208b1e07b202992ee03229446c0c5d19
|
4
|
+
data.tar.gz: 367a43801410ed3375d21fdafbd3475d74d2708c967a29606a8f3f2971787ea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
6
|
+
{% capture title %}{{ page.title }} — {{ site.title }}{% endcapture %}
|
7
7
|
{% else %}
|
8
|
-
|
8
|
+
{% capture title %}{{ site.title }} — {{ site.description }}{% endcapture %}
|
9
9
|
{% endif %}
|
10
10
|
|
11
|
-
|
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
|
-
|
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' }} ¬</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' }} ¬</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
|
-
|
15
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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;
|
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.
|
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-
|
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
|