-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathall.yml.html
32 lines (24 loc) · 985 Bytes
/
all.yml.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
permalink: /all.yml
---
{%- assign newline = site.newline -%}
{%- assign output = "" -%}
{%- for file in site.static_files -%}
{%- if file.extname == ".yml" -%}
{%- capture _content -%}
{% include_relative {{ file.path }} %}
{%- endcapture -%}
{%- assign year = file.path | remove_first: "/" | slice: 0, 4 | append: ":" -%}
{%- assign output = output | append: year | append: newline -%}
{%- assign content = _content | split: newline -%}
{%- for line in content -%}
{%- assign first_char = line | upcase | slice: 0 -%}
{%- if first_char >= "A" and first_char <= "Z" -%}
{%- assign output = output | append: " - " | append: line | append: newline -%}
{%- else -%}
{%- assign output = output | append: " " | append: line | append: newline -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
{{ output }}