minimalist-theme 0.1.7 → 0.1.8

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: fbf358ff14a6fdb570bca788467cd7b79f42844b9cf381aeff6efb70d200efd9
4
- data.tar.gz: d68c4cebfa5ea6eb2115a1e0d40d6b79ecf334d7263290701fdc1a79ee4774dc
3
+ metadata.gz: ece534f0f9ee4a9a3943252d679ed0777b2b3b58d05e68d7a84368c7764b0840
4
+ data.tar.gz: 2c459a8ea28c2ec1655e7ee38afe46c75439bf764d5ede5094a90934b18b579e
5
5
  SHA512:
6
- metadata.gz: 96a20ef208623f69219f376f5bd69c34ba6121d62815190779c6f7c6ce0e6f84b94a0a46e1c42dfb741a9669efadb4ffad09fd013a980900d34ad17ed5b7e0ad
7
- data.tar.gz: 5fab6d4d02ed349ce3d2b112c426018959a7d405c7cb023723280bdca510b822ebf8ed86566c2971057b73d9de3892424bce0589421afb5895f75f947c83624e
6
+ metadata.gz: e9620dc91902f1a1773b7edd96127064a1207d7bc619d407d951ada4a89ba74d05cdf91a0d0f08f749c5a10a5dc703e8dd92d00872eee8462982b89ab3efd2c4
7
+ data.tar.gz: 4986737901e2f43d82c638bb4044ecc3ca31257745cab33e64bc42b924608ce6177b0161cb35fb195ca009486de5c7c168e5b3e22fdb63b3290f4490c66f33eb
data/README.md CHANGED
@@ -32,7 +32,23 @@ Three files are mandatories:
32
32
  - about.md
33
33
  - categories.md
34
34
 
35
- for each files, the layout name will be the same as the file name.
35
+ ### Google Analytics
36
+
37
+ Google Analytics is enabled in production mode, see _config.yml below to see configuration
38
+
39
+ ### Disqus
40
+
41
+ Disqus is enabled in production mode, see _config.yml below to see configuration.
42
+
43
+ Also, add this part in your front matter:
44
+
45
+ ````
46
+ comments: true
47
+ ````
48
+
49
+ ---
50
+
51
+ For each files, the layout name will be the same as the file name.
36
52
 
37
53
  Now you may edit _config.yml with theses variables:
38
54
 
@@ -51,29 +67,44 @@ defaults:
51
67
  values:
52
68
  layout: "default"
53
69
 
70
+ id_google_analytics:
71
+ disqus_url:
54
72
  title:
55
73
  description:
56
74
  url:
75
+ locale: fr
57
76
 
58
77
  social:
59
78
  linkedin:
60
79
  github:
61
80
  instagram:
81
+ strava:
62
82
 
63
83
  header:
64
84
  title:
65
85
  subtitle:
66
86
 
87
+ footer:
88
+ text:
89
+
67
90
  about:
68
91
  username:
69
92
  subtitle:
70
93
 
71
- permalink: /:title/
94
+ nav:
95
+ home:
96
+ categories:
97
+ about:
98
+
99
+ index:
100
+ title:
72
101
 
73
102
  plugins:
74
103
  - jekyll-feed
75
104
  - jekyll-sitemap
76
105
  - jekyll-seo-tag
106
+
107
+ permalink: /:title/
77
108
  ```
78
109
 
79
110
  ## Contributing
@@ -1,5 +1,23 @@
1
1
  <nav class="bt bb tc mw7 center mt4">
2
- <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/">Accueil</a>
3
- <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/categories">Categories</a>
4
- <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/about">A propos</a>
2
+ <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/">
3
+ {% if site.nav.home %}
4
+ {{ site.nav.home }}
5
+ {% else %}
6
+ Accueil
7
+ {% endif %}
8
+ </a>
9
+ <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/categories">
10
+ {% if site.nav.categories %}
11
+ {{ site.nav.categories }}
12
+ {% else %}
13
+ Categories
14
+ {% endif %}
15
+ </a>
16
+ <a class="f6 f5-l link bg-animate black-80 hover-bg-lightest-blue dib pa3 ph4-l" href="{{ site.baseurl }}/about">
17
+ {% if site.nav.about %}
18
+ {{ site.nav.about }}
19
+ {% else %}
20
+ A propos
21
+ {% endif %}
22
+ </a>
5
23
  </nav>
@@ -1,5 +1,5 @@
1
1
  <!doctype html>
2
- <html>
2
+ <html lang="{{ site.locale }}">
3
3
 
4
4
  <head>
5
5
  <meta charset="utf-8">
@@ -9,12 +9,15 @@
9
9
  <link rel="stylesheet" href="/assets/css/styles.css">
10
10
  {% feed_meta %}
11
11
  {% seo %}
12
+ {% if jekyll.environment == "production" %}
13
+ {% include google-analytics.html %}
14
+ {% endif %}
12
15
  </head>
13
16
 
14
17
  <body>
15
18
  <div class="wrap-content fl w-100 pa2">
16
19
  {% include header.html %}
17
- {{ content }}
20
+ {{ content }}
18
21
  {% include footer.html %}
19
22
  </div>
20
23
  </body>
data/_layouts/index.html CHANGED
@@ -3,7 +3,7 @@ title: Blog
3
3
  layout: default
4
4
  ---
5
5
  <section class="mw7 center">
6
- <h2 class="fw1 ph3 ph0-l playfair">Nouvelles</h2>
6
+ <h2 class="fw1 ph3 ph0-l playfair">{{ site.index.title }}</h2>
7
7
  {% for post in site.posts %}
8
8
  <article class="bt bb b--black-10">
9
9
  <a class="db pv4 ph3 ph0-l no-underline black dim" href="{{ post.url }}">
@@ -13,10 +13,11 @@ layout: default
13
13
  <p class="f6 f5-l lh-copy">
14
14
  {{ post.excerpt }}
15
15
  </p>
16
+ {% assign num_words = post.content | strip_html | number_of_words | append: " words"%}
16
17
  <p class="f6 lh-copy mv0 gray">{{ post.author }}</p>
17
- <time class="f6 db gray">{{ post.date | date: "%b %d, %y" }}</time>
18
- </div>
18
+ <time class="f6 db gray">{{ post.date | date: "%b %d, %y" }} - {{ num_words }}</time>
19
19
  </div>
20
+ </div>
20
21
  </a>
21
22
  </article>
22
23
  {% endfor %}
data/_layouts/post.html CHANGED
@@ -15,3 +15,11 @@ layout: default
15
15
  </div>
16
16
  </div>
17
17
  </article>
18
+
19
+ {% if page.comments and jekyll.environment == "production" %}
20
+ <div class="measure db center f5 f4-ns lh-copy">
21
+ {% include disqus.html %}
22
+ </div>
23
+ {% endif %}
24
+
25
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimalist-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - YannickDurden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -140,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.7.6
143
+ rubygems_version: 2.7.6.2
144
144
  signing_key:
145
145
  specification_version: 4
146
- summary: minimalistic theme based on Tachyon framework. See GitHub Page.
146
+ summary: minimalistic theme based on Tachyon framework. See GitHub Page for more informations.
147
147
  test_files: []