Compare commits
No commits in common. "7eabd4cfb9757a8f3b852392fdbff16cf4158754" and "52af9b5fe30acdf022b432ed84e035f14962b7e5" have entirely different histories.
7eabd4cfb9
...
52af9b5fe3
28
.github/workflows/stale.yml
vendored
28
.github/workflows/stale.yml
vendored
@ -1,28 +0,0 @@
|
|||||||
name: "Mark or close stale issues and PRs"
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 12 * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stale:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/stale@v3
|
|
||||||
with:
|
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
days-before-stale: 7
|
|
||||||
days-before-close: 2
|
|
||||||
stale-issue-message: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed in two days if no further activity
|
|
||||||
occurs. Thank you for your contributions! :+1:
|
|
||||||
stale-pr-message: >
|
|
||||||
This pull request has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed in two days if no further activity
|
|
||||||
occurs. Thank you for your contributions! :+1:
|
|
||||||
stale-pr-label: "info: Stale"
|
|
||||||
stale-issue-label: "info: Stale"
|
|
||||||
exempt-issue-labels: "type: Bug,type: Enhancement,type: Feature,type: Idea,type: Release,info: Pinned"
|
|
||||||
exempt-pr-labels: "type: Bug,type: Enhancement,type: Feature,type: Idea,type: Release,info: Pinned"
|
|
||||||
remove-stale-when-updated: true
|
|
||||||
|
|
17
CHANGELOG.md
17
CHANGELOG.md
@ -8,23 +8,6 @@ Pico Default Theme Changelog
|
|||||||
refer to both the UPGRADE and NEWS sections of the docs for more
|
refer to both the UPGRADE and NEWS sections of the docs for more
|
||||||
details.
|
details.
|
||||||
|
|
||||||
### Version 2.1.4
|
|
||||||
Released: 2020-08-29
|
|
||||||
|
|
||||||
```
|
|
||||||
* [Changed] Don't setup nav toggle JavaScript when there's no menu
|
|
||||||
```
|
|
||||||
|
|
||||||
### Version 2.1.3
|
|
||||||
Released: 2020-07-10
|
|
||||||
|
|
||||||
No changes
|
|
||||||
|
|
||||||
### Version 2.1.2
|
|
||||||
Released: 2020-04-10
|
|
||||||
|
|
||||||
No changes
|
|
||||||
|
|
||||||
### Version 2.1.1
|
### Version 2.1.1
|
||||||
Released: 2019-12-31
|
Released: 2019-12-31
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ Social:
|
|||||||
- title: Visit us on GitHub
|
- title: Visit us on GitHub
|
||||||
url: https://github.com/picocms/Pico
|
url: https://github.com/picocms/Pico
|
||||||
icon: octocat
|
icon: octocat
|
||||||
- title: Join us on Libera.Chat
|
- title: Join us on Freenode IRC Webchat
|
||||||
url: https://web.libera.chat/#picocms
|
url: https://webchat.freenode.net/?channels=%23picocms
|
||||||
icon: chat
|
icon: chat
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
@ -43,9 +43,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="nav" role="navigation" tabindex="-1">
|
<div id="nav" role="navigation" tabindex="-1">
|
||||||
<ul>
|
<ul>
|
||||||
{% for page in pages(depthOffset=-1) if not page.hidden %}
|
{% for page in pages(depthOffset=-1) if page.title and not page.hidden %}
|
||||||
<li{% if page.id == current_page.id %} class="active"{% endif %}>
|
<li{% if page.id == current_page.id %} class="active"{% endif %}>
|
||||||
<a href="{{ page.url }}">{{ page.title ?: page.id }}</a>
|
<a href="{{ page.url }}">{{ page.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
16
js/pico.js
16
js/pico.js
@ -28,12 +28,10 @@ function main()
|
|||||||
|
|
||||||
// responsive menu
|
// responsive menu
|
||||||
var menu = document.getElementById('nav'),
|
var menu = document.getElementById('nav'),
|
||||||
menuToggle = document.getElementById('nav-toggle');
|
menuToggle = document.getElementById('nav-toggle'),
|
||||||
|
toggleMenuEvent = function (event) {
|
||||||
if (menu && menuToggle) {
|
|
||||||
function toggleMenuEvent(event) {
|
|
||||||
if (event.type === 'keydown') {
|
if (event.type === 'keydown') {
|
||||||
if ((event.keyCode !== 13) && (event.keyCode !== 32)) {
|
if ((event.keyCode != 13) && (event.keyCode != 32)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -51,9 +49,8 @@ function main()
|
|||||||
menuToggle.setAttribute('aria-expanded', 'false');
|
menuToggle.setAttribute('aria-expanded', 'false');
|
||||||
utils.slideUp(menu);
|
utils.slideUp(menu);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
onResizeEvent = function () {
|
||||||
function onResizeEvent() {
|
|
||||||
if (utils.isElementVisible(menuToggle)) {
|
if (utils.isElementVisible(menuToggle)) {
|
||||||
menu.className = 'hidden';
|
menu.className = 'hidden';
|
||||||
menuToggle.addEventListener('click', toggleMenuEvent);
|
menuToggle.addEventListener('click', toggleMenuEvent);
|
||||||
@ -64,11 +61,10 @@ function main()
|
|||||||
menuToggle.removeEventListener('click', toggleMenuEvent);
|
menuToggle.removeEventListener('click', toggleMenuEvent);
|
||||||
menuToggle.removeEventListener('keydown', toggleMenuEvent);
|
menuToggle.removeEventListener('keydown', toggleMenuEvent);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
window.addEventListener('resize', onResizeEvent);
|
window.addEventListener('resize', onResizeEvent);
|
||||||
onResizeEvent();
|
onResizeEvent();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user