From d86932ad935e5e50de05c4c7125a5930b1862c1d Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Mon, 22 May 2023 23:35:14 -0700
Subject: Update Readme, Examples, Screenshot
---
content/overview-abridge.md | 46 +++++++++++++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 4 deletions(-)
(limited to 'content/overview-abridge.md')
diff --git a/content/overview-abridge.md b/content/overview-abridge.md
index 93e740b..f68ef2f 100644
--- a/content/overview-abridge.md
+++ b/content/overview-abridge.md
@@ -16,11 +16,49 @@ You can then edit or comment out the values in this file as necessary.
You should also uncomment out the line #theme = "abridge" in your root zola config.toml file. This tells your root zola site to use the abridge theme in the themes folder.
-You can set the number of items that appear on the home page by editing `themes\abridge\content\_index.md` file and adjusting `paginate_by = 5`
+## Pagination
-You can set the overal page width by editing `themes\abridge\sass\_variables.scss` file, and adjusting these two lines:
+You can set the number of items that appear on the home page by editing `content\_index.md` file and adjusting `paginate_by = 3`
+
+## Sass Overrides
+
+Abridge SCSS variables can be overrided by editing `sass\abridge.scss` file in your project's root sass folder.
+
+### Page Width
+
+```scss
+$mw:75%,// max-width
+```
+
+### Abridge Theme Modes
```scss
-$mw:50% !default;// max-width
-$mb:1200px !default;// value at which to switch from fluid layout to using max-width
+$abridgeMode: "switcher",//valid values: switcher, auto, dark, light
```
+
+### Colors and Styles
+
+You can specify which color template you want to use as a base:
+```scss
+$color: "orange",// color template to use/override: orange, blue, blueshade
+```
+
+Then override individual colors as needed:
+```scss
+/// Dark Colors
+$f1d: #ccc,// Font Color Primary
+$f2d: #ddd,// Font Color Headers
+$c1d: #111,// Background Color Primary
+$c2d: #222,// Background Color Secondary
+...
+```
+
+### Footer Social Icons
+
+You should configure which social icons you plan to use. (makes the css file size smaller)
+
+To simply turn them all off you can set `$enable-icons: false`
+
+Otherwise enable only the icons you need, eg for mail you would set `$icon-mail: true`
+
+You should then disable all the icons that you do not use.
--
cgit v1.3.1
From ecc9421cc66a31f082a3a5266385f0e552894742 Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Fri, 21 Jul 2023 11:34:11 -0700
Subject: updated date
---
config.toml | 5 +++--
content/overview-abridge.fr.md | 1 +
content/overview-abridge.md | 1 +
templates/macros/macros.html | 37 +++++++++++++++++++++++++++++++++----
4 files changed, 38 insertions(+), 6 deletions(-)
(limited to 'content/overview-abridge.md')
diff --git a/config.toml b/config.toml
index 3d5addf..ebeba67 100644
--- a/config.toml
+++ b/config.toml
@@ -41,6 +41,7 @@ flag = "🇫🇷"
date_locale = "fr_FR"
Search = "Recherche"
Recent_Posts = "Articles Récents"
+Updated = "Modifié"
Index = "Indice"
Powered_by = "Propulsé"
and = "et"
@@ -117,8 +118,8 @@ menu_footer = [
recent = true # TOC / index
recent_items = 9
-meta_index = { position="bottom", size="s90", author=false, readtime=false, readstring="min", date=true, categories_tags=true, divider=" " }
-meta_post = { position="top", size="s95", author=true, readtime=false, readstring="min read", date=true, categories_tags=true, divider=" " }
+meta_index = { position="bottom", size="s90", author=false, readtime=false, readstring="min", date=true, updated=false, categories_tags=true, divider=" " }
+meta_post = { position="top", size="s95", author=true, readtime=false, readstring="min read", date=true, updated=true, categories_tags=true, divider=" " }
hide_section_dates = false # hides the date for sections that use posts.html as their template.
hide_page_nextprev_titles = false # hides the next/previous titles for pages that use page.html as their template.
diff --git a/content/overview-abridge.fr.md b/content/overview-abridge.fr.md
index 1fda697..388ff69 100644
--- a/content/overview-abridge.fr.md
+++ b/content/overview-abridge.fr.md
@@ -1,6 +1,7 @@
+++
title = "Abridge Zola Thème"
date = 2022-05-17
+updated = 2023-07-21
draft = false
[taxonomies]
diff --git a/content/overview-abridge.md b/content/overview-abridge.md
index f68ef2f..e3f0b58 100644
--- a/content/overview-abridge.md
+++ b/content/overview-abridge.md
@@ -1,6 +1,7 @@
+++
title = "Abridge Zola Theme"
date = 2022-05-17
+updated = 2023-07-21
draft = false
[taxonomies]
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index 4c86aac..f994bdb 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -24,7 +24,7 @@
{#- divider #}
{%- if config.extra.meta_post.author %}
- {%- if config.extra.meta_post.readtime or config.extra.meta_post.date or config.extra.meta_post.categories_tags %}
+ {%- if config.extra.meta_post.readtime or config.extra.meta_post.date or config.extra.meta_post.updated or config.extra.meta_post.categories_tags %}
{%- if config.extra.meta_post.divider %}{{ config.extra.meta_post.divider | safe }}{%- else %} {%- endif %}
{%- endif %}
{%- endif %}
@@ -32,7 +32,7 @@
{#- ReadTime #}
{%- if config.extra.meta_post.readtime %} {%- if config.extra.icon_read %} {% endif %} {{ page.reading_time }} {{ config.extra.meta_post.readstring | default(value="min") }}
{#- divider #}
- {%- if config.extra.meta_post.date or config.extra.meta_post.categories_tags %}
+ {%- if config.extra.meta_post.date or config.extra.meta_post.updated or config.extra.meta_post.categories_tags %}
{%- if config.extra.meta_post.divider %}{{ config.extra.meta_post.divider | safe }}{%- else %} {%- endif %}{%- endif %}{%- endif %}
{#- Date #}
@@ -46,6 +46,20 @@
{{ page.date | date(format="%B %d, %Y", locale=lang_locale) }}
{%- else %} {{ page.date | date(format="%B %d, %Y") }} {%- endif %}
{#- divider #}
+ {%- if config.extra.meta_post.updated or config.extra.meta_post.categories_tags %}
+ {%- if config.extra.meta_post.divider %}{{ config.extra.meta_post.divider | safe }}{%- else %} {%- endif %}{%- endif %}{% endif %}
+
+ {#- Updated #}
+ {%- if config.extra.meta_post.updated and page.updated %} {%- if config.extra.icon_date %} {% endif -%}
+ {%- if lang != config.default_language %} {{ trans(key="Updated" | safe, lang=lang) }}{% else %} Updated{% endif %}:
+ {%- if config.extra.date_locale %}
+ {%- if lang != config.default_language -%}
+ {%- set lang_locale = trans(key="date_locale" | safe, lang=lang) -%}
+ {%- else -%}
+ {%- set lang_locale = config.extra.date_locale -%}
+ {%- endif %} {{ page.updated | date(format="%B %d, %Y", locale=lang_locale) }}
+ {%- else %} {{ page.updated | date(format="%B %d, %Y") }} {%- endif %}
+ {#- divider #}
{%- if config.extra.meta_post.categories_tags %}
{%- if config.extra.meta_post.divider %}{{ config.extra.meta_post.divider | safe }}{%- else %} {%- endif %}{%- endif %}{% endif %}
@@ -83,7 +97,7 @@
{#- divider #}
{%- if config.extra.meta_index.author %}
- {%- if config.extra.meta_index.readtime or config.extra.meta_index.date or config.extra.meta_index.categories_tags %}
+ {%- if config.extra.meta_index.readtime or config.extra.meta_index.date or config.extra.meta_index.updated or config.extra.meta_index.categories_tags %}
{%- if config.extra.meta_index.divider %}{{ config.extra.meta_index.divider | safe }}{%- else %} {%- endif %}
{%- endif %}
{%- endif %}
@@ -91,7 +105,7 @@
{#- ReadTime #}
{%- if config.extra.meta_index.readtime %} {%- if config.extra.icon_read %} {% endif %} {{ page.reading_time }} {{ config.extra.meta_index.readstring | default(value="min") }}
{#- divider #}
- {%- if config.extra.meta_index.date or config.extra.meta_index.categories_tags %}
+ {%- if config.extra.meta_index.date or config.extra.meta_index.updated or config.extra.meta_index.categories_tags %}
{%- if config.extra.meta_index.divider %}{{ config.extra.meta_index.divider | safe }}{%- else %} {%- endif %}{%- endif %}{%- endif %}
{#- Date #}
@@ -104,6 +118,21 @@
{%- endif -%}
{{ page.date | date(format="%B %d, %Y", locale=lang_locale) }}
{%- else %} {{ page.date | date(format="%B %d, %Y") }} {%- endif %}
+ {#- divider #}
+ {%- if config.extra.meta_index.updated or config.extra.meta_index.categories_tags %}
+ {%- if config.extra.meta_index.divider %}{{ config.extra.meta_index.divider | safe }}{%- else %} {%- endif %}{%- endif %}{% endif %}
+
+ {#- Updated #}
+ {%- if config.extra.meta_index.updated and page.updated %} {%- if config.extra.icon_date %} {% endif -%}
+ {%- if lang != config.default_language %} {{ trans(key="Updated" | safe, lang=lang) }}{% else %} Updated{% endif %}:
+ {%- if config.extra.date_locale %}
+ {%- if lang != config.default_language -%}
+ {%- set lang_locale = trans(key="date_locale" | safe, lang=lang) -%}
+ {%- else -%}
+ {%- set lang_locale = config.extra.date_locale -%}
+ {%- endif %} {{ page.updated | date(format="%B %d, %Y", locale=lang_locale) }}
+ {%- else %} {{ page.updated | date(format="%B %d, %Y") }} {%- endif %}
+
{#- divider #}
{%- if config.extra.meta_index.categories_tags %}
{%- if config.extra.meta_index.divider %}{{ config.extra.meta_index.divider | safe }}{%- else %} {%- endif %}{%- endif %}{% endif %}
--
cgit v1.3.1