Skip to content
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

Collapse abstracts #88

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
mini_magick (4.13.0)
mini_magick (4.13.2)
namae (1.2.0)
racc (~> 1.7)
pathutil (0.16.2)
Expand Down
36 changes: 27 additions & 9 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---
<style>ol.bibliography li { list-style: none }</style>
{{ reference }}


{% assign urls = "" %}
{% capture doi_url %}<a href="https://doi.org/{{ entry.doi| remove_first: "https://doi.org/"}}">DOI</a>|{% endcapture %}
Expand All @@ -15,13 +15,31 @@



<p>[{{urls | split: "|" | join: " | "}}]</p>

{% if entry.abstract %}
<p></p>
<blockquote><p>{{ entry.abstract }}</p></blockquote>
{% endif %}
{% if entry.abstract or entry.keywords %}
<ul class="accordion" data-accordion data-multi-expand="true" data-allow-all-closed="true">
<li class="accordion-item pub_seperator" data-accordion-item>
<a href="#" class="accordion-title pub">
{{ reference }}
</a>
<div class="accordion-content pub" data-tab-content >
{% if entry.abstract %}
<p></p>
<blockquote class="pub_unseperator"><p>{{ entry.abstract }}</p></blockquote>
{% endif %}
{% if entry.keywords %}
<blockquote class="pub_unseperator"><p>Keywords: {{ entry.keywords }}</p></blockquote>
{% endif %}
</div>
<p>[{{urls | split: "|" | join: " | "}}]</p>
</li>
</ul>
{% else %}
{{ reference }}
<p>[{{urls | split: "|" | join: " | "}}]</p>
{% endif %}





{% if entry.keywords %}
<blockquote><p>Keywords: {{ entry.keywords }}</p></blockquote>
{% endif %}
3 changes: 2 additions & 1 deletion _sass/minima.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ $on-laptop: 800px !default;
"minima/project.scss",
"minima/post.scss",
"minima/people",
"minima/navbar"
"minima/navbar",
"minima/publications"
;
40 changes: 40 additions & 0 deletions _sass/minima/_publications.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.accordion-title.pub {
padding: 0rem;
border: none;
border-bottom: none;
font: 400 16px / 1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: #111;
}

:last-child:not(.is-active)>.accordion-title.pub {
border-bottom: none;
}

.accordion-content.pub {
padding: 0rem;
border: none;
border-bottom: none;
background-color: none;
}

.pub_seperator{
margin-bottom: 15px;
}

.pub_seperator>a>span {
padding-right: 3rem;
display: inline-block;
}

.accordion-title::before {
position: absolute;
top: 5%;
right: 1rem;
margin-top: -.25rem;
font-size: 30px;
font-weight: bold;
}

.pub_unseperator{
margin-bottom: 0px;
}
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function process_CLI(cb) {

async function update_packages(cb) {
await create_command("npm ci")
await create_command("bundle install")
await create_command("bundle update")
cb()
}

Expand Down
Loading