Skip to content

Commit

Permalink
Accessibility and SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
Jieiku committed Aug 13, 2024
1 parent 8548e10 commit 0a3e633
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ base_url = "https://abridge.netlify.app"
# If you use the npm/node script then all you have to do is set offline = true, and everything else is automatic.

title = "Abridge"
description = "Abridge is a fast and lightweight Zola theme using semantic html, abridge.css class-light CSS, and No Mandatory JS."
description = "Abridge is a fast, lightweight, and modern Zola theme (class-light, semantic HTML). Perfect Lighthouse, YellowLabTools, and Observatory scores."#for SEO aim for 140-180 Characters
#theme = "abridge"

default_language = "en"
Expand Down Expand Up @@ -147,7 +147,7 @@ foothr = false # show or hide horizontal rule above footer
###############################################################################

title_separator = "|" # Separator between title and title_addition, set as |, -, _, etc
title_addition = "Fast & Lightweight Zola Theme" # a default value for title addition
title_addition = "Fast, Lightweight, and Modern Zola Theme" # a default value for title addition (for SEO aim for 50-70 characters including the title and separator 'Abridge | title_addition')
author = "Jake G" # Put Your Name here
keywords = "Abridge, Abridge.css, Zola, Theme, Zola Theme, getzola, Semantic Html, Fast, lightweight" # used for the primary site index
banner = "banner.png" # Used as default image for OpenGraph/Twitter if page specific image is undefined.
Expand Down
7 changes: 4 additions & 3 deletions sass/abridge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ $coderoundhighlight: false !default;//round corners on highlighted code blocks
}
}
@if $typography {
big,
h1,
h2,
h3,
Expand All @@ -450,7 +451,7 @@ $coderoundhighlight: false !default;//round corners on highlighted code blocks
font-size: var(--fs);
line-height: var(--lhh);
}
h1 {
big,h1 {
font-size: 2rem;
}
h2 {
Expand Down Expand Up @@ -480,7 +481,7 @@ $coderoundhighlight: false !default;//round corners on highlighted code blocks
a:visited {
color: var(--a4);
}
h1 a, h2 a, main nav a, header li > a {
big a, h1 a, h2 a, main nav a, header li > a {
color: var(--f2);
text-decoration: none;
font-weight: var(--fh);
Expand All @@ -493,7 +494,7 @@ $coderoundhighlight: false !default;//round corners on highlighted code blocks
}
}
article {
padding-bottom: .2rem;
padding: 1rem 0rem;
}

// Abbreviations
Expand Down
10 changes: 5 additions & 5 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@
<div>
{%- if config.extra.logo -%}

<h1><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%- endif %}" title="{{config.title}}">
<big><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%- endif %}" title="{{config.title}}">
{%- if config.extra.logo.file -%}
<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
{%- endif -%}
{%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%}
</a></h1>
</a></big>

{%- elif config.extra.textlogo -%}
<h1><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls -%}
<big><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls -%}
{%- if lang == config.default_language -%}/{%- endif -%}
index.html{%- endif -%}" title="{{config.title}}">{{ config.extra.textlogo | safe }}</a></h1>
index.html{%- endif -%}" title="{{config.title}}">{{ config.extra.textlogo | safe }}</a></big>
{%- elif config.title -%}
<h1><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%- endif %}" title="{{config.title}}">{{ config.title | safe }}</a></h1>
<big><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%- endif %}" title="{{config.title}}">{{ config.title | safe }}</a></big>
{%- endif -%}
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion templates/macros/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h1><a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}
{%- macro title_index(page, config) %}
{%- set uglyurls = config.extra.uglyurls | default(value=false) -%}
{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
<h1>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</h1>
<big>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ page.title }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</big>
{%- endmacro title_index %}


Expand Down

0 comments on commit 0a3e633

Please sign in to comment.