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 --- config.toml | 8 ++--- content/about.md | 2 +- content/posts/rust.md | 6 ++++ sass/_predefined.scss | 2 +- templates/index.html | 90 +++++++++++++++++++++++++++++++++++---------------- 5 files changed, 73 insertions(+), 35 deletions(-) diff --git a/config.toml b/config.toml index bce794b..362ad9c 100644 --- a/config.toml +++ b/config.toml @@ -64,7 +64,7 @@ external_links_target_blank = false # Whether to set rel="nofollow" for all external links external_links_no_follow = false -# Whether to set rel="noreferrer" for all external links +# Whether to set rel="noreferrer" for all external links (privacy preserving) external_links_no_referrer = true # Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form) @@ -117,11 +117,7 @@ email = "iustin@alphara.art" [extra.meta] -website_type = "blog" # either "blog" or "article" - I haven't seen any difference though - -keywords = "blog, technology, science, philosophy, mathematics, artificial intelligence, AI research, machine learning, data science, deep learning, neural networks, Linux, Void Linux, OpenBSD, system administration, open source, FOSS, developer tools, programming, coding, tutorials, programming languages, software development, software engineering, computer science, algorithms, cybersecurity" - -preview_image_src = "https://alphara.art/Alphara.png" +preview_image_src = "Alphara.png" preview_image_alt = "Alphara" twitter_card = "summary_large_image" # either "summary" or "summary_large_image" (for big preview image) diff --git a/content/about.md b/content/about.md index edb41be..8db90ce 100644 --- a/content/about.md +++ b/content/about.md @@ -17,4 +17,4 @@ Here you'll see the following general topics: I'm pretty much sticking to these. Feel free to contact me if you want to. -![Image](https://brainmade.org/88x31-dark.png) \ No newline at end of file +![brainmade.org](/images/brain-made-org-88x31-dark.png) diff --git a/content/posts/rust.md b/content/posts/rust.md index 9ed9ca3..737611f 100644 --- a/content/posts/rust.md +++ b/content/posts/rust.md @@ -1,5 +1,6 @@ +++ title = "Rust For 1 Week" +description = "My first impressions and learning journey after spending a week with the Rust programming language." date = 2025-07-30 draft = false @@ -7,6 +8,11 @@ draft = false tags = ["programming"] [extra] +# You can optionally add a specific image for social media previews +# If you don't add this, it will use the site-wide default from your config.toml +image_src = "images/20250730210132.png" +image_alt = "A table from the Rust book showing error types" + math = false disable_comments = true toc = false diff --git a/sass/_predefined.scss b/sass/_predefined.scss index 3ef8a06..b12d67d 100644 --- a/sass/_predefined.scss +++ b/sass/_predefined.scss @@ -27,7 +27,7 @@ $code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, // Mixins // @mixin dimmed { - opacity: 0.7; + opacity: 1; } @mixin aTag { 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