minima-scholar 2.5.0 → 2.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
  SHA256:
3
- metadata.gz: edebbb0c6fb97ca7de684124acece536af5d9f852390bb5065665c2ad530cde8
4
- data.tar.gz: 19308ed70ff075d1a0e9ad75405b8bf70a255bd3dbb432d72351303c4693a8e0
3
+ metadata.gz: 3396daf90eb9c88e164cab29156a5649fc45d908376c0120134bccdd7cbfa1f6
4
+ data.tar.gz: de26c7a42d7a8049eff45b6eeb4e5b073fe7f77881ef2a2f9a231a798ccbdd01
5
5
  SHA512:
6
- metadata.gz: e6ff75a44a6eaf59879e15462505c96c4bb8d81dfc412d154dc3371a56ebc4bd05cdc8f6458441da7aad63d84f38a0d24098b3de04cc970c269dfd800a452da3
7
- data.tar.gz: 20bfa97ef3b24a4d4888ac531442e86d3626d198384fee62fb3744194f697be853af75d8f1a3346d4e6f7c14b9328137f439bc12c37fed364741412172e16377
6
+ metadata.gz: b557ff8b2323093b923c406b78a44dc3e6dfae73c0ee0897ba22042e86f8ffa217c0f1546aa73ff234b2dcc8ffee2b325e2cd67e51673c75532518b07b9e1d72
7
+ data.tar.gz: 577716006144cc129c1cab8914933f38364220e407ed1dff13c294a0ce3d0646cfd0bf74abd846b1558ce99027ace3502d1b866a93ec7241edc7baff85b6f8b7
data/README.md CHANGED
@@ -72,6 +72,18 @@ Refers to files within the `_layouts` directory, that define the markup for your
72
72
  [ORCID](https://orcid.org) profiles and to their CV (or whatever
73
73
  personal website they might have). It reads data from the `_team`
74
74
  collection that is compliant with the schema.org specification.
75
+ - `page.html` — This standard Minima layout has been extended with
76
+ the addition of Author and Date fields, which will render only when
77
+ the corresponding front matter information is available. The Author
78
+ front matter is expected to be structured as follows:
79
+
80
+ ```yaml
81
+ author:
82
+ - name: "First Author"
83
+ affiliation: "University 1"
84
+ - name: "Second Author"
85
+ affiliation: "Another School"
86
+ ```
75
87
 
76
88
  ### Includes
77
89
 
data/_layouts/biblio.html CHANGED
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  layout: page
3
3
  ---
4
- {%- assign start = "2018" | date: "%Y" -%}
5
- {%- assign today = "today" | date: "%Y" -%}
6
4
  {%- assign biblio = site.data.biblio.references | sort: "id" -%}
7
5
 
8
6
  {{ content }}
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: page
3
3
  ---
4
- {% assign team = site.data.team | sort: "givenName" %}
4
+ {% assign team = site.team | sort: "givenName" %}
5
5
  {% assign lab = site.baseurl | remove: "/" %}
6
6
 
7
7
  {{ content }}
data/_layouts/page.html CHANGED
@@ -7,6 +7,19 @@ layout: default
7
7
  <h1 class="post-title">{{ page.title | escape }}</h1>
8
8
  </header>
9
9
 
10
+ {% if page.author %}
11
+ <dl>
12
+ {% for author in page.author %}
13
+ <dt class="author">{{ author.name | escape }}</dt>
14
+ <dd class="author">{{ author.affiliation }}</dd>
15
+ {% endfor %}
16
+ </dl>
17
+ {% endif %}
18
+
19
+ {% if page.date %}
20
+ <p class="date">{{ page.date | date: "%e %B %Y" }}</p>
21
+ {% endif %}
22
+
10
23
  <div class="post-content">
11
24
  {{ content }}
12
25
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minima-scholar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro P. Palazzo