Skip to content

Commit 2b62493

Browse files
committed
Closes academicpages#693 with updates to documentation and location of citation
1 parent 7dc4862 commit 2b62493

5 files changed

+23
-21
lines changed

_layouts/single.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,19 @@
4040
<p>Published in <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
4141
{% elsif page.date %}
4242
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | default: "1900-01-01" | date: "%B %d, %Y" }}</time></p>
43-
{% endif %}
44-
45-
46-
{% if page.citation and page.paperurl %}
47-
<p>Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a></p>
48-
{% elsif page.citation %}
49-
<p>Recommended citation: {{ page.citation }} </p>
50-
{% endif %}
51-
43+
{% endif %}
5244
</header>
5345
{% endunless %}
5446

5547
<section class="page__content" itemprop="text">
5648
{{ content }}
49+
50+
{% if page.citation and page.paperurl %}
51+
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a></p>
52+
{% elsif page.citation %}
53+
<p style="font-size: smaller">Recommended citation: {{ page.citation }} </p>
54+
{% endif %}
55+
5756
{% if page.link %}<div><a href="{{ page.link }}" class="btn">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
5857
</section>
5958

_publications/2009-10-01-paper-title-number-1.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ venue: 'Journal 1'
88
paperurl: 'http://academicpages.github.io/files/paper1.pdf'
99
citation: 'Your Name, You. (2009). &quot;Paper Title Number 1.&quot; <i>Journal 1</i>. 1(1).'
1010
---
11-
This paper is about the number 1. The number 2 is left for future work.
1211

13-
[Download paper here](http://academicpages.github.io/files/paper1.pdf)
14-
15-
Recommended citation: Your Name, You. (2009). "Paper Title Number 1." <i>Journal 1</i>. 1(1).
12+
The contents above will be part of a list of publications, if the user clicks the link for the publication than the contents of section will be rendered as a full page, allowing you to provide more information about the paper for the reader. When publications are displayed as a single page, the contents of the above "citation" field will automatically be included below this section in a smaller font.

_publications/2010-10-01-paper-title-number-2.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ venue: 'Journal 1'
88
paperurl: 'http://academicpages.github.io/files/paper2.pdf'
99
citation: 'Your Name, You. (2010). &quot;Paper Title Number 2.&quot; <i>Journal 1</i>. 1(2).'
1010
---
11-
This paper is about the number 2. The number 3 is left for future work.
1211

13-
[Download paper here](http://academicpages.github.io/files/paper2.pdf)
14-
15-
Recommended citation: Your Name, You. (2010). "Paper Title Number 2." <i>Journal 1</i>. 1(2).
12+
The contents above will be part of a list of publications, if the user clicks the link for the publication than the contents of section will be rendered as a full page, allowing you to provide more information about the paper for the reader. When publications are displayed as a single page, the contents of the above "citation" field will automatically be included below this section in a smaller font.

_publications/2015-10-01-paper-title-number-3.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ venue: 'Journal 1'
88
paperurl: 'http://academicpages.github.io/files/paper3.pdf'
99
citation: 'Your Name, You. (2015). &quot;Paper Title Number 3.&quot; <i>Journal 1</i>. 1(3).'
1010
---
11-
This paper is about the number 3. The number 4 is left for future work.
1211

13-
[Download paper here](http://academicpages.github.io/files/paper3.pdf)
14-
15-
Recommended citation: Your Name, You. (2015). "Paper Title Number 3." <i>Journal 1</i>. 1(3).
12+
The contents above will be part of a list of publications, if the user clicks the link for the publication than the contents of section will be rendered as a full page, allowing you to provide more information about the paper for the reader. When publications are displayed as a single page, the contents of the above "citation" field will automatically be included below this section in a smaller font.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Paper Title Number 4"
3+
collection: publications
4+
permalink: /publication/2024-02-17-paper-title-number-4
5+
excerpt: 'This paper is about fixing template issue #693.'
6+
date: 2024-02-17
7+
venue: 'GitHub Journal of Bugs'
8+
paperurl: 'http://academicpages.github.io/files/paper3.pdf'
9+
citation: 'Your Name, You. (2024). &quot;Paper Title Number 3.&quot; <i>GitHub Journal of Bugs</i>. 1(3).'
10+
---
11+
12+
The contents above will be part of a list of publications, if the user clicks the link for the publication than the contents of section will be rendered as a full page, allowing you to provide more information about the paper for the reader. When publications are displayed as a single page, the contents of the above "citation" field will automatically be included below this section in a smaller font.

0 commit comments

Comments
 (0)