Skip to content

Commit

Permalink
add citation widget
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Sep 25, 2024
1 parent 350fc9d commit 5dd8515
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
list = "right" # Configure layout for list pages
single = true # Configure layout for single pages
# Enable widgets in given order
widgets = ["recent", "categories", "sidemenu", "taglist", "series"]
widgets = ["recent", "categories", "sidemenu", "taglist", "series", "citation"]

[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
Expand Down
9 changes: 9 additions & 0 deletions layouts/partials/widgets/citation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="widget-citation widget"></div>

<h4 class="widget__title">Cite dCache project</h4>
<div class="widget__content">
<b>dCache paper:</b><a href="https://zenodo.org/badge/latestdoi/9113580" rel="nofollow"><img src="../img/software-doi.svg" alt="Software DOI" data-canonical-src="../img/software-doi.svg"></a>
<p>
<b>dCache code:</b> <a href="https://doi.org/10.1051/epjconf/202125102010" rel="nofollow"><img src="../img/doi-paper.svg" alt="Paper DOI" data-canonical-src="../img/doi-paper.svg"></a>
</div>
</div>
20 changes: 20 additions & 0 deletions static/img/doi-paper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions static/img/software-doi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5dd8515

Please sign in to comment.