Skip to content

Commit

Permalink
Use include for often-repeated decoration Liquid logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-p-randall committed May 3, 2024
1 parent 2811f6d commit d55aed6
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 289 deletions.
2 changes: 1 addition & 1 deletion _includes/wikifooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ul style="list-style-type: none; margin: 1em;">
<li>
<!-- <i class="ai ai-open-access" aria-hidden="true"></i><span class="screen-reader-text">open access unlocked icon</span> -->
:unlock: = open access</li>
:rocket: = open access</li>
<li>:closed_lock_with_key: = paywalled</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/note.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<h2 id="reading-details">Details</h2>
<p>{% if page.reading-articles %} :page_facing_up: "{{ page.title }}"<br />{% endif %}
{% if page.reading-books %} :book: <strong>{{ page.title }}</strong><br />{% endif %}
{% if page.access == "oa" %}Link: <a href="{{ page.work_link }}">{{ page.work_link_text }}</a> :unlock:<br />{% endif %}
{% if page.access == "oa" %}Link: <a href="{{ page.work_link }}">{{ page.work_link_text }}</a> :rocket:<br />{% endif %}
{% if page.access == "paywalled" %}Link: <a href="{{ page.work_link }}">{{ page.work_link_text }}</a> :closed_lock_with_key:<br />{% endif %}
{% if page.access != "paywalled" and page.access !="oa" %}Link: <a href="{{ page.work_link }}">{{ page.work_link_text }}</a><br />{% endif %}
By: {{ page.work_author }}<br />
Expand Down
16 changes: 2 additions & 14 deletions _notes/ADHD-tech/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in adhd-tech_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if adhd-tech_notes_all.size > 0 %}
<ul>
{% for item in adhd-tech_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/ADHD/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in adhd_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if adhd_notes_all.size > 0 %}
<ul>
{% for item in adhd_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Accessibility/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in accessibility_notes_pinned %}
<li>
<a href="{{ item.url }}">{% if item.pinned %}📌{% endif %}{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -28,13 +22,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if accessibility_notes_all.size > 0 %}
<ul>
{% for item in accessibility_notes_all %}
<li>{% if item.pinned %}📌{% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Keywords/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ <h2>All {{page.title}} folders</h2>
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in keywords_notes_pinned %}
<li>
<a href="{{ item.url }}">{% if item.pinned %}📌{% endif %}{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -62,13 +56,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if keywords_notes_all.size > 0 %}
<ul>
{% for item in keywords_notes_all %}
<li>{% if item.pinned %}📌{% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
8 changes: 1 addition & 7 deletions _notes/Listening/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ <h2>All {{page.title}} folders</h2>
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in listening_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Note-taking/Approaches/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in approaches_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if approaches_notes_all.size > 0 %}
<ul>
{% for item in approaches_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Note-taking/Dendron/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in dendron_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if dendron_notes_all.size > 0 %}
<ul>
{% for item in dendron_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Note-taking/Obsidian/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in obsidian_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if obsidian_notes_all.size > 0 %}
<ul>
{% for item in obsidian_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Note-taking/Zotero/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in zotero_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if zotero_notes_all.size > 0 %}
<ul>
{% for item in zotero_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Note-taking/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ <h2>TESTING</h2>
<h2 id="pinned">Pinned {{page.title}} notes:</h2>
<ul>
{% for item in note-taking_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -86,13 +80,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if note-taking_notes_all.size > 0 %}
<ul>
{% for item in note-taking_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Pedagogy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in pedagogy_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All {{page.title}} items</h2>
{% if pedagogy_notes_all.size > 0 %}
<ul>
{% for item in pedagogy_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Reading/Articles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in reading-articles_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -26,13 +20,7 @@ <h2 id="all">All my notes on articles I've read</h2>
{% if reading-articles_notes_all.size > 0 %}
<ul>
{% for item in reading-articles_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
16 changes: 2 additions & 14 deletions _notes/Reading/Books/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
<h2 id="pinned">Pinned {{page.title}} notes</h2>
<ul>
{% for item in reading-books_notes_pinned %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% endunless %}
Expand All @@ -27,13 +21,7 @@ <h2 id="all">All my notes on books</h2>
{% if reading-books_notes_all.size > 0 %}
<ul>
{% for item in reading-books_notes_all %}
<li>{% if item.pinned %}📌 {% endif %}
<a href="{{ item.url }}">{{ item.title }}
{% if item.status == ":seedling:" %} :seedling:{% endif %}
{% if item.status == ":herb:" %} :herb:{% endif %}
{% if item.status == ":evergreen_tree:" %} :evergreen_tree:{% endif %}
</a>
</li>
{% include item-list-link.html %}
{% endfor %}
</ul>
{% else %}
Expand Down
Loading

0 comments on commit d55aed6

Please sign in to comment.