Skip to content

Commit

Permalink
remove .html; gh will still render
Browse files Browse the repository at this point in the history
  • Loading branch information
hparra committed Apr 7, 2024
1 parent 86a6d74 commit 890ef9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## wiki

wiki entries. opinionated.
my wiki. opinionated.

<ul>
{% assign pages = site.pages | where_exp: 'page', 'page.url contains "/wiki"' | sort: 'name' %}
{% for page in pages %}
<li>
<a href="{{ page.url }}">{{ page.name | remove: ".md" }}</a>
<a href="{{ page.url | remove: '.html' }}">{{ page.name | remove: ".md" }}</a>
</li>
{% endfor %}
</ul>
Expand All @@ -21,7 +21,7 @@ notes from books, articles, videos, etc. facts only.
{% assign pages = site.pages | where_exp: 'page', 'page.url contains "/notes"' | sort: 'name' %}
{% for page in pages %}
<li>
<a href="{{ page.url }}">{{ page.name | remove: ".md" }}</a>
<a href="{{ page.url | remove: '.html' }}">{{ page.name | remove: ".md" }}</a>
</li>
{% endfor %}
</ul>
Expand All @@ -34,7 +34,7 @@ personal anecdotes.
{% assign pages = site.pages | where_exp: 'page', 'page.url contains "/journal"' | sort: 'name' %}
{% for page in pages %}
<li>
<a href="{{ page.url }}">{{ page.name | remove: ".md" }}</a>
<a href="{{ page.url | remove: '.html' }}">{{ page.name | remove: ".md" }}</a>
</li>
{% endfor %}
</ul>
4 changes: 2 additions & 2 deletions wiki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Perhaps you may find some of them useful.
## index

<ul>
{% assign pages = site.pages | where_exp: 'page', 'page.url contains "/notes"' | sort: 'name' %}
{% assign pages = site.pages | where_exp: 'page', 'page.url contains "/wiki"' | sort: 'name' %}
{% for page in pages %}
<li>
<a href="{{ page.url }}">{{ page.name | remove: ".md" }}</a>
<a href="{{ page.url | remove: '.html' }}">{{ page.name | remove: ".md" }}</a>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 890ef9e

Please sign in to comment.