Skip to content

Commit 45d9508

Browse files
committed
Merge pull request #20 from tonyfast/gh-pages
Create references.html
2 parents f452cf0 + 81091c4 commit 45d9508

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_includes/references.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% if page.references %}
2+
{% capture reference_block %}
3+
## References
4+
5+
{% for refs in page.references %}
6+
{% if refs[1] %} <!-- is object -->
7+
1. [{{refs[1]}}]({{refs[1]}})
8+
{% else %} <!-- is array -->
9+
* [{{refs}}]({{refs}})
10+
{% endif %}
11+
{% endfor %}
12+
{% endcapture %}
13+
14+
{{ reference_block | markdownify }}
15+
{% endif %}

0 commit comments

Comments
 (0)