-
Notifications
You must be signed in to change notification settings - Fork 24
/
acronyms.html
26 lines (24 loc) · 895 Bytes
/
acronyms.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
---
layout: page
title: "List of Acronyms"
---
<p>
This page contains alphabetically-sorted links to all terms with well-known acronyms.
</p>
<ul>
{% assign pages = site.pages | where_exp:"item","item.url contains 'terms/'" | sort: 'title' %}
{% capture acronym_list_str %}
{% for page in pages %}
{% assign split_title = page.title | split: '(' %}
{% if split_title[1] %}
{% assign acronym = split_title[1] | split: ')' %}
[{{ acronym[0] | replace: " ", "###" }}###-###{{ page.title | replace: " ", "###" }}]({{ page.url }})(((
{% endif %}
{% endfor %}
{% endcapture %}
{% assign acronym_list = acronym_list_str | strip_newlines | remove: " " | split: "(((" %}
{% assign sorted_acronym_list = acronym_list | sort %}
{% for listed_acronym in sorted_acronym_list %}
<li>{{ listed_acronym | replace: "###", " " | markdownify }}</li>
{% endfor %}
</ul>