From e27f950fdf93ccd05f06e3065c015cb5d41763ef Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Thu, 28 Aug 2025 02:36:37 +0300 Subject: Massive changes to: - meta tags - opacity levels - pagespeed optimization - enabled more configs, preparing for search functionality Changes to be committed: modified: config.toml modified: content/about.md modified: content/posts/rust.md modified: sass/_predefined.scss modified: templates/index.html --- templates/index.html | 90 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 63 insertions(+), 27 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index c968941..b8af3c2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,37 +10,72 @@ + {% set page_title = page.title | default(value=config.title) %} + {% set page_description = page.description | default(value=config.description) %} + {% set page_url = page.permalink | default(value=config.base_url) %} + {% set page_image_src = page.extra.image_src | default(value=config.extra.meta.preview_image_src) %} + {% set page_image_alt = page.extra.image_alt | default(value=config.extra.meta.preview_image_alt) %} + + {{ page_title }} + + {% set canonical_url = config.base_url %} + {% if page %} + {% set canonical_url = page.permalink %} + {% elif section %} + {% set canonical_url = section.permalink %} + {% elif term %} + {% set canonical_url = term.permalink %} + {% endif %} + + - - - - - + + + - + - - - + + + + + + + + {# --- START: Add Rich Article Data (if it's a page) --- #} + {% if page %} + {# Published time in the required ISO 8601 format #} + + + {# Author's name #} + + + {# Loop through all the tags for this page #} + {% if page.taxonomies and page.taxonomies.tags %} + {% for tag in page.taxonomies.tags %} + + {% endfor %} + {% endif %} + {% endif %} + {# --- END: Rich Article Data --- #} + - - - - + + - - - + + + @@ -53,17 +88,22 @@ - + + - - + + + + + + + - {# 1. Load our single combined critical CSS file. #} {% set critical_css = load_data(path="static/css/critical.css", required=false) %} @@ -79,19 +119,15 @@ + + {% if page.extra.math %} {% endif %} - {% if page.title %} - {{ page.title }} - {% else %} - {{ config.title }} - {% endif %} - {% if config.generate_feeds %} - + {% endif %} -- cgit v1.2.3