academic 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b70dfb379762f79a727193354e5632dc713a8997
4
- data.tar.gz: 2119c994426776fe50e86a61547a6a201c06b698
3
+ metadata.gz: b31e977889db4a7349ea34a9bc2e1d1047e8e0f3
4
+ data.tar.gz: df553985e9d237af4af880a53a32a4fbaea33070
5
5
  SHA512:
6
- metadata.gz: f5643cdb906a04f79c7a04ecf1a5f1b2c14b1e7094051fa78bfc74d18af49b3a65261fee78a58bcc9a890dd08ce6afb275ac8eb45621e93ae6067ee1943f1b04
7
- data.tar.gz: b253f44f84ff46eee6c0980c5e9588c98cc9d24a7ac0280ea97ca66eb703184ffe6400875399a455b05c090cb3e170ed7ab0dda35372650410f85cd981ac5f46
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.
@@ -56,3 +56,6 @@ no_versions:
56
56
  langs_avail:
57
57
  fr: "Langues :"
58
58
  en: "Languages:"
59
+ cv:
60
+ fr: "Curriculum Vitae"
61
+ en: "Curriculum"
@@ -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="{{ site.author_website }}">{{ site.author }}</a>
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="{{ site.author_website }}">{{ site.author }}</a>
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] }}
@@ -1,9 +1,10 @@
1
- <a href="{{ include.curriculum.url }}" title="Curriculum Vitae"><span class="icon icon--cv">{% include icon-file.svg %}</span>
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
- {{ include.curriculum.name }}
5
+ {% include i18n.html value=include.curriculum.name %}
5
6
  {% else %}
6
- Curriculum Vitae
7
+ {{ site.data.academic_i18n.cv[plang] }}
7
8
  {% endif %}
8
9
  </span>
9
10
  </a>
@@ -1 +1,2 @@
1
- <a target="_blank" href="{{ include.url }}" title="Site"><span class="icon icon--website">{% include icon-website.svg %}</span><span class="username">{{ include.url | replace:'https://','' }}</span></a>
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>
@@ -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="{{ link.url }}">
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 %}
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <urlset xmlns="http://www.sitemaposts.org/schemas/sitemap/0.9"
3
+ xmlns:xhtml="http://www.w3.org/1999/xhtml" >
4
+ {% include sitemap-url.html objects=site.pages %}
5
+ {% include sitemap-url.html objects=site.posts %}
6
+ </urlset>
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.0
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-16 00:00:00.000000000 Z
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