Skip to content

Commit

Permalink
Addressed PR academicpages#2126 review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saravan2 committed May 16, 2024
1 parent 0b2779c commit ebbb512
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 29 deletions.
14 changes: 8 additions & 6 deletions _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ <h2 class="archive__item-title" itemprop="headline">
<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>
{% endif %}

{% if post.slidesurl %}
<p><a href="{{ post.slidesurl }}"><b>Slides</b></a></p>
{% endif %}

{% if post.citation and post.paperurl %}
{% if post.citation and post.paperurl and post.slidesurl %}
<p>Recommended citation: {{ post.citation }} <a href="{{ post.paperurl }}">{{ post.paperurl }}</a> <a href="{{ post.slidesurl }}">Slides</a></p>
{% elsif post.citation and post.paperurl %}
<p>Recommended citation: {{ post.citation }} <a href="{{ post.paperurl }}">{{ post.paperurl }}</a></p>
{% elsif post.citation and post.slidesurl %}
<p>Recommended citation: {{ post.citation }} <a href="{{ post.slidesurl }}">Slides</a></p>
{% elsif post.citation %}
<p>Recommended citation: {{ post.citation }} </p>
<p>Recommended citation: {{ post.citation }}</p>
{% elsif post.paperurl %}
<p class="wordwrap">Download <a href=" {{ post.paperurl }} ">here</a></p>
{% elseif post.slidesurl %}
<p>Download <a href="{{ post.slidesurl }}">Slides</a></p></p>
{% endif %}

</article>
Expand Down
14 changes: 9 additions & 5 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@

<section class="page__content" itemprop="text">
{{ content }}
{% if page.slidesurl %}
<p style="font-size: smaller"><a href="{{ page.slidesurl }}">Slides</a></p>
{% endif %}
{% if page.citation and page.paperurl %}

{% if page.citation and page.paperurl and page.slidesurl %}
<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>
{% elsif page.citation and page.paperurl %}
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a></p>
{% elsif page.citation and page.slidesurl %}
<p style="font-size: smaller">Recommended citation: {{ page.citation }} <a href="{{ page.slidesurl }}">Slides</a></p>
{% elsif page.citation %}
<p style="font-size: smaller">Recommended citation: {{ page.citation }} </p>
<p style="font-size: smaller">Recommended citation: {{ page.citation }}</p>
{% elsif page.slidesurl %}
<p style="font-size: smaller"><a href="{{ page.slidesurl }}">Slides</a></p>
{% endif %}

{% 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 %}
Expand Down
7 changes: 1 addition & 6 deletions _publications/2009-10-01-paper-title-number-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides1.pdf'
paperurl: 'http://academicpages.github.io/files/paper1.pdf'
citation: 'Your Name, You. (2009). &quot;Paper Title Number 1.&quot; <i>Journal 1</i>. 1(1).'
---
This paper is about the number 1. The number 2 is left for future work.

[Download slides here](http://academicpages.github.io/files/slides1.pdf)

[Download paper here](http://academicpages.github.io/files/paper1.pdf)

Recommended citation: Your Name, You. (2009). "Paper Title Number 1." <i>Journal 1</i>. 1(1).
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.
7 changes: 1 addition & 6 deletions _publications/2010-10-01-paper-title-number-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides2.pdf'
paperurl: 'http://academicpages.github.io/files/paper2.pdf'
citation: 'Your Name, You. (2010). &quot;Paper Title Number 2.&quot; <i>Journal 1</i>. 1(2).'
---
This paper is about the number 2. The number 3 is left for future work.

[Download slides here](http://academicpages.github.io/files/slides2.pdf)

[Download paper here](http://academicpages.github.io/files/paper2.pdf)

Recommended citation: Your Name, You. (2010). "Paper Title Number 2." <i>Journal 1</i>. 1(2).
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.
7 changes: 1 addition & 6 deletions _publications/2015-10-01-paper-title-number-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ slidesurl: 'http://academicpages.github.io/files/slides3.pdf'
paperurl: 'http://academicpages.github.io/files/paper3.pdf'
citation: 'Your Name, You. (2015). &quot;Paper Title Number 3.&quot; <i>Journal 1</i>. 1(3).'
---
This paper is about the number 3. The number 4 is left for future work.

[Download slides here](http://academicpages.github.io/files/slides3.pdf)

[Download paper here](http://academicpages.github.io/files/paper3.pdf)

Recommended citation: Your Name, You. (2015). "Paper Title Number 3." <i>Journal 1</i>. 1(3).
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 comments on commit ebbb512

Please sign in to comment.