academic 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/_data/academic_i18n.yml +3 -0
- data/_includes/footer.html +2 -2
- data/_includes/icon-file.html +4 -3
- data/_includes/icon-website.html +2 -1
- data/_includes/nav_menu.html +1 -1
- data/_includes/sitemap-url.html +30 -0
- data/_layouts/sitemap.html +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b31e977889db4a7349ea34a9bc2e1d1047e8e0f3
|
4
|
+
data.tar.gz: df553985e9d237af4af880a53a32a4fbaea33070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e390a960b9fcd43762628028dd46b5b43072dbf7c63b72e6b0bc5d6bf2001f0bb2e494a08d68ebc6b62fa356ae05fae10f1b108b0b0ef381ac100808969f1751
|
7
|
+
data.tar.gz: 141a29cad23bd5391796c44846edd7346fe73ab5691fa770422f22ed9d868cfddf56fc9cc91417cc5aa32f86f6a31b696e24becc5c0f774cd3a408dd7f098577
|
data/README.md
CHANGED
@@ -63,7 +63,6 @@ Table of contents:
|
|
63
63
|
+ Just fill out your usernames for Twitter, Github, LinkedIn, Keybase ; contact email or personal website ; link to your curriculum vitae.
|
64
64
|
+ Academic automatically loads your Github profile picture.
|
65
65
|
+ Choose between a **navigation menu** at the top or a **short pitch** for your blog
|
66
|
-
+ Set a `dateformat` for the whole website directly from the `_config.yml` file
|
67
66
|
+ Navigation menu:
|
68
67
|
+ Hide pages from the navigation menu
|
69
68
|
+ Add external links in the menu from the `_config.yml` file
|
@@ -136,8 +135,6 @@ title_html: "<b>hello</b>world"
|
|
136
135
|
|
137
136
|
`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.
|
138
137
|
|
139
|
-
`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.
|
140
|
-
|
141
138
|
`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.
|
142
139
|
|
143
140
|
`archive_permalink`: [optional] permalink of the archive page. Set to `"/archive"` by default.
|
data/_data/academic_i18n.yml
CHANGED
data/_includes/footer.html
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
<span class="author">
|
13
13
|
{{ i18n.by[plang] }}
|
14
14
|
{% if site.author_website %}
|
15
|
-
<a target="_blank" href="{
|
15
|
+
<a target="_blank" href="{% include i18n.html value=site.author_website %}">{{ site.author }}</a>
|
16
16
|
{% else %}
|
17
17
|
{{ site.author }}
|
18
18
|
{% endif %}
|
@@ -58,7 +58,7 @@
|
|
58
58
|
({% if oldest != newest %}{{ oldest }}-{% endif %}{{ newest }})
|
59
59
|
{% if site.author and site.author_display %}
|
60
60
|
{{ i18n.legal[plang][0] }}
|
61
|
-
<a target="_blank" href="{
|
61
|
+
<a target="_blank" href="{% include i18n.html value=site.author_website %}">{{ site.author }}</a>
|
62
62
|
{% endif %}
|
63
63
|
{% if site.cc %}
|
64
64
|
{{ i18n.legal[plang][1] }}
|
data/_includes/icon-file.html
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
|
1
|
+
{% assign plang = page.lang | default: site.langs[0] | default: "en" %}
|
2
|
+
<a href="{% include i18n.html value=include.curriculum.url %}" title="Curriculum Vitae"><span class="icon icon--cv">{% include icon-file.svg %}</span>
|
2
3
|
<span class="username">
|
3
4
|
{% if include.curriculum.name %}
|
4
|
-
{
|
5
|
+
{% include i18n.html value=include.curriculum.name %}
|
5
6
|
{% else %}
|
6
|
-
|
7
|
+
{{ site.data.academic_i18n.cv[plang] }}
|
7
8
|
{% endif %}
|
8
9
|
</span>
|
9
10
|
</a>
|
data/_includes/icon-website.html
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
{% capture url %}{% include i18n.html value=include.url %}{% endcapture %}
|
2
|
+
<a target="_blank" href="{{ url }}" title="Site"><span class="icon icon--website">{% include icon-website.svg %}</span><span class="username">{{ url | replace:'https://','' | replace: 'http://','' }}</span></a>
|
data/_includes/nav_menu.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<ul class="nav-list {{ include.class }}">
|
5
5
|
{% for link in site.nav_ext_links %}
|
6
6
|
{% if link.url and link.name %}
|
7
|
-
<li><a target="_blank" class="page-link" href="{
|
7
|
+
<li><a target="_blank" class="page-link" href="{% include i18n.html value=link.url %}">
|
8
8
|
{% include i18n.html value=link.name %}
|
9
9
|
</a></li>
|
10
10
|
{% endif %}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{% assign p_done = "404" %}
|
2
|
+
{% for p in include.objects %}
|
3
|
+
{% unless p.path contains ".xml" %}
|
4
|
+
{% unless p.path contains ".scss" %}
|
5
|
+
{% assign pname = p.path | split:"." | first %}
|
6
|
+
{% assign p_done_arr = p_done | split:"," %}
|
7
|
+
{% unless p_done_arr contains pname %}
|
8
|
+
<url>
|
9
|
+
<loc>{{ site.url }}{{ p.url | url_escape }}</loc>
|
10
|
+
{% assign versions = include.objects | where_exp:"p","p.path contains pname" %}
|
11
|
+
{% for v in versions %}
|
12
|
+
<xhtml:link
|
13
|
+
rel="alternate"
|
14
|
+
hreflang="{{ v.lang }}"
|
15
|
+
href="{{ site.url }}{{ v.url | url_escape }}"
|
16
|
+
/>
|
17
|
+
{% endfor %}
|
18
|
+
{% assign p_done = p_done | append:"," | append:pname %}
|
19
|
+
{% if p.layout == "post" %}
|
20
|
+
<lastmod>{{ p.last_modified_at | default:p.date | date_to_xmlschema }}</lastmod>
|
21
|
+
{% endif %}
|
22
|
+
<changefreq>weekly</changefreq>
|
23
|
+
{% if p.layout == "home" %}
|
24
|
+
<priority>1</priority>
|
25
|
+
{% endif %}
|
26
|
+
</url>
|
27
|
+
{% endunless %}
|
28
|
+
{% endunless %}
|
29
|
+
{% endunless %}
|
30
|
+
{% endfor %}
|
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.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gaalcaras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-data
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- _includes/piwik.html
|
107
107
|
- _includes/post-li.html
|
108
108
|
- _includes/post-ul.html
|
109
|
+
- _includes/sitemap-url.html
|
109
110
|
- _includes/sitetitle.html
|
110
111
|
- _layouts/about.html
|
111
112
|
- _layouts/archive.html
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- _layouts/page.html
|
115
116
|
- _layouts/pagenotfound.html
|
116
117
|
- _layouts/post.html
|
118
|
+
- _layouts/sitemap.html
|
117
119
|
- _sass/academic.scss
|
118
120
|
- _sass/academic/_base.scss
|
119
121
|
- _sass/academic/_layout.scss
|