academic 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 876a078617bf34b4ec0059b05f85b733aecc2e07
4
- data.tar.gz: 8db534703a9220279f8de5bc343bdb70a8f9e4de
3
+ metadata.gz: 991edbf3e58bbfe9bd0c89c2db06784fc0c1c4be
4
+ data.tar.gz: db85c85a0bd77849367ee064c9bc837efa5cc55c
5
5
  SHA512:
6
- metadata.gz: 5544ca70d78d0b14eae435a8278da7f53c98fc7ff1dd8ecfa43c5b7debe2d67ca0f8f73fa3d1b4a6cf1f8b6b444063991f60dc5fcee3059edf337edd3271c691
7
- data.tar.gz: 3f083fd73fb328c8b95d801002f6282dc22bab811ce7c310d9407a2326db4bbc1cb1bac02ef113a05cbc00cf7dbe78af3ccf82967048ed1fd9d88335bb2d2df9
6
+ metadata.gz: 7460430720697c0becccb84fcb436ace5d5ced5538fdb8c0de8b30fc5303f7da6495bc0783e4b5f9e5d97d30e01c513cdea8c4fe946587642fc4071e6e80556e
7
+ data.tar.gz: 869b761c96a1f65ea1823635b58ab1e9193bccb137fe6ead7ba13592189f9e5082ee558f0e1833536b65b4b886dbee19f40e9226f4b41e66a0915def329c75d6
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # academic
2
2
 
3
- Academic is a theme with a focus on simplicity, typography and flexibility. I originally designed for my personal blog during my PhD thesis.
3
+ Academic is a [Jekyll](http://jekyllrb.com/) theme with a focus on simplicity, typography and flexibility.
4
+ I originally designed it for my personal blog during my PhD thesis.
4
5
 
5
6
  ![Academic screenshot](screenshot.png)
6
7
 
@@ -28,6 +29,7 @@ Table of contents:
28
29
  * [Page layout](#page-layout)
29
30
  * [About layout](#about-layout)
30
31
  * [Archive layout](#archive-layout)
32
+ * [404 layout](#404-layout)
31
33
  * [Contributing](#contributing)
32
34
  * [Release log](#release-log)
33
35
  * [License](#license)
@@ -116,9 +118,12 @@ title_html: "<b>hello</b>world"
116
118
 
117
119
  `cc`: [optional] choose among the [Creative Commons](https://creativecommons.org/licenses/) licenses (v4). Accepted values are : `by`, `by-sa`, `by-nd`, `by-nc`, `by-nc-sa`, `by-nc-nd`. Defining the `cc` variable will add a small sentence in the footer. If no value is given, a small copyright is added instead.
118
120
 
119
-
120
121
  `dateformat`: [optional] format the dates of the whole website. Default "%b %-d, %Y". Read [the documentation](https://help.shopify.com/themes/liquid/filters/additional-filters#date) to learn how you can customize the date format.
121
122
 
123
+ `nb_posts_page`: [optional] number of posts to display on the homepage. By default, all posts are listed. Note that you should create a page with the archive layout.
124
+
125
+ `archive_permalink`: [optional] permalink of the archive page. Set to `"/archive"` by default.
126
+
122
127
  #### Author
123
128
 
124
129
  `email`: [optional] add email address in about layout.
@@ -181,7 +186,17 @@ Will automatically put the content of the page on the right column. The left col
181
186
 
182
187
  #### Archive layout
183
188
 
184
- Pages with the archive layout will list all posts published in reverse chronological order.
189
+ Create a `archive.md` page, choose the "archive" layout. You don't need to write anything in this file, all posts published will be listed in reverse chronological order.
190
+
191
+ #### 404 layout
192
+
193
+ Create a `404.md` page, set the layout:
194
+
195
+ ```
196
+ layout: pagenotfound
197
+ ```
198
+
199
+ The content of the page will be used in the 404 page.
185
200
 
186
201
  ## Contributing
187
202
 
@@ -189,7 +204,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/gaalca
189
204
 
190
205
  ## Release log
191
206
 
192
- + 0.1.0 : first release of the theme.
207
+ + 0.1.1 [2016-12]: bug fixes
208
+ + 0.1.0 [2016-12]: first release of the theme.
193
209
 
194
210
  ## License
195
211
 
@@ -3,9 +3,12 @@
3
3
  <div class="wrapper">
4
4
 
5
5
  <ul class="info-list footer-col">
6
- {% if site.title %}
7
- <li><a href="{{ "/" | relative_url}}">{{ site.title_html }}</a>
6
+ {% if site.title_html %}
7
+ {% assign title = site.title_html %}
8
+ {% else %}
9
+ {% assign title = site.title %}
8
10
  {% endif %}
11
+ <li><a href="{{ "/" | relative_url}}">{{ title }}</a>
9
12
 
10
13
  {% if site.author_display %}
11
14
  <span class="author"> par
@@ -43,7 +46,7 @@
43
46
 
44
47
  <div class="bottom">
45
48
  <div class="tech">
46
- <a href="https://jekyllrb.com/">Jekyll</a> + Academic
49
+ <a target="_blank" href="https://jekyllrb.com/">Jekyll</a> + <a target="_blank" href="https://github.com/gaalcaras/academic">Academic</a>
47
50
  </div>
48
51
  <div class="legal">
49
52
  {% if site.cc == null %}©{% endif %}
data/_layouts/home.html CHANGED
@@ -16,13 +16,22 @@ layout: default
16
16
  {{ content }}
17
17
 
18
18
  <ul class="post-list">
19
- {% for post in site.posts limit:5 %}
19
+ {% for post in site.posts limit:site.nb_posts_page %}
20
20
  {% include post-li.html %}
21
21
  {% endfor %}
22
22
  </ul>
23
23
 
24
24
  {% include calltoaction.html message="Le blog vous intéresse ?" %}
25
25
 
26
- <div class="archive">Voir <a href="/archive">tous les articles publiés</a>.</div>
26
+ {% assign nb_posts = site.posts | size %}
27
+ {% if site.archive_permalink %}
28
+ {% assign archive_link = site.archive_permalink %}
29
+ {% else %}
30
+ {% assign archive_link = "/archive" %}
31
+ {% endif %}
32
+
33
+ {% if nb_posts > site.nb_posts_page %}
34
+ <div class="archive">Voir <a href="{{ archive_link }}">tous les articles publiés</a>.</div>
35
+ {% endif %}
27
36
 
28
37
  </div>
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="msg-404">
6
+ <div class="title">404</div>
7
+ <div class="description">Cette page a probablement déménagé vers une nouvelle adresse...</div>
8
+ </div>
9
+
10
+ {{ page.content }}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: academic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - gaalcaras
@@ -86,6 +86,7 @@ files:
86
86
  - _layouts/default.html
87
87
  - _layouts/home.html
88
88
  - _layouts/page.html
89
+ - _layouts/pagenotfound.html
89
90
  - _layouts/post.html
90
91
  - _sass/academic.scss
91
92
  - _sass/academic/_base.scss