mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
cleanup yaml comment
This commit is contained in:
parent
685f1b4de2
commit
73def230ea
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
comment: \
|
comment: \
|
||||||
because the for loop is being filtered by layout, the normal rindex0 check
|
because the for loop is being filtered by layout, the normal rindex0 check
|
||||||
for the trailing comma doesn't work. Count the number of licenses and manually
|
for the trailing comma doesn't work. Count the number of licenses and manually
|
||||||
increment an index to see if we're on the true last iteration.
|
increment an index to see if we're on the true last iteration.
|
||||||
---
|
---
|
||||||
{% assign count = 0 %}{% for page in site.pages %}{% if page.layout == "license" %}{% assign count = count | plus: 1 %}{% endif %}{% endfor %}{% assign i = 0 %}
|
{% assign count = 0 %}{% for page in site.pages %}{% if page.layout == "license" %}{% assign count = count | plus: 1 %}{% endif %}{% endfor %}{% assign i = 0 %}
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user