Skip to content

Commit 0f5bea5

Browse files
committed
liquid syntaxt
1 parent b6e8af7 commit 0f5bea5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

_layouts/bib.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
{% if entry.preprint %}
77
 
88
{% else %}
9-
{% if entry.year > 2024 %}
10-
<a href="https://github.com/computorg/{{ entry.repository }}"><img
11-
src="https://github.com/computorg/{{ entry.repository }}/actions/workflows/build.yml/badge.svg" /></a>
12-
{% else %}
13-
<a href="https://github.com/computorg/{{ entry.repository }}"><img
9+
{% assign year = entry.year | plus: 0 %}
10+
{% if year > 2024 %}
11+
<a href="https://github.com/computorg/{{ entry.repository }}"><img
12+
src="https://github.com/computorg/{{ entry.repository }}/actions/workflows/build.yml/badge.svg" /></a>
13+
{% else %}
14+
<a href="https://github.com/computorg/{{ entry.repository }}"><img
1415
src="https://github.com/computorg/{{ entry.repository }}/workflows/build/badge.svg" /></a>
15-
{% endif %}
16+
{% endif %}
1617
{% endif %}
1718
</div>
1819

0 commit comments

Comments
 (0)