Skip to content

Commit 9761702

Browse files
committed
Modifica
1 parent 2514bef commit 9761702

7 files changed

Lines changed: 90 additions & 111 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Deploy Jekyll (with plugins)
2+
3+
on:
4+
push:
5+
branches: [ main ] # cambia se usi un branch diverso
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: '3.2'
25+
bundler-cache: true
26+
- run: bundle install --jobs 4 --retry 3
27+
- run: bundle exec jekyll build --trace
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: ./_site
31+
deploy:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
steps:
38+
- id: deployment
39+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ group :jekyll_plugins do
1212
gem 'jekyll-link-attributes'
1313
gem 'jekyll-minifier'
1414
gem 'jekyll-paginate-v2'
15-
gem 'jekyll-scholar', group: :jekyll_plugins
15+
gem 'jekyll-scholar'
1616
gem 'jekyll-sitemap', group: :jekyll_plugins
1717
gem 'jekyll-seo-tag', group: :jekyll_plugins
1818
gem 'jekyll-toc'
1919
gem 'jekyll-twitter-plugin'
2020
gem 'jemoji'
2121
gem 'mini_racer'
2222
gem 'unicode_utils'
23-
gem 'webrick'
23+
gem 'webrick', '~> 1.8'
2424
end
2525
group :other_plugins do
2626
gem 'feedjira'

_bibliography/papers.bib

Lines changed: 0 additions & 84 deletions
This file was deleted.

_config.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -260,32 +260,16 @@ display_categories: ['blockquotes'] # these categories will be displayed on the
260260
# -----------------------------------------------------------------------------
261261

262262
scholar:
263-
264-
last_name: [Chiocca]
265-
first_name: [Andrea]
266-
267-
style: apa
263+
source: _bibliography
264+
bibliography: PersonalPub # <-- senza .bib
265+
style: ieee # o apa/elsevier-vancouver ecc. (puoi cambiare)
268266
locale: en
269-
270-
source: /_bibliography/
271-
bibliography: PersonalPub.bib
272-
bibliography_template: bib
273-
# Note: if you have latex math in your bibtex, the latex filter
274-
# preprocessing may conflict with MathJAX if the latter is enabled.
275-
# See https://github.com/alshedivat/al-folio/issues/357.
276-
bibtex_filters: [latex, smallcaps, superscript]
277-
267+
sort_by: year
268+
order: descending
269+
bibliography_list_tag: ol # lista ordinata (default), cambia se vuoi
278270
replace_strings: true
279271
join_strings: true
280272

281-
details_dir: bibliography
282-
details_layout: bibtex.html
283-
details_link: Details
284-
285-
query: "@*"
286-
group_by: year
287-
group_order: descending
288-
289273
# Display different badges withs stats for your publications
290274
enable_publication_badges:
291275
altmetric: true # Altmetric badge (https://www.altmetric.com/products/altmetric-badges/)

_includes/selected_papers.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11

2-
2+
<div class="publications">
3+
{% bibliography --group_by none --query @*[selected=true]* %}
4+
</div>

_layouts/page.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,20 @@ <h1 class="post-title">{{ page.title }}</h1>
1313
{{ content }}
1414
</article>
1515

16+
{%- if page.related_publications != null and page.related_publications.size > 0 -%}
17+
{%- assign keys = page.related_publications | replace: ", ", "," | split: "," -%}
18+
{%- capture or_query -%}
19+
{%- for k in keys -%}
20+
key={{ k | strip }}{% unless forloop.last %} or {% endunless %}
21+
{%- endfor -%}
22+
{%- endcapture -%}
23+
<h2>References</h2>
24+
<div class="publications">
25+
{% bibliography --group_by none --query @*[{{ or_query }}]* %}
26+
</div>
27+
{%- endif -%}
1628

29+
{%- if site.giscus and page.giscus_comments -%}
30+
{% include giscus.html %}
31+
{%- endif -%}
1732
</div>

_layouts/post.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ <h1 class="post-title">{{ page.title }}</h1>
3939
</p>
4040
</header>
4141

42-
4342
<article class="post-content">
4443
{% if page.toc and page.toc.beginning %}
4544
<div id="table-of-contents">
@@ -52,6 +51,30 @@ <h1 class="post-title">{{ page.title }}</h1>
5251
</div>
5352
</article>
5453

55-
54+
{%- if page.related_publications != null and page.related_publications.size > 0 -%}
55+
{%- assign keys = page.related_publications | replace: ", ", "," | split: "," -%}
56+
{%- capture or_query -%}
57+
{%- for k in keys -%}
58+
key={{ k | strip }}{% unless forloop.last %} or {% endunless %}
59+
{%- endfor -%}
60+
{%- endcapture -%}
61+
<h2>References</h2>
62+
<div class="publications">
63+
{% bibliography --group_by none --query @*[{{ or_query }}]* %}
64+
</div>
65+
{%- endif -%}
66+
67+
{%- if site.related_blog_posts.enabled -%}
68+
{%- if page.related_posts == null or page.related_posts -%}
69+
{% include related_posts.html %}
70+
{%- endif -%}
71+
{%- endif -%}
72+
73+
{%- if site.disqus_shortname and page.disqus_comments -%}
74+
{% include disqus.html %}
75+
{%- endif -%}
76+
{%- if site.giscus and page.giscus_comments -%}
77+
{% include giscus.html %}
78+
{%- endif -%}
5679

5780
</div>

0 commit comments

Comments
 (0)