academic 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/_includes/last_modified_at.html +27 -0
- data/_includes/post-li.html +1 -0
- data/_layouts/post.html +1 -0
- data/_sass/academic/_layout.scss +17 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cff9aed8c851292b77c2917ee82c2c345d1e3487
|
4
|
+
data.tar.gz: 978021a3be64764dfdd788bcc8e1ed03dd2b6d3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b188f1da0ce2583ffb7cf746df538050e556a2f9dfeceffea00b43104826c6de473f16ef1d75a66a47de475c6a673444961ad26dacde980dbaba9bb7319f220a
|
7
|
+
data.tar.gz: f9c477e5074bd3324204ec145adc355f912926bed74c25177041cfb9997f52113b30e81d217d9bd33eda54a0f9c5abe6cf477f3ea74f5637206941dd8dc331ff
|
data/README.md
CHANGED
@@ -173,6 +173,11 @@ nav_ext_links:
|
|
173
173
|
- name: Link 2
|
174
174
|
url: http://wallabag.org/
|
175
175
|
```
|
176
|
+
#### Plugins
|
177
|
+
|
178
|
+
Academic is compatible with the `jekyll-last-modified-at` plugin ([repo](https://github.com/gjtorikian/jekyll-last-modified-at)). If installed, the last modified date will be (discretely) displayed in the posts lists and in the post layout.
|
179
|
+
|
180
|
+
If you specified a Github `repo`, the last modified date will point to the revision history of the file.
|
176
181
|
|
177
182
|
### Layouts
|
178
183
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{% assign object = include.object %}
|
2
|
+
|
3
|
+
{% if object.last_modified_at %}
|
4
|
+
|
5
|
+
|
6
|
+
{% assign last = object.last_modified_at | date: '%Y%m%d' %}
|
7
|
+
{% assign created = object.date | date: '%Y%m%d' %}
|
8
|
+
|
9
|
+
{% if last != created %}
|
10
|
+
<span class="last-update">·
|
11
|
+
|
12
|
+
{% if site.repo %}
|
13
|
+
<a title="Voir l'historique des révisions de ce billet"
|
14
|
+
href="{{site.repo}}/commits/master/{{object.path}}">
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
mis à jour le {% include date.html date=object.last_modified_at %}
|
18
|
+
|
19
|
+
{% if site.repo %}
|
20
|
+
</a>
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
</span>
|
24
|
+
{% endif %}
|
25
|
+
|
26
|
+
|
27
|
+
{% endif %}
|
data/_includes/post-li.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -17,6 +17,7 @@ layout: default
|
|
17
17
|
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
18
18
|
{% include date.html date=page.date %}
|
19
19
|
</time>
|
20
|
+
{% include last_modified_at.html object=page %}
|
20
21
|
{% if page.author %} •
|
21
22
|
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
|
22
23
|
{% endif %}
|
data/_sass/academic/_layout.scss
CHANGED
@@ -333,8 +333,20 @@
|
|
333
333
|
margin-left: 0;
|
334
334
|
list-style: none;
|
335
335
|
|
336
|
+
.last-update {
|
337
|
+
display: none;
|
338
|
+
color: $grey-color-light;
|
339
|
+
a {
|
340
|
+
color: $grey-color-light;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
336
344
|
> li {
|
337
345
|
margin-bottom: $spacing-unit;
|
346
|
+
|
347
|
+
&:hover .last-update {
|
348
|
+
display: inline-block;
|
349
|
+
}
|
338
350
|
}
|
339
351
|
|
340
352
|
.post-link {
|
@@ -380,6 +392,11 @@
|
|
380
392
|
}
|
381
393
|
}
|
382
394
|
|
395
|
+
.last-update {
|
396
|
+
color: $grey-color;
|
397
|
+
a { color: inherit }
|
398
|
+
}
|
399
|
+
|
383
400
|
.post-thumbnail {
|
384
401
|
position: absolute;
|
385
402
|
z-index: -1;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: academic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gaalcaras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- _includes/icon-twitter.svg
|
84
84
|
- _includes/icon-website.html
|
85
85
|
- _includes/icon-website.svg
|
86
|
+
- _includes/last_modified_at.html
|
86
87
|
- _includes/nav_menu.html
|
87
88
|
- _includes/piwik.html
|
88
89
|
- _includes/post-li.html
|
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
122
|
version: '0'
|
122
123
|
requirements: []
|
123
124
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.6.8
|
125
126
|
signing_key:
|
126
127
|
specification_version: 4
|
127
128
|
summary: Academic is a Jekyll theme with a focus on simplicity, typography and flexibility.
|