Skip to content

Commit

Permalink
Closes academicpages#48 with a more general and customizable approach
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzupkoii committed Aug 11, 2024
1 parent aff2053 commit 4097d7e
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 16 deletions.
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ author:
youtube : # Username
zhihu : # URL

# Publication Category - The following the list of publication categories and their headings
publication_category:
books:
title: 'Books'
manuscripts:
title: 'Journal Articles'
conferences:
title: 'Conference Papers'

# Site Settings
teaser : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png"
Expand Down Expand Up @@ -152,6 +160,7 @@ exclude:
- "*.sublime-workspace"
- .asset-cache
- .bundle
- .github
- .jekyll-assets-cache
- .sass-cache
- assets/js/_main.js
Expand Down
36 changes: 36 additions & 0 deletions _pages/publications.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: archive
title: "Publications"
permalink: /publications/
author_profile: true
---

{% if site.author.googlescholar %}
<div class="wordwrap">You can also find my articles on <a href="{{site.author.googlescholar}}">my Google Scholar profile</a>.</div>
{% endif %}

{% include base_path %}

<!-- New style rendering if publication categories are defined -->
{% if site.publication_category %}
{% for category in site.publication_category %}
{% assign title_shown = false %}
{% for post in site.publications reversed %}
{% if post.category != category[0] %}
{% continue %}
{% endif %}
{% unless title_shown %}
<h2>{{ category[1].title }}</h2><hr />
{% assign title_shown = true %}
{% endunless %}
{% include archive-single.html %}
{% endfor %}
{% endfor %}
{% else %}
{% for post in site.publications reversed %}
{% include archive-single.html %}
{% endfor %}
{% endif %}



16 changes: 0 additions & 16 deletions _pages/publications.md

This file was deleted.

1 change: 1 addition & 0 deletions _publications/2009-10-01-paper-title-number-1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Paper Title Number 1"
collection: publications
category: manuscripts
permalink: /publication/2009-10-01-paper-title-number-1
excerpt: 'This paper is about the number 1. The number 2 is left for future work.'
date: 2009-10-01
Expand Down
1 change: 1 addition & 0 deletions _publications/2010-10-01-paper-title-number-2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Paper Title Number 2"
collection: publications
category: manuscripts
permalink: /publication/2010-10-01-paper-title-number-2
excerpt: 'This paper is about the number 2. The number 3 is left for future work.'
date: 2010-10-01
Expand Down
1 change: 1 addition & 0 deletions _publications/2015-10-01-paper-title-number-3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Paper Title Number 3"
collection: publications
category: manuscripts
permalink: /publication/2015-10-01-paper-title-number-3
excerpt: 'This paper is about the number 3. The number 4 is left for future work.'
date: 2015-10-01
Expand Down
1 change: 1 addition & 0 deletions _publications/2024-02-17-paper-title-number-4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Paper Title Number 4"
collection: publications
category: conferences
permalink: /publication/2024-02-17-paper-title-number-4
excerpt: 'This paper is about fixing template issue #693.'
date: 2024-02-17
Expand Down

0 comments on commit 4097d7e

Please sign in to comment.