Skip to content

Commit ebbb512

Browse files
committed
Addressed PR academicpages#2126 review comments
1 parent 0b2779c commit ebbb512

5 files changed

+20
-29
lines changed

_includes/archive-single.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@ <h2 class="archive__item-title" itemprop="headline">
5252
<p class="archive__item-excerpt" itemprop="description"><p>{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}<strong><a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a></strong></p></p>
5353
{% endif %}
5454

55-
{% if post.slidesurl %}
56-
<p><a href="{{ post.slidesurl }}"><b>Slides</b></a></p>
57-
{% endif %}
58-
59-
{% if post.citation and post.paperurl %}
55+
{% if post.citation and post.paperurl and post.slidesurl %}
56+
<p>Recommended citation: {{ post.citation }} <a href="{{ post.paperurl }}">{{ post.paperurl }}</a> <a href="{{ post.slidesurl }}">Slides</a></p>
57+
{% elsif post.citation and post.paperurl %}
6058
<p>Recommended citation: {{ post.citation }} <a href="{{ post.paperurl }}">{{ post.paperurl }}</a></p>
59+
{% elsif post.citation and post.slidesurl %}
60+
<p>Recommended citation: {{ post.citation }} <a href="{{ post.slidesurl }}">Slides</a></p>
6161
{% elsif post.citation %}
62-
<p>Recommended citation: {{ post.citation }} </p>
62+
<p>Recommended citation: {{ post.citation }}</p>
6363
{% elsif post.paperurl %}
6464
<p class="wordwrap">Download <a href=" {{ post.paperurl }} ">here</a></p>
65+
{% elseif post.slidesurl %}
66+
<p>Download <a href="{{ post.slidesurl }}">Slides</a></p></p>
6567
{% endif %}
6668

6769
</article>

_layouts/single.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@
4646

4747
<section class="page__content" itemprop="text">
4848
{{ content }}
49-
{% if page.slidesurl %}
50-
<p style="font-size: smaller"><a href="{{ page.slidesurl }}">Slides</a></p>
51-
{% endif %}
52-
{% if page.citation and page.paperurl %}
49+
50+
{% if page.citation and page.paperurl and page.slidesurl %}
51+
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a> <a href="{{ page.slidesurl }}">Slides</a></p>
52+
{% elsif page.citation and page.paperurl %}
5353
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a></p>
54+
{% elsif page.citation and page.slidesurl %}
55+
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.slidesurl }}">Slides</a></p>
5456
{% elsif page.citation %}
55-
<p style="font-size: smaller">Recommended citation: {{ page.citation }} </p>
57+
<p style="font-size: smaller">Recommended citation: {{ page.citation }}</p>
58+
{% elsif page.slidesurl %}
59+
<p style="font-size: smaller"><a href="{{ page.slidesurl }}">Slides</a></p>
5660
{% endif %}
5761

5862
{% 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 %}

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

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides1.pdf'
99
paperurl: 'http://academicpages.github.io/files/paper1.pdf'
1010
citation: 'Your Name, You. (2009). &quot;Paper Title Number 1.&quot; <i>Journal 1</i>. 1(1).'
1111
---
12-
This paper is about the number 1. The number 2 is left for future work.
1312

14-
[Download slides here](http://academicpages.github.io/files/slides1.pdf)
15-
16-
[Download paper here](http://academicpages.github.io/files/paper1.pdf)
17-
18-
Recommended citation: Your Name, You. (2009). "Paper Title Number 1." <i>Journal 1</i>. 1(1).
13+
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

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides2.pdf'
99
paperurl: 'http://academicpages.github.io/files/paper2.pdf'
1010
citation: 'Your Name, You. (2010). &quot;Paper Title Number 2.&quot; <i>Journal 1</i>. 1(2).'
1111
---
12-
This paper is about the number 2. The number 3 is left for future work.
1312

14-
[Download slides here](http://academicpages.github.io/files/slides2.pdf)
15-
16-
[Download paper here](http://academicpages.github.io/files/paper2.pdf)
17-
18-
Recommended citation: Your Name, You. (2010). "Paper Title Number 2." <i>Journal 1</i>. 1(2).
13+
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

+1-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides3.pdf'
99
paperurl: 'http://academicpages.github.io/files/paper3.pdf'
1010
citation: 'Your Name, You. (2015). &quot;Paper Title Number 3.&quot; <i>Journal 1</i>. 1(3).'
1111
---
12-
This paper is about the number 3. The number 4 is left for future work.
1312

14-
[Download slides here](http://academicpages.github.io/files/slides3.pdf)
15-
16-
[Download paper here](http://academicpages.github.io/files/paper3.pdf)
17-
18-
Recommended citation: Your Name, You. (2015). "Paper Title Number 3." <i>Journal 1</i>. 1(3).
13+
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)