{{ content }}
diff --git a/pico-theme.yml b/pico-theme.yml index 6b19ebe..fc65b28 100644 --- a/pico-theme.yml +++ b/pico-theme.yml @@ -1,6 +1,8 @@ api_version: 3 # Use Pico's latest API version for themes meta: # Register meta headers used by this theme + Logo: logo # The URL to your website's logo (value is passed to Pico's "url" Twig filter) + Tagline: tagline # Your website's tag line, shown right below your site title (supports Markdown) Social: social # A list of social icons that will be shown in your website's footer; # You must specify a "title", "url" and "icon" per entry From 06d26ef852d2e915cf5eaf47179a72db57547092 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 23 Nov 2019 19:21:10 +0100 Subject: [PATCH 19/24] Add some basic utility classes for typography and images --- css/style.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/css/style.css b/css/style.css index 46e0578..3fe40d3 100644 --- a/css/style.css +++ b/css/style.css @@ -224,6 +224,29 @@ hr { abbr { text-decoration: underline dotted; } +/*** UTILITIES ***/ + +.align-left { text-align: left; } +.align-center { text-align: center; } +.align-right { text-align: right; } +.align-justify { text-align: justify; } + +.image { display: block; margin: 0 auto; } +.image.xsmall { width: 20%; } +.image.small { width: 40%; } +.image.large { width: 60%; } +.image.xlarge { width: 80%; } +.image.float-left { float: left; margin: 1em 2em 1em 0; } +.image.float-right { float: right; margin: 1em 0 1em 2em; } +.image img { display: block; width: 100%; } + +@media (max-width: 767px) { + .image.xsmall { width: 60%; } + .image.small { width: 80%; } + .image.large, .image.xlarge { width: 100%; } + .image.float-left, .image.float-right { float: none; margin: 0 auto; } +} + /*** TABLES ***/ table { border-spacing: 0; } From 5912d2f204fbed141514084b524efd22a94e7390 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 23 Nov 2019 19:24:38 +0100 Subject: [PATCH 20/24] Update CHANGELOG.md --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d90747c..f0445c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,15 @@ Pico Default Theme Changelog refer to both the UPGRADE and NEWS sections of the docs for more details. +### Version 2.1.0 +Released: - + +``` +* [New] Add Pico's official logo and tagline +* [New] Add some utility classes for typography and images +* [Changed] Improve documentation of `pico-theme.yml` +``` + ### Version 2.1.0-beta.1 Released: 2019-11-03 From 8dee46917f0883a522aed96eb2c0b2497d15d89c Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 23 Nov 2019 19:29:47 +0100 Subject: [PATCH 21/24] README.md: Update screenshot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fd8c78..56bf903 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Please refer to [`picocms/Pico`](https://github.com/picocms/Pico) to get info ab Screenshot ---------- -![Pico Screenshot](https://picocms.github.io/screenshots/pico-20.png) +![Pico Screenshot](https://picocms.github.io/screenshots/pico-21.png) Install ------- From 0acb570731089790b09464ae5c7fce1c9ae75f91 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sun, 24 Nov 2019 22:18:58 +0100 Subject: [PATCH 22/24] Replace `pages._meta` syntax by `pages["_meta"]` to match Pico's docs --- index.twig | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/index.twig b/index.twig index 6163cdb..41d0055 100644 --- a/index.twig +++ b/index.twig @@ -7,7 +7,8 @@ {% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }} {% if meta.description %} - {% endif %}{% if meta.robots %} + {% endif %} + {% if meta.robots %} {% endif %} @@ -27,17 +28,17 @@ Toggle Menu - {% if pages._meta.meta.logo %} + {% if pages["_meta"].meta.logo %} {% endif %} -