diff --git a/_includes/selected_papers.html b/_includes/selected_papers.html index 97fbf1061a18..37c4dbac8d54 100644 --- a/_includes/selected_papers.html +++ b/_includes/selected_papers.html @@ -1,4 +1,4 @@
- {% bibliography -f {{ site.scholar.bibliography }} --group_by none --query @*[selected=true]* %} + {% bibliography --group_by none --query @*[selected=true]* %}
diff --git a/_layouts/page.html b/_layouts/page.html index f2fd877d6937..097da41b85c1 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -13,11 +13,10 @@

{{ page.title }}

{{ content }} - {%- if page.related_publications != null and page.related_publications.size > 0 -%} - {% assign publications = page.related_publications | replace: ", ", "," | split: "," | join: "|" %} + {%- if page.related_publications -%}

References

- {% bibliography -f {{ site.scholar.bibliography }} -q @*[key^={{ publications }}]* %} + {% bibliography --cited_in_order %}
{%- endif %} diff --git a/_layouts/post.html b/_layouts/post.html index 98b5797892d9..7330cb00a1eb 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -64,11 +64,10 @@

{{ page.title }}

- {%- if page.related_publications != null and page.related_publications.size > 0 -%} - {% assign publications = page.related_publications | replace: ", ", "," | split: "," | join: "|" %} + {%- if page.related_publications -%}

References

- {% bibliography -f {{ site.scholar.bibliography }} -q @*[key^={{ publications }}]* %} + {% bibliography --cited_in_order %}
{%- endif %} diff --git a/_pages/publications.md b/_pages/publications.md index 47729ac24c1b..2bb782aa579e 100644 --- a/_pages/publications.md +++ b/_pages/publications.md @@ -9,6 +9,6 @@ nav_order: 2
-{% bibliography -f {{ site.scholar.bibliography }} %} +{% bibliography %}
diff --git a/_posts/2023-07-12-post-bibliography.md b/_posts/2023-07-12-post-bibliography.md index f2b4a3ac8bc8..12f3a8727ff3 100644 --- a/_posts/2023-07-12-post-bibliography.md +++ b/_posts/2023-07-12-post-bibliography.md @@ -7,6 +7,15 @@ tags: formatting bib categories: sample-posts giscus_comments: true related_posts: false -related_publications: einstein1950meaning, einstein1905movement +related_publications: true --- -This post shows how to add bibliography to simple blog posts. If you would like something more academic, check the [distill style post]({% post_url 2018-12-22-distill %}). +This post shows how to add bibliography to simple blog posts. We support every citation style that [jekyll-scholar](https://github.com/inukshuk/jekyll-scholar) does. That means simple citation like {% cite einstein1950meaning %}, multiple citations like {% cite einstein1950meaning einstein1905movement %}, long references like {% reference einstein1905movement %} or also quotes: + +{% quote einstein1905electrodynamics %} +Lorem ipsum dolor sit amet, consectetur adipisicing elit, +sed do eiusmod tempor. + +Lorem ipsum dolor sit amet, consectetur adipisicing. +{% endquote %} + +If you would like something more academic, check the [distill style post]({% post_url 2018-12-22-distill %}). diff --git a/_projects/1_project.md b/_projects/1_project.md index f1c8b80b032e..d399816bd003 100644 --- a/_projects/1_project.md +++ b/_projects/1_project.md @@ -5,7 +5,7 @@ description: a project with a background image img: assets/img/12.jpg importance: 1 category: work -related_publications: einstein1956investigations, einstein1950meaning +related_publications: true --- Every project has a beautiful feature showcase page. @@ -44,8 +44,8 @@ To give your project a background in the portfolio page, just add the img tag to This image can also have a caption. It's like magic. -You can also put regular text between your rows of images. -Say you wanted to write a little bit about your project before you posted the rest of the images. +You can also put regular text between your rows of images, even citations {% cite einstein1950meaning %}. +Say you wanted to write a bit about your project before you posted the rest of the images. You describe how you toiled, sweated, *bled* for your project, and then... you reveal its glory in the next row of images.