-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update card designs and search function
- Loading branch information
DigitalPasts
committed
Jul 30, 2023
1 parent
ec65675
commit f80bef7
Showing
58 changed files
with
1,725 additions
and
813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,128 @@ | ||
<div class="author-card"> | ||
<div class="authors-container"> | ||
<!-- assign and number author affiliations --> | ||
{% assign affiliations = '' | split: '' %} | ||
|
||
{% for author in include.authors %} | ||
{% assign affiliation = author[1].affiliation | split: ", " %} | ||
{% assign affiliations = affiliations | concat: affiliation %} | ||
{% endfor %} | ||
<div class="author-box1"> | ||
|
||
{% assign unique_affiliations = affiliations | uniq %} | ||
|
||
{% for author in include.authors %} | ||
{%- if forloop.length > 0 -%} | ||
<!-- <div class="author-container"> --> | ||
{{ author[1].name }} | ||
|
||
{% assign affiliation_count = 0 %} | ||
{% for affiliation in unique_affiliations %} | ||
{% assign affiliation_count = affiliation_count | plus: 1 %} | ||
{% assign author_affiliations = author[1].affiliation | split: ", " %} | ||
{% for author_affiliation in author_affiliations %} | ||
{% if author_affiliation == affiliation %} | ||
<sup>{{ affiliation_count }}</sup> | ||
{% endif %} | ||
<div class="authors-container"> | ||
<!-- assign and number author affiliations --> | ||
{% assign affiliations = '' | split: '' %} | ||
|
||
{% for author in include.authors %} | ||
{% assign affiliation = author[1].affiliation | split: ", " %} | ||
{% assign affiliations = affiliations | concat: affiliation %} | ||
{% endfor %} | ||
|
||
{% assign unique_affiliations = affiliations | uniq %} | ||
|
||
{% for author in include.authors %} | ||
{%- if forloop.length > 0 -%} | ||
<!-- <div class="author-container"> --> | ||
{{ author[1].name }} | ||
|
||
{% assign affiliation_count = 0 %} | ||
{% for affiliation in unique_affiliations %} | ||
{% assign affiliation_count = affiliation_count | plus: 1 %} | ||
{% assign author_affiliations = author[1].affiliation | split: ", " %} | ||
{% for author_affiliation in author_affiliations %} | ||
{% if author_affiliation == affiliation %} | ||
<sup>{{ affiliation_count }}</sup> | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
{% if author[1].orcid != null %} | ||
<a href="https://orcid.org/{{author[1].orcid}}" target="_blank"><i class="fa-brands fa-orcid fa-sm"></i></a> | ||
{% endif %} | ||
{% if author[1].academia != null %} | ||
<a href="{{author[1].academia}}" target="_blank"><i class="fa-solid fa-graduation-cap fa-sm"></i></a> | ||
{% endif %} | ||
{% if author[1].github != null %} | ||
<a href="{{author[1].github}}" target="_blank"><i class="fa-brands fa-github fa-sm"></i></a> | ||
{% endif %} | ||
|
||
{% if author[1].orcid != null %} | ||
<a href="https://orcid.org/{{author[1].orcid}}" target="_blank"><i class="fa-brands fa-orcid fa-sm"></i></a> | ||
{% endif %} | ||
{% if author[1].academia != null %} | ||
<a href="{{author[1].academia}}" target="_blank"><i class="fa-solid fa-graduation-cap fa-sm"></i></a> | ||
{% endif %} | ||
{% if author[1].github != null %} | ||
<a href="{{author[1].github}}" target="_blank"><i class="fa-brands fa-github fa-sm"></i></a> | ||
{% endif %} | ||
|
||
{% unless forloop.last %}, {% endunless -%} | ||
<!-- </div> --> | ||
{%- endif -%} | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="affiliations"> | ||
{% assign affiliation_count = 0 %} | ||
{% for affiliation in unique_affiliations %} | ||
{% assign affiliation_count = affiliation_count | plus: 1 %} | ||
<p><sup>{{ affiliation_count }}</sup> {{affiliation}}</p> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="dates"> | ||
<p>Submitted on: {{ include.date | date: "%B %d, %Y" }}</p> | ||
<p>Published on: {{ include.publish-date | date: "%B %d, %Y" }}</p> | ||
{% if include.peer-review-date != null %} | ||
<p>Peer reviewed: {{ include.peer-review-date | date: "%B %d, %Y" }}</p> | ||
{% endif %} | ||
{% if include.update-date != null %} | ||
<p>Last update: {{ include.update-date | date: "%B %d, %Y" }}</p> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="peer-review"> | ||
{% if include.reviewers != null %} | ||
Reviewed by: | ||
{% for reviewer in include.reviewers %} | ||
{%- if forloop.length > 0 -%} | ||
{{ reviewer[1].name }} | ||
{% if reviewer[1].orcid != null %} | ||
<a href="https://orcid.org/{{reviewer[1].orcid}}" target="_blank"><i class="fa-brands fa-orcid fa-sm"></i></a> | ||
{% endif %} | ||
{% if reviewer[1].academia != null %} | ||
<a href="{{reviewer[1].academia}}" target="_blank"><i class="fa-solid fa-graduation-cap fa-sm"></i></a> | ||
{% endif %} | ||
{% if reviewer[1].github != null %} | ||
<a href="{{reviewer[1].github}}" target="_blank"><i class="fa-brands fa-github fa-sm"></i></a> | ||
{% endif %} | ||
<!-- {% unless forloop.last %}, {% endunless -%} --> | ||
{%- endif -%} | ||
{% endfor %} | ||
<a href="https://doi.org/{{include.doi}}" target="_blank"> | ||
<span class="doi" style="background-image: url(https://zenodo.org/badge/DOI/{{include.doi}}.svg);">doi</span> | ||
</a> | ||
|
||
{% else %} | ||
<i>Under peer review</i> | ||
{% endif %} | ||
|
||
</div> | ||
|
||
{% unless forloop.last %}, {% endunless -%} | ||
<!-- </div> --> | ||
{%- endif -%} | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="affiliations"> | ||
{% assign affiliation_count = 0 %} | ||
{% for affiliation in unique_affiliations %} | ||
{% assign affiliation_count = affiliation_count | plus: 1 %} | ||
<p><sup>{{ affiliation_count }}</sup> {{affiliation}}</p> | ||
{% endfor %} | ||
</div> | ||
<div class="author-box2"> | ||
|
||
<div class="dates"> | ||
<p>Submitted on: {{ include.date | date: "%B %d, %Y" }}</p> | ||
<p>Published on: {{ include.publish-date | date: "%B %d, %Y" }}</p> | ||
{% if include.peer-review-date != null %} | ||
<p>Peer reviewed: {{ include.peer-review-date | date: "%B %d, %Y" }}</p> | ||
{% endif %} | ||
{% if include.update-date != null %} | ||
<p>Last update: {{ include.update-date | date: "%B %d, %Y" }}</p> | ||
{% if include.deprecated != null %} | ||
<div class="deprecated"> | ||
<i>This tutorial is deprecated!</i> | ||
</div> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="peer-review"> | ||
{% if include.reviewers != null %} | ||
Reviewed by: | ||
{% for reviewer in include.reviewers %} | ||
{%- if forloop.length > 0 -%} | ||
{{ reviewer[1].name }} | ||
{% if reviewer[1].orcid != null %} | ||
<a href="https://orcid.org/{{reviewer[1].orcid}}" target="_blank"><i class="fa-brands fa-orcid fa-sm"></i></a> | ||
{% endif %} | ||
{% if reviewer[1].academia != null %} | ||
<a href="{{reviewer[1].academia}}" target="_blank"><i class="fa-solid fa-graduation-cap fa-sm"></i></a> | ||
{% endif %} | ||
{% if reviewer[1].github != null %} | ||
<a href="{{reviewer[1].github}}" target="_blank"><i class="fa-brands fa-github fa-sm"></i></a> | ||
{% endif %} | ||
{% unless forloop.last %}, {% endunless -%} | ||
{%- endif -%} | ||
{% endfor %} | ||
<a href="https://doi.org/{{include.doi}}" target="_blank"> | ||
<span class="doi" style="background-image: url(https://zenodo.org/badge/DOI/{{include.doi}}.svg);">doi</span> | ||
</a> | ||
|
||
{% else %} | ||
<i>Under peer review</i> | ||
{% endif %} | ||
|
||
</div> | ||
|
||
<div class="card-summary"> | ||
<p> | ||
{{ include.summary }} | ||
</p> | ||
<p> | ||
{% for tag in include.tags %} | ||
#{{ tag }} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
<div class="card-summary"> | ||
<p> | ||
<b>Summary:</b> {{ include.summary }} | ||
</p> | ||
</div> | ||
|
||
{% if include.difficulty != null %} | ||
<div class="difficulty"> | ||
<div class="card-tags"> | ||
<p> | ||
Difficulty level: {{include.difficulty}} | ||
{% for tag in include.tags %} | ||
#{{ tag }} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if include.difficulty != null %} | ||
<div class="difficulty"> | ||
<p> | ||
Difficulty level: {{include.difficulty}} | ||
</p> | ||
</div> | ||
{% endif %} | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.