-
-
Notifications
You must be signed in to change notification settings - Fork 136
Migrate from Bootstrap 3.3.7 to Bootstrap 5.3.8 #922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
7732ffc
ad59cb6
5b709ef
c414060
eabeba1
3c8699b
0356d97
04239cb
ab5b9ec
ec6576e
d791976
b3d01bb
843d255
a59a290
0c7b8eb
2a75240
f689f51
2969261
5ad7bbf
4288212
48697e6
d3bbccc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
MakisH marked this conversation as resolved.
|
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a nice and long-overdue addition, thanks! I wonder if we should use something more unique than the title (e.g., the filename where the data is drawn from), as the title could be duplicated (e.g., the slides and the post-proceedings paper of a conference). But that's not currently an issue. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| {% comment %} | ||
| Renders a blue-bordered publication citation box (same as precice.org / landing page). | ||
|
|
||
| Usage: | ||
| {% include publication_panel.html title="Exact publication title" %} | ||
| {% include publication_panel.html pub=pub %} | ||
| {% include publication_panel.html pub=pub flexible=true wrapper=false show_doi_in_body=true %} | ||
|
|
||
| Parameters: | ||
| title / pub — lookup or pass publication from site.publications | ||
| flexible — optional journal fields (fenics related literature) | ||
| wrapper — wrap in row + col-md-10 offset-md-1 (default: true) | ||
| show_doi_in_body — append doi link in the citation line | ||
| require_pub_url — only show Publisher's site when pub-url is set | ||
| {% endcomment %} | ||
|
|
||
| {% if include.pub %} | ||
| {% assign pub = include.pub %} | ||
| {% elsif include.title %} | ||
| {% assign pub = nil %} | ||
| {% for p in site.publications %} | ||
| {% if p.title == include.title %} | ||
| {% assign pub = p %} | ||
| {% break %} | ||
| {% endif %} | ||
| {% endfor %} | ||
| {% endif %} | ||
|
|
||
| {% if pub %} | ||
| {% if pub.doi %} | ||
| {% assign publisher_url = pub.doi | prepend: 'https://www.doi.org/' %} | ||
| {% else %} | ||
| {% assign publisher_url = pub.pub-url %} | ||
| {% endif %} | ||
|
|
||
| {% assign use_wrapper = true %} | ||
| {% if include.wrapper == false %} | ||
| {% assign use_wrapper = false %} | ||
| {% endif %} | ||
|
|
||
| {% if use_wrapper %} | ||
| <div class="row"> | ||
| <div class="col-md-10 offset-md-1"> | ||
| {% endif %} | ||
| <div class="card border-primary panel-precice"> | ||
| <div class="card-header-precice"> | ||
| <strong>{{ pub.title }}</strong> | ||
| </div> | ||
| <div class="card-body"> | ||
| <p> | ||
| {% if include.flexible %} | ||
| <em>{{ pub.authors }}</em>{% if pub.journal.name %} {{ pub.journal.name }}, {% endif %}{% if pub.journal.volume %}Volume {{ pub.journal.volume }}, {% endif %}{% if pub.journal.publisher %}{{ pub.journal.publisher }}, {% endif %}{{ pub.year }}{% if include.show_doi_in_body and pub.doi %}, <a href="https://www.doi.org/{{ pub.doi }}">doi:{{ pub.doi }}</a>{% endif %}. | ||
| {% elsif pub.journal.issue %} | ||
| <em>{{ pub.authors }}</em>, | ||
| {{ pub.journal.name }}, | ||
| {{ pub.year }}, | ||
| {{ pub.journal.volume }}:{{ pub.journal.issue }}{% if include.show_doi_in_body and pub.doi %}, <a href="https://www.doi.org/{{ pub.doi }}">doi:{{ pub.doi }}</a>{% endif %}. | ||
| {% else %} | ||
| <em>{{ pub.authors }}</em>, | ||
| {{ pub.journal.name }}{% if pub.journal.volume %}, | ||
| Volume {{ pub.journal.volume }}{% endif %}{% if pub.journal.publisher %}, | ||
| {{ pub.journal.publisher }}{% endif %}, | ||
| {{ pub.year }}{% if include.show_doi_in_body and pub.doi %}, <a href="https://www.doi.org/{{ pub.doi }}">doi:{{ pub.doi }}</a>{% endif %}. | ||
| {% endif %} | ||
| </p> | ||
| {% if include.flexible and include.require_pub_url %} | ||
| {% if pub.pub-url %} | ||
| <a href="{{ pub.pub-url }}">Publisher's site</a> | ||
| {% endif %} | ||
| {% elsif publisher_url %} | ||
| <a href="{{ publisher_url }}">Publisher's site</a> | ||
| {% endif %} | ||
| {% if pub.bibtex %} | ||
| <a href="assets/{{ pub.bibtex }}">Download BibTeX <i class="fas fa-download"></i></a> | ||
| {% endif %} | ||
| </div> | ||
| </div> | ||
| {% if use_wrapper %} | ||
| </div> | ||
| </div> | ||
| {% endif %} | ||
| {% endif %} |
Uh oh!
There was an error while loading. Please reload this page.