Fixed spacing between {{}} in bib.liquid
This commit is contained in:
parent
d019fc0f18
commit
607ff6af44
|
|
@ -16,7 +16,7 @@
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
>
|
>
|
||||||
{% if site.data.venues[entry.abbr].url %}
|
{% if site.data.venues[entry.abbr].url %}
|
||||||
<a href="{{site.data.venues[entry.abbr].url}}">{{ entry.abbr }}</a>
|
<a href="{{ site.data.venues[entry.abbr].url }}">{{ entry.abbr }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>{{- entry.abbr -}}</div>
|
<div>{{- entry.abbr -}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Entry bib key -->
|
<!-- Entry bib key -->
|
||||||
<div id="{{entry.key}}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
|
<div id="{{ entry.key }}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<div class="title">{{ entry.title }}</div>
|
<div class="title">{{ entry.title }}</div>
|
||||||
<!-- Author -->
|
<!-- Author -->
|
||||||
|
|
@ -88,7 +88,7 @@
|
||||||
</em>
|
</em>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{%- if coauthor_url -%}
|
{%- if coauthor_url -%}
|
||||||
<a href="{{coauthor_url}}">
|
<a href="{{ coauthor_url }}">
|
||||||
{{- author.first }}
|
{{- author.first }}
|
||||||
{{ author_last_html -}}
|
{{ author_last_html -}}
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -116,18 +116,18 @@
|
||||||
, and
|
, and
|
||||||
<span
|
<span
|
||||||
class="more-authors"
|
class="more-authors"
|
||||||
title="click to view {{more_authors_hide}}"
|
title="click to view {{ more_authors_hide }}"
|
||||||
onclick="
|
onclick="
|
||||||
var element = $(this);
|
var element = $(this);
|
||||||
element.attr('title', '');
|
element.attr('title', '');
|
||||||
var more_authors_text = element.text() == '{{more_authors_hide}}' ? '{{more_authors_show}}' : '{{more_authors_hide}}';
|
var more_authors_text = element.text() == '{{ more_authors_hide }}' ? '{{ more_authors_show }}' : '{{ more_authors_hide }}';
|
||||||
var cursorPosition = 0;
|
var cursorPosition = 0;
|
||||||
var textAdder = setInterval(function(){
|
var textAdder = setInterval(function(){
|
||||||
element.html(more_authors_text.substring(0, cursorPosition + 1));
|
element.html(more_authors_text.substring(0, cursorPosition + 1));
|
||||||
if (++cursorPosition == more_authors_text.length){
|
if (++cursorPosition == more_authors_text.length){
|
||||||
clearInterval(textAdder);
|
clearInterval(textAdder);
|
||||||
}
|
}
|
||||||
}, '{{site.more_authors_animation_delay}}');
|
}, '{{ site.more_authors_animation_delay }}');
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{- more_authors_hide -}}
|
{{- more_authors_hide -}}
|
||||||
|
|
@ -149,11 +149,11 @@
|
||||||
{% assign proceedings = 'inproceedings,incollection' | split: ',' %}
|
{% assign proceedings = 'inproceedings,incollection' | split: ',' %}
|
||||||
{% assign thesis = 'thesis,mastersthesis,phdthesis' | split: ',' %}
|
{% assign thesis = 'thesis,mastersthesis,phdthesis' | split: ',' %}
|
||||||
{% if entry.type == 'article' %}
|
{% if entry.type == 'article' %}
|
||||||
{% capture entrytype %}<em>{{entry.journal}}</em>{% endcapture %}
|
{% capture entrytype %}<em>{{ entry.journal }}</em>{% endcapture %}
|
||||||
{% elsif proceedings contains entry.type %}
|
{% elsif proceedings contains entry.type %}
|
||||||
{% capture entrytype %}<em>In {{entry.booktitle}}</em>{% endcapture %}
|
{% capture entrytype %}<em>In {{ entry.booktitle }}</em>{% endcapture %}
|
||||||
{% elsif thesis contains entry.type %}
|
{% elsif thesis contains entry.type %}
|
||||||
{% capture entrytype %}<em>{{entry.school}}</em>{% endcapture %}
|
{% capture entrytype %}<em>{{ entry.school }}</em>{% endcapture %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% capture entrytype %}{% endcapture %}
|
{% capture entrytype %}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -161,13 +161,13 @@
|
||||||
{% capture entrymonth %}{{ " " }}{{ entry.month | capitalize }}{% endcapture %}
|
{% capture entrymonth %}{{ " " }}{{ entry.month | capitalize }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entry.year %}
|
{% if entry.year %}
|
||||||
{% capture entryyear %}{{ " " }}{{entry.year}}{% endcapture %}
|
{% capture entryyear %}{{ " " }}{{ entry.year }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if entry.location %}
|
{% if entry.location %}
|
||||||
{% capture entrytype %}{{entrytype}}{{ ", " }}{{entry.location}}{% endcapture %}
|
{% capture entrytype %}{{ entrytype }}{{ ", " }}{{ entry.location }}{% endcapture %}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% if entry.additional_info %}
|
{% if entry.additional_info %}
|
||||||
{% capture entrytype %}{{entrytype}}{{entry.additional_info | markdownify | remove: '<p>' | remove: '</p>' }}{% endcapture %}
|
{% capture entrytype %}{{ entrytype }}{{ entry.additional_info | markdownify | remove: '<p>' | remove: '</p>' }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% capture hook_exists %}{% file_exists _includes/hook/bib.liquid %}{% endcapture %}
|
{% capture hook_exists %}{% file_exists _includes/hook/bib.liquid %}{% endcapture %}
|
||||||
{% if hook_exists == 'true' %}
|
{% if hook_exists == 'true' %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue