Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegurado committed Mar 19, 2024
1 parent 007f4b2 commit 8095a71
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
uses: michijs/.github/.github/actions/set-git-config-github-actions@main

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 20
node-version: latest

- name: Fetch npm Versions
id: fetch_versions
Expand Down
1 change: 0 additions & 1 deletion _drafts/test.md

This file was deleted.

18 changes: 11 additions & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@

<body>
<main>

{% for page in site.pages %}
{% if page.url contains "html" or page.url == "/" %}
<li>
<a href="{{ page.url }}">{{ page.title | default: "Latest" }}</a>
</li>
<select onchange="location.href = this.value">
{% for currentPage in site.pages %}
{% if currentPage.url == "/" %}
<option value="{{ currentPage.url }}" {% if page.url==currentPage.url %} selected {% endif %}>Latest</option>
{% endif %}
{% if currentPage.url contains "html" %}
<option value="{{ currentPage.url }}" {% if page.url==currentPage.url %} selected {% endif %}>{{ currentPage.name
| remove: ".html" }}</option>
{% endif %}
{% endfor %}
{% endfor %}
</select>

{{ content }}
</main>
</body>
Expand Down
2 changes: 0 additions & 2 deletions test.md

This file was deleted.

0 comments on commit 8095a71

Please sign in to comment.