aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.toml5
-rw-r--r--sass/include/_zola.scss10
-rw-r--r--templates/index.html6
-rw-r--r--templates/macros/macros.html16
-rw-r--r--templates/page.html16
5 files changed, 38 insertions, 15 deletions
diff --git a/config.toml b/config.toml
index a4c989a..257235e 100644
--- a/config.toml
+++ b/config.toml
@@ -48,12 +48,13 @@ recent = true # TOC / index
recent_items = 9
author = "Jake G" # Put Your Name here
+title_size_index = "s75" # size: s95, s90, s85, s80, s75, s70, false(full size)
meta_index = { position="bottom", size="s90", author=true, 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=" " }
-## position: top, bottom, both, false(hidden) ## size: s95, s90, s85, s80, false(full size)
+## position: top, bottom, both, false(hidden) ## size: s95, s90, s85, s80, s75, s70, false(full size)
## divider: "·" "•" " "
-footer_size = "s90" # size: s95, s90, s85, s80, false(full size)
+footer_size = "s90" # size: s95, s90, s85, s80, s75, s70, false(full size)
footer_credit = true
#footer_credit_override = '<p class="s90">Powered by <a href="https://www.getzola.org/">Zola</a> &#38; <a href="https://github.com/Jieiku/abridge/">Abridge</a></p>'
#uncomment one of the two lines, or neither, depending on which type of logo you want to use:
diff --git a/sass/include/_zola.scss b/sass/include/_zola.scss
index 3a7cdf7..8eebafb 100644
--- a/sass/include/_zola.scss
+++ b/sass/include/_zola.scss
@@ -1,7 +1,9 @@
.sum {margin: .2rem 0}
-.s95 {font-size: .95rem}
-.s90 {font-size: .90rem}
-.s85 {font-size: .85rem}
-.s80 {font-size: .80rem}
+.s95 {font-size: .95em}
+.s90 {font-size: .90em}
+.s85 {font-size: .85em}
+.s80 {font-size: .80em}
+.s75 {font-size: .75em}
+.s70 {font-size: .70em}
.hpad {padding: 0 .2rem}
.rpad {padding-right: .2rem} \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index 6d3bfe0..422ad22 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -28,10 +28,10 @@
<div>
{%- for page in paginator.pages %}
<article>
- <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
+ {{- macros::title_index(page=page) }}
{%- if config.extra.meta_index.position %}
{%- if config.extra.meta_index.position == "top" or config.extra.meta_index.position == "both" %}
- {{- macros::title_index(page=page) }}
+ {{- macros::meta_index(page=page) }}
{%- endif %}{%- endif %}
<p class="sum">
{%- if page.summary %}
@@ -46,7 +46,7 @@
</p>
{%- if config.extra.meta_index.position %}
{%- if config.extra.meta_index.position == "bottom" or config.extra.meta_index.position == "both" %}
- {{- macros::title_index(page=page) }}
+ {{- macros::meta_index(page=page) }}
{%- endif %}
{%- endif %}
</article>
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index c5d7a22..6d86916 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -1,4 +1,8 @@
-{%- macro title(page) %}
+{%- macro title_post(page) %}
+ <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
+{%- endmacro title_post %}
+
+{%- macro meta_post(page) %}
<span{%- if config.extra.meta_post.size %} class="{{ config.extra.meta_post.size }}"{% endif %}>
{#- Author #}
@@ -36,10 +40,14 @@
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
-{%- endmacro title %}
-
+{%- endmacro meta_post %}
{%- macro title_index(page) %}
+ <h1>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</h1>
+{%- endmacro title_index %}
+
+
+{%- macro meta_index(page) %}
<span{%- if config.extra.meta_index.size %} class="{{ config.extra.meta_index.size }}"{% endif %}>
{#- Author #}
@@ -77,7 +85,7 @@
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
-{%- endmacro title %}
+{%- endmacro meta_index %}
diff --git a/templates/page.html b/templates/page.html
index cfea5ea..b0fbf83 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -32,9 +32,20 @@
{%- block content %}
<article>
- <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
- {{- macros::title(page=page) }}
+ {{- macros::title_post(page=page) }}
+
+ {%- if config.extra.meta_post.position %}
+ {%- if config.extra.meta_post.position == "top" or config.extra.meta_post.position == "both" %}
+ {{- macros::meta_post(page=page) }}
+ {%- endif %}{%- endif %}
+
{{ page.content | safe }}
+
+ {%- if config.extra.meta_post.position %}
+ {%- if config.extra.meta_post.position == "bottom" or config.extra.meta_post.position == "both" %}
+ {{- macros::meta_post(page=page) }}
+ {%- endif %}{%- endif %}
+
{%- block page_footer %}
{{- macros::footer(page=page) }}
{%- endblock page_footer %}
@@ -63,6 +74,7 @@
</div>
{%- endif %}
{%- endblock toc %}
+
{%- endblock content %}
{%- block gotop %}