diff --git a/LICENSE b/LICENSE index 27f2161..394482e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 David "Daudix" Lapshin +Copyright (c) 2024 David "Daudix" Lapshin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/config.toml b/config.toml index fb0ce16..f2ef871 100644 --- a/config.toml +++ b/config.toml @@ -28,26 +28,29 @@ smart_punctuation = true primary_color = "#ff7800" # Same as primary_color, but with 20% opacity primary_color_alpha = "rgba(255, 120, 0, 0.2)" -# Emoji favicon; can be set per-page or even section. +# Whether to use emoji as a favicon. +# Replace with an emoji wrapped in quotes. emoji_favicon = false -# If the favicon is GIF or not +# Whether the favicon is an animated GIF or not animated_favicon = false -# Tera date format (not used in comments). +# Tera Date format used when listing posts +# (post publication date, tag posts list...). +# Not used in comments. # See https://docs.rs/chrono/0.4.31/chrono/format/strftime/index.html date_format = "%d %B %Y" -# URL to issue tracker +# URL to website's issue tracker issues_url = "https://codeberg.org/daudix/duckquill/issues" # URL to website's source code source_url = "https://codeberg.org/daudix/duckquill" # Additional stylesheets; expects it to be in the "./static/" directory. -# If you are using Sass it will be compiled there anyway. +# If you are using Sass it will be generated there automatically. # stylesheets = [ # "YOUR_STYLE.css", # "ALSO_YOUR_STYLE.css" # ] [extra.nav] -# Display Atom/RSS feed button in the nav +# Whether to show Atom/RSS feed button in the nav show_feed = true # Links used in the nav. # For local files use same link format as in Markdown, @@ -60,15 +63,16 @@ links = [ ] [extra.footer] -# URL to the website without the https:// part, used for Johnvertisement leaderboard +# URL to the website without the https:// part, +# used for Johnvertisement leaderboard. johnvert_ref = "daudix.codeberg.page" -# "© Title, YEAR" in the footer +# Whether to show "© Title, YEAR" show_copyright = true -# Marketing via "john" in the footer +# Whether to show marketing via "john" show_johnvert = false -# "Powered by Zola and Duckquill" in footer +# Whether to show "Powered by Zola and Duckquill" show_powered_by = true -# Link to website source +# Whether to show link to website source show_source = true # Based on https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ @@ -80,9 +84,12 @@ show_source = true # These variables are also used for Mastodon verification, # the needed rel="me" link is set in the head based on these. [extra.comments] -# Your Mastodon API host; this should be where you have an account -host = "mstdn.social" -# Used to determine who the original poster is -user = "Daudix" -# Display the QR code to Mastodon post +# Your Mastodon API host; instance that you have an account on +host = "social.treehouse.systems" +# Your Mastodon username; used to determine who the original poster is +user = "daudix" +# Whether to show the QR code to Mastodon post show_qr = true +# BCP 47 locale used for comment timestamps; +# See https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry +locale = "en-IE" diff --git a/sass/_crt.scss b/sass/_crt.scss index 9bf3a97..5c987b6 100644 --- a/sass/_crt.scss +++ b/sass/_crt.scss @@ -8,7 +8,6 @@ animation: flicker 0.25s alternate infinite; margin: unset; box-shadow: unset; - // Unset some
 stuff
 		background-color: unset;
 		padding: 1rem 1rem;
 		color: var(--primary-color);
diff --git a/sass/_main.scss b/sass/_main.scss
index a6a00bd..048cbdb 100644
--- a/sass/_main.scss
+++ b/sass/_main.scss
@@ -210,6 +210,7 @@ pre {
 
 	mark {
 		display: block;
+		box-shadow: none;
 		border-radius: 0; // Unset code block border radius
 		background-color: var(--fg-muted-1);
 		padding: 0; // Unset mark padding
@@ -223,6 +224,12 @@ pre {
 		width: 100%;
 		table-layout: auto;
 		overflow: auto;
+
+		tr {
+			&:nth-child(even) {
+				background-color: unset;
+			}
+		}
 	}
 
 	// The line numbers already provide some kind of left/right padding
diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png
index ea0e974..1cc3b69 100644
Binary files a/static/apple-touch-icon.png and b/static/apple-touch-icon.png differ
diff --git a/templates/partials/comments.html b/templates/partials/comments.html
index 3a3e4fe..cab34a5 100644
--- a/templates/partials/comments.html
+++ b/templates/partials/comments.html
@@ -185,7 +185,7 @@
 							permalink.setAttribute("rel", "external nofollow");
 							permalink.textContent = new Date(
 								status.created_at
-							).toLocaleString("en-IE", {
+							).toLocaleString("{{ config.extra.comments.locale }}", {
 								dateStyle: "long",
 								timeStyle: "short",
 							});
diff --git a/templates/partials/head.html b/templates/partials/head.html
index 687ae62..d57fbf9 100644
--- a/templates/partials/head.html
+++ b/templates/partials/head.html
@@ -18,8 +18,8 @@
 	
 
 	
-	
-	
+	
+	
 	{% if config.extra.stylesheets %}
 		{% for stylesheet in config.extra.stylesheets %}
 			
@@ -33,26 +33,17 @@
 		}
 	
 
-	{% if page.extra.emoji_favicon %}
-		
-		
-	{% elif section.extra.emoji_favicon %}
-		
-		
-	{% elif config.extra.emoji_favicon %}
-		
-		
-	{% elif config.extra.animated_favicon %}
-		
-		
-	{% else %}
-		
-		
-	{% endif %}
 	{% if config.extra.comments %}
 		
 	{% endif %}
-
+	{% if config.extra.emoji_favicon %}
+		
+	{% endif %}
+	{% if config.extra.animated_favicon %}
+		
+	{% endif %}
+	
+