Skip to content

Commit

Permalink
Closes academicpages#693 with updates to documentation and location o…
Browse files Browse the repository at this point in the history
…f citation
  • Loading branch information
rjzupkoii authored and austinwli committed Oct 13, 2024
1 parent f390858 commit cc2f486
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
17 changes: 8 additions & 9 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,19 @@
<p>Published in <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif page.date %}
<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>
{% endif %}


{% if page.citation and page.paperurl %}
<p>Recommended citation: {{ page.citation }} <a href="{{ page.paperurl }}"><u>{{ page.paperurl }}</u></a></p>
{% elsif page.citation %}
<p>Recommended citation: {{ page.citation }} </p>
{% endif %}

{% endif %}
</header>
{% endunless %}

<section class="page__content" itemprop="text">
{{ content }}

{% if 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 %}
<p style="font-size: smaller">Recommended citation: {{ page.citation }} </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 %}
</section>

Expand Down
5 changes: 1 addition & 4 deletions _publications/2009-10-01-paper-title-number-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ venue: 'Journal 1'
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 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.
5 changes: 1 addition & 4 deletions _publications/2010-10-01-paper-title-number-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ venue: 'Journal 1'
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 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.
5 changes: 1 addition & 4 deletions _publications/2015-10-01-paper-title-number-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ venue: 'Journal 1'
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 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.
12 changes: 12 additions & 0 deletions _publications/2024-02-17-paper-title-number-4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: "Paper Title Number 4"
collection: publications
permalink: /publication/2024-02-17-paper-title-number-4
excerpt: 'This paper is about fixing template issue #693.'
date: 2024-02-17
venue: 'GitHub Journal of Bugs'
paperurl: 'http://academicpages.github.io/files/paper3.pdf'
citation: 'Your Name, You. (2024). &quot;Paper Title Number 3.&quot; <i>GitHub Journal of Bugs</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 cc2f486

Please sign in to comment.