Week 01 of 2025
Development log of Tad Notes
4 items
Rename the icons, set their purpose to any
On by
index 88c082c..bc0c4d9 100644
--- a/src/html_export.rs
+++ b/src/html_export.rs
@@ -266,8 +266,8 @@ impl HtmlExport for Notes {
= "favicon.svg",
= "favicon-96x96.png",
= "site.webmanifest",
- "web-app-manifest-192x192.png",
- "web-app-manifest-512x512.png",
+ "tad-notes-192x192.png",
+ "tad-notes-512x512.png",
= ] {
= let from = assets_path().join(asset);
=index 8356b45..0191129 100644
--- a/templates/site.webmanifest
+++ b/templates/site.webmanifest
@@ -1,21 +1,23 @@
={
= "name": "Tad Notes",
= "short_name": "Notes",
+ "start_url": "/",
+ "scope": "/",
= "icons": [
= {
- "src": "/web-app-manifest-192x192.png",
+ "src": "/tad-notes-192x192.png",
= "sizes": "192x192",
= "type": "image/png",
- "purpose": "maskable"
+ "purpose": "any"
= },
= {
- "src": "/web-app-manifest-512x512.png",
+ "src": "/tad-notes-512x512.png",
= "sizes": "512x512",
= "type": "image/png",
- "purpose": "maskable"
+ "purpose": "any"
= }
= ],
= "theme_color": "#bbc6ce",
= "background_color": "#11191f",
= "display": "standalone"
-}
\ No newline at end of file
+}similarity index 100%
rename from templates/web-app-manifest-192x192.png
rename to templates/tad-notes-192x192.pngsimilarity index 100%
rename from templates/web-app-manifest-512x512.png
rename to templates/tad-notes-512x512.pngSilence a log message
On by
index bc0c4d9..63de53a 100644
--- a/src/html_export.rs
+++ b/src/html_export.rs
@@ -386,7 +386,6 @@ fn export_path(note: &Note) -> String {
=
=fn assets_path() -> PathBuf {
= if let Ok(manifest_dir) = std::env::var("CARGO_MANIFEST_DIR") {
- log::info!("The program is running via cargo.");
= PathBuf::from(manifest_dir).join("templates")
= } else {
= let executable_path =Let all exported pages have manifest and icons
On by
Via a common head tags.
index 1091847..d26f12d 100644
--- a/templates/all.html
+++ b/templates/all.html
@@ -1,16 +1,10 @@
=<!doctype html>
=<html class="no-js index all" lang="en">
= <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>Notes</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>All Tad Notes</title>
+ <meta name="description" content="All the Tad Notes">
=
- <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
-
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
- <!-- Place favicon.ico in the root directory -->
+ {%- include "common-head.html" -%}
=
= </head>
= <body>index 1bbd585..eea5743 100644
--- a/templates/categories-index.html
+++ b/templates/categories-index.html
@@ -1,21 +1,11 @@
=<!doctype html>
=<html class="no-js index categories" lang="en">
= <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>Categories - Tad Notes</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <base href="/">
=
- <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+ <title>Categories - Tad Notes</title>
+ <meta name="description" content="All the categories of Tad Notes">
=
- <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
- <meta name="apple-mobile-web-app-title" content="Tad Notes" />
- <link rel="manifest" href="/site.webmanifest" />
+ {%- include "common-head.html" -%}
=
= </head>
= <body>new file mode 100644
index 0000000..04b95b6
--- /dev/null
+++ b/templates/common-head.html
@@ -0,0 +1,12 @@
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+
+ <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
+ <meta name="apple-mobile-web-app-title" content="Tad Notes" />
+ <link rel="manifest" href="/site.webmanifest" />index 58d13c2..e7436fa 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,20 +1,10 @@
=<!doctype html>
=<html class="no-js index all" lang="en">
= <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
= <title>Notes</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="description" content="Tad Notes">
=
- <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
-
- <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
- <meta name="apple-mobile-web-app-title" content="Tad Notes" />
- <link rel="manifest" href="/site.webmanifest" />
+ {%- include "common-head.html" -%}
=
= </head>
= <body>index eb8ebd5..d4d0d1d 100644
--- a/templates/note.html
+++ b/templates/note.html
@@ -1,20 +1,11 @@
=<!doctype html>
=<html class="no-js note" lang="en">
= <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>{{ title }}</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
=
- <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+ <title>{{ title }} - Tad Notes</title>
+ <meta name="description" content="A Tad Note titled {{ title }}">
=
- <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
- <meta name="apple-mobile-web-app-title" content="Tad Notes" />
- <link rel="manifest" href="/site.webmanifest" />
+ {%- include "common-head.html" -%}
=
= </head>
= <body>index 49cfc37..d2a23d7 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -1,17 +1,11 @@
=<!doctype html>
=<html class="no-js index tag {{ tag }}" lang="en">
= <head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>{{ tag }}</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <base href="/"/>
=
- <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+ <title>{{ tag }} - Tad Notes</title>
+ <meta name="description" content="All the Tad Notes in the category {{ tag }}">
=
- <link rel="apple-touch-icon" href="/apple-touch-icon.png">
- <!-- Place favicon.ico in the root directory -->
+ {%- include "common-head.html" -%}
=
= </head>
= <body>Update Nix dependencies
On by
index 214b7e1..3c916a8 100644
--- a/flake.lock
+++ b/flake.lock
@@ -20,11 +20,11 @@
= },
= "nixpkgs": {
= "locked": {
- "lastModified": 1733212471,
- "narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
+ "lastModified": 1735834308,
+ "narHash": "sha256-dklw3AXr3OGO4/XT1Tu3Xz9n/we8GctZZ75ZWVqAVhk=",
= "owner": "NixOS",
= "repo": "nixpkgs",
- "rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
+ "rev": "6df24922a1400241dae323af55f30e4318a6ca65",
= "type": "github"
= },
= "original": {
@@ -62,11 +62,11 @@
= "nixpkgs": "nixpkgs_2"
= },
= "locked": {
- "lastModified": 1733366051,
- "narHash": "sha256-Zlas3LFqrW8bVVrZYgkzS4VNkZgtZ/hsbYhO0GtKLys=",
+ "lastModified": 1736044260,
+ "narHash": "sha256-DTAr0mAd8AZwWgRtU9ZZFPz3DwNeoH/Oi/1QMSqc9YQ=",
= "owner": "oxalica",
= "repo": "rust-overlay",
- "rev": "ba5ed0362eaae83fe8925a2d5cfcf356ff22f70f",
+ "rev": "c8ed24cc104ebbc218d992e208131e9f024b69f0",
= "type": "github"
= },
= "original": {