diff --git a/Gemfile b/Gemfile index 0bf06a373fb5805653b007eeba3eace2fb209265..b6fa0abf1521638a6260bf1c9b9004a7efdaf3d0 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gem 'rake' gem 'jekyll' group :default, :jekyll_plugins do - gem 'jekyll-scholar', :git => 'https://github.com/edgemaster/jekyll-scholar.git', :branch => 'master' + gem 'jekyll-scholar', :git => 'https://github.com/inukshuk/jekyll-scholar.git', :ref => '4ef567dc730e373a9b000c97f210b899cd155e6a' end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index 69e28e1be975d736dbaa06b49c96623c761e4c20..e475622e30acd8f50fd5c639e24fa096cb115497 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ GIT - remote: https://github.com/edgemaster/jekyll-scholar.git - revision: e0d4f7a10964f1b878c833fb67b570330d14bca6 - branch: master + remote: https://github.com/inukshuk/jekyll-scholar.git + revision: 4ef567dc730e373a9b000c97f210b899cd155e6a + ref: 4ef567dc730e373a9b000c97f210b899cd155e6a specs: jekyll-scholar (5.6.0) bibtex-ruby (~> 4.0, >= 4.0.13) @@ -19,7 +19,7 @@ GEM thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.4.0) - bibtex-ruby (4.1.2) + bibtex-ruby (4.2.0) latex-decode (~> 0.0) citeproc (1.0.2) namae (~> 0.8) diff --git a/_config.yml b/_config.yml index e97a94690dbc655c2f8549462cd17964d486a404..dc65b39f8cdff153cca8b30764cf7f508aedf6f0 100644 --- a/_config.yml +++ b/_config.yml @@ -43,6 +43,7 @@ scholar: details_layout: publication.html use_raw_bibtex_entry: true + bibtex_skip_fields: ['month_numeric'] sort_by: year order: descending diff --git a/_includes/publication-authors.html b/_includes/publication-authors.html index fbad0b717915f3578061835ab3775b063980ced1..15651131ec239860818f73c5748d5107f750666c 100644 --- a/_includes/publication-authors.html +++ b/_includes/publication-authors.html @@ -1 +1,6 @@ -{{ entry.author }} +<ul class="list-inline"> +{% for author in include.authors %} +{% assign matched = site.people | where:"lastname",author.last | first %} +<li class="list-inline-item">{% if matched %}<a href="{{ matched.url }}">{% endif %}{{ author.first }} {{ author.last }}{% if matched %}</a>{% endif %}</li> +{% endfor %} +</ul> diff --git a/_layouts/publication-entry.html b/_layouts/publication-entry.html index 021a912fceeb7a9546acff64fc931ebd50796dff..fdea805503152473c6d507396bc5672bb62e47da 100644 --- a/_layouts/publication-entry.html +++ b/_layouts/publication-entry.html @@ -3,6 +3,6 @@ {% if link %}<a class="btn btn-secondary" role="button" href="{{ link }}"><i class="fa fa-file-text-o"></i></a>{% endif %} </div> <p class="pub-title h4"><a href="{{ details }}">{{ entry.title }}</a></p> -<p class="pub-authors">{% include publication-authors.html %}</p> +<p class="pub-authors">{% include publication-authors.html authors=entry.author_array %}</p> <p class="pub-venue">{% include publication-venue.html %}</p> diff --git a/_layouts/publication.html b/_layouts/publication.html index d2e7d2b6c083dd85b6e1bae93005840c241b75aa..d9d9ddbd4135e854e877353a1032b8b984b17b11 100644 --- a/_layouts/publication.html +++ b/_layouts/publication.html @@ -22,7 +22,7 @@ menu: false </div> <div class="col-sm-8"> <h3>Authors</h3> - <p>{{ page.entry.author }}</p> + <p>{% include publication-authors.html authors=page.entry.author_array %}</p> {% if page.entry.abstract %} <h3>Abstract</h3> diff --git a/publications/index.md b/publications/index.html similarity index 100% rename from publications/index.md rename to publications/index.html