mirror of
https://github.com/picocms/pico-theme.git
synced 2025-08-25 01:26:01 +02:00
Compare commits
32 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b648e937f0 | ||
|
f322a0bbdd | ||
|
da7abf9f0d | ||
|
64b82faaf4 | ||
|
a78f7b7cef | ||
|
7bbcd913e6 | ||
|
ca9360aa22 | ||
|
65e6f70dbd | ||
|
b5c3371f33 | ||
|
ec00ed0422 | ||
|
7eabd4cfb9 | ||
|
780b9484f1 | ||
|
cb01f6c60c | ||
|
2abf36b662 | ||
|
3e9a2a2b27 | ||
|
a427986d96 | ||
|
d4ec8df283 | ||
|
ca41b7b91a | ||
|
6821662127 | ||
|
e385f2ba0e | ||
|
8b606f6df7 | ||
|
9018a67f89 | ||
|
9154fcaeb7 | ||
|
622396045d | ||
|
52af9b5fe3 | ||
|
85fe74b8db | ||
|
9f2a61a315 | ||
|
6b328f96b0 | ||
|
6b7f12db5e | ||
|
a79b9875b1 | ||
|
e4ea1fff62 | ||
|
fdb4a2e693 |
33
.github/workflows/stale.yml
vendored
Normal file
33
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Mark or close stale issues and PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 */6 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
name: Mark or close stale issues and PRs
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
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
|
48
CHANGELOG.md
48
CHANGELOG.md
@@ -8,6 +8,54 @@ 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 3.0.0-beta.1
|
||||||
|
Released: -
|
||||||
|
|
||||||
|
```
|
||||||
|
* [New] Update to API version 4 (no changes necessary)
|
||||||
|
* [Changed] Include non-hidden pages without a title in the navigation menu;
|
||||||
|
use the page ID as fallback for the missing page title
|
||||||
|
* [Changed] Don't justify text contents by default
|
||||||
|
* [Changed] Update syntax to Twig 3.3
|
||||||
|
* [Changed] Update credits in theme footer
|
||||||
|
```
|
||||||
|
|
||||||
|
### Version 3.0.0-alpha.2
|
||||||
|
Released: 2020-12-24
|
||||||
|
|
||||||
|
```
|
||||||
|
* [Changed] Merge all fixes of Pico v2.1.2 to v2.1.4
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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 3.0.0-alpha.1
|
||||||
|
Released: 2020-03-29
|
||||||
|
|
||||||
|
```
|
||||||
|
* [New] Kick-start development of Pico 3.0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Version 2.1.1
|
||||||
|
Released: 2019-12-31
|
||||||
|
|
||||||
|
No changes
|
||||||
|
|
||||||
### Version 2.1.0
|
### Version 2.1.0
|
||||||
Released: 2019-11-24
|
Released: 2019-11-24
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ Pico Default Theme
|
|||||||
|
|
||||||
This is the repository of Pico's official default theme.
|
This is the repository of Pico's official default theme.
|
||||||
|
|
||||||
Pico is a stupidly simple, blazing fast, flat file CMS. See http://picocms.org/ for more info.
|
Pico is a stupidly simple, blazing fast, flat file CMS. See https://picocms.org/ for more info.
|
||||||
|
|
||||||
Please refer to [`picocms/Pico`](https://github.com/picocms/Pico) to get info about how to contribute or getting help.
|
Please refer to [`picocms/Pico`](https://github.com/picocms/Pico) to get info about how to contribute or getting help.
|
||||||
|
|
||||||
@@ -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 Freenode IRC Webchat
|
- title: Join us on Libera.Chat
|
||||||
url: https://webchat.freenode.net/?channels=%23picocms
|
url: https://web.libera.chat/#picocms
|
||||||
icon: chat
|
icon: chat
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
"type": "pico-theme",
|
"type": "pico-theme",
|
||||||
"description": "This is Pico's official default theme. Pico is a stupidly simple, blazing fast, flat file CMS.",
|
"description": "This is Pico's official default theme. Pico is a stupidly simple, blazing fast, flat file CMS.",
|
||||||
"keywords": [ "pico", "picocms", "picocms-theme", "pico-theme", "default-theme" ],
|
"keywords": [ "pico", "picocms", "picocms-theme", "pico-theme", "default-theme" ],
|
||||||
"homepage": "http://picocms.org/",
|
"homepage": "https://picocms.org/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "The Pico Community",
|
"name": "The Pico Community",
|
||||||
"homepage": "http://picocms.org/"
|
"homepage": "https://picocms.org/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Contributors",
|
"name": "Contributors",
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"docs": "http://picocms.org/themes/default/",
|
"docs": "https://picocms.org/themes/default/",
|
||||||
"issues": "https://github.com/picocms/pico-theme/issues",
|
"issues": "https://github.com/picocms/pico-theme/issues",
|
||||||
"source": "https://github.com/picocms/pico-theme"
|
"source": "https://github.com/picocms/pico-theme"
|
||||||
},
|
},
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
"extra": {
|
"extra": {
|
||||||
"installer-name": "default",
|
"installer-name": "default",
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.0.x-dev",
|
"dev-master": "2.1.x-dev",
|
||||||
"dev-pico-2.1": "2.1.x-dev"
|
"dev-pico-3.0": "3.0.x-dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
*
|
*
|
||||||
* @author Gilbert Pellegrom
|
* @author Gilbert Pellegrom
|
||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link https://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license https://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 2.1
|
* @version 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -185,7 +185,6 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p, td, th, li, dd {
|
p, td, th, li, dd {
|
||||||
text-align: justify;
|
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,7 @@ Icon fonts generator
|
|||||||
|
|
||||||
Author: Vitaly Puzrin
|
Author: Vitaly Puzrin
|
||||||
License: The MIT License <https://github.com/fontello/fontello/blob/master/LICENSE>
|
License: The MIT License <https://github.com/fontello/fontello/blob/master/LICENSE>
|
||||||
Homepage: http://fontello.com/
|
Homepage: https://fontello.com/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ Font license info
|
|||||||
Copyright (C) 2016 by Dave Gandy
|
Copyright (C) 2016 by Dave Gandy
|
||||||
|
|
||||||
Author: Dave Gandy
|
Author: Dave Gandy
|
||||||
License: SIL OFL 1.1 <http://scripts.sil.org/OFL>
|
License: SIL OFL 1.1 <https://scripts.sil.org/OFL>
|
||||||
Homepage: http://fortawesome.github.com/Font-Awesome/
|
Homepage: https://fontawesome.com/
|
||||||
|
|
||||||
Icons: chat, github-circled ("octocat"), menu, dollar
|
Icons: chat, github-circled ("octocat"), menu, dollar
|
||||||
|
13
index.twig
13
index.twig
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
|
|
||||||
<title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
|
<title>{{ meta.title ? meta.title ~ " | " }}{{ site_title }}</title>
|
||||||
{% if meta.description %}
|
{% if meta.description %}
|
||||||
<meta name="description" content="{{ meta.description|striptags }}" />
|
<meta name="description" content="{{ meta.description|striptags }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -43,10 +43,12 @@
|
|||||||
</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 page.title and not page.hidden %}
|
{% for page in pages(depthOffset=-1) %}
|
||||||
|
{% if 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 }}</a>
|
<a href="{{ page.url }}">{{ page.title ?: page.id }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,8 +72,9 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<a href="http://picocms.org/">Pico</a> was made by <a href="http://gilbert.pellegrom.me">Gilbert Pellegrom</a>
|
<a href="https://picocms.org/">Pico</a> was made by <a href="https://gilbitron.me/">Gilbert Pellegrom</a>
|
||||||
and is maintained by <a href="https://github.com/picocms/Pico/graphs/contributors">The Pico Community</a>.
|
and is brought to you by <a href="https://www.daniel-rudolf.de">Daniel Rudolf</a> and
|
||||||
|
<a href="https://github.com/picocms/Pico/graphs/contributors">The Pico Community</a>.
|
||||||
Released under the <a href="https://github.com/picocms/Pico/blob/master/LICENSE.md">MIT license</a>.
|
Released under the <a href="https://github.com/picocms/Pico/blob/master/LICENSE.md">MIT license</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
22
js/pico.js
22
js/pico.js
@@ -4,9 +4,9 @@
|
|||||||
* Pico is a stupidly simple, blazing fast, flat file CMS.
|
* Pico is a stupidly simple, blazing fast, flat file CMS.
|
||||||
*
|
*
|
||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link https://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license https://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 2.1
|
* @version 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function main()
|
function main()
|
||||||
@@ -28,10 +28,12 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,8 +51,9 @@ 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);
|
||||||
@@ -61,10 +64,11 @@ 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();
|
||||||
|
@@ -4,9 +4,9 @@
|
|||||||
* Pico is a stupidly simple, blazing fast, flat file CMS.
|
* Pico is a stupidly simple, blazing fast, flat file CMS.
|
||||||
*
|
*
|
||||||
* @author Daniel Rudolf
|
* @author Daniel Rudolf
|
||||||
* @link http://picocms.org
|
* @link https://picocms.org
|
||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license https://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 2.1
|
* @version 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
utils = {};
|
utils = {};
|
||||||
|
Reference in New Issue
Block a user