From 1f1a6a9cf86abae5e7523050f26cbfa5bfa41e89 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 6 Feb 2026 17:30:49 +0530 Subject: split styles.css and guestbook.css, cleaned up the site --- config.toml | 7 +++-- content/guestbook/index.md | 38 +---------------------- content/guestbook/success.md | 4 +-- static/css/guestbook.css | 57 +++++++++++++++++++++++++++++++++++ static/css/styles.css | 72 ++------------------------------------------ templates/base.html | 2 +- templates/page.html | 9 ++++++ 7 files changed, 77 insertions(+), 112 deletions(-) create mode 100644 static/css/guestbook.css diff --git a/config.toml b/config.toml index 2b405f7..be48c9e 100644 --- a/config.toml +++ b/config.toml @@ -1,7 +1,7 @@ -base_url = "/" +base_url = "/" # setting to anything else will mess with TOR title = "The NonPersonal Diary" -description = "VidhuKant's public journal or something. Enjoy." +description = "Not not VidhuKant's not journal" author = "Vidhu Kant Sharma" default_language = "en" @@ -12,7 +12,8 @@ generate_feeds = true feed_filenames = ["feed.xml"] [extra] -feed_url = "https://nonpersonaldiary.blog/feed" +baseurl = "https://the.nonpersonaldiary.blog" # shouldn't contain trailing / +feed_url = "https://the.nonpersonaldiary.blog/feed" feature_image = "https://vidhukant.com/pics/opengraph.png" email = "vidhukant@vidhukant.com" nickname = "Vidhu Kant" diff --git a/content/guestbook/index.md b/content/guestbook/index.md index b22d0b1..8b7e65b 100644 --- a/content/guestbook/index.md +++ b/content/guestbook/index.md @@ -1,6 +1,7 @@ +++ title = "Guestbook" description = "Please sign my guestbook!" +page_template = "guestbook.html" +++ # Guestbook @@ -11,25 +12,6 @@ and are much appreciated. [Sign my guestbook](#sign-my-guestbook) to join the club. -{{ - guestbook_entry( - name="Sakshi Choudhary", - website="", - message="Hello I am Sakshi from India. I like to make puff with my hair.

My brain is in my knees. It feels very comfortable there.

I am from the small country of Bangladesh. I had to flee to Sri Lanka before coming to India and making my career as a McDonalds Worker (Rising Star Branch). I do not give my chips masala (jo last me bachta hai) to anyone, because I am cheap

", - time="2026-01-16T05:42:06Z" - ) -}} - -{{ - guestbook_entry( - name="Patter Killer", - website="", - message="The author is a pos, probably the most infuriating and in your face xenofobic I've seen, like what do you mean castism and racism protect the society from Evil, smh. And don't get me started on his story about how lesbians ruined society.", - reply="Hey you're probably the reason I'm like this", - time="2025-05-07T14:35:50Z" - ) -}} - {{ guestbook_entry( name="Chanchal caria", @@ -39,24 +21,6 @@ and are much appreciated. ) }} -{{ - guestbook_entry( - name="Gu gu ga ga", - website="", - message="I have a pen i have an apple, boom apple pen.

I have a pen, I have a pineapple
Boom pineapple pen.

Apple pen. Pineapple pen
Boom pen pineapple apple pen

Ppap
🎶🎶🎶

Ppap", - time="2025-05-07T14:35:50Z" - ) -}} - -{{ - guestbook_entry( - name="Vklodu", - website="", - message="Chutiya author can't even take genuine comments and critisism of his work.

Signed

Divyadeep", - time="2025-05-07T14:35:50Z" - ) -}} - # Sign my Guestbook! The fact that you didn't not stumble upon this little corner on the interwebs will diff --git a/content/guestbook/success.md b/content/guestbook/success.md index bc95589..e7ac449 100644 --- a/content/guestbook/success.md +++ b/content/guestbook/success.md @@ -5,7 +5,7 @@ description = "Please sign my guestbook!" # Thank You! -Thanks for signing my guestbook. Now after a little manual review, it'll be visible -to the world! +Thanks for signing my guestbook. *Welcome to the crib.* +After a manual review, your message be visible to the world. [Return to guestbook history](/guestbook) diff --git a/static/css/guestbook.css b/static/css/guestbook.css new file mode 100644 index 0000000..39da00b --- /dev/null +++ b/static/css/guestbook.css @@ -0,0 +1,57 @@ +form { + display: flex; + flex-direction: column; + gap: 1.2em; + margin: 1.5em auto; +} + +input::placeholder, textarea::placeholder { color: var(--fg-1); } + +input, textarea { + background-color: var(--bg-0); + color: var(--fg-0); + border: 1px solid var(--color-0); + padding: 0.6em 0.6em; + font-size: 1rem; + width: 100%; +} + +textarea { + resize: none; +} + +input[type=submit] { + width: 12em; + font-size: 0.8em; + padding: 1em; + cursor: pointer; +} + +input:hover, textarea:hover {border: 1px solid var(--color-1);} + +.form-entry { + display: flex; + flex-direction: column; + gap: 0.4em; +} + +.form-entry:has(input[type=submit]) { + flex-direction: row; + justify-content: flex-end; +} + +.guestbook-entry { + background-color: var(--bg-1); + border-radius: 1em; + padding: 0.1em 0.8em; + margin: 2em auto; +} + +.guestbook-entry-name { + font-size: 1.4em; + color: var(--color-1); +} + +.guestbook-entry time { + font-size: 0.9em; +} diff --git a/static/css/styles.css b/static/css/styles.css index c49e851..bcc7969 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -89,40 +89,7 @@ img { max-height: var(--content-width); } -h1, h2, h3, h4, h5, h6 { color: var(--color-1); } - -header h1 { color: var(--color-0); } - -form { - display: flex; - flex-direction: column; - gap: 1.2em; - margin: 1.5em auto; -} - -input::placeholder, textarea::placeholder { color: var(--fg-1); } - -input, textarea { - background-color: var(--bg-0); - color: var(--fg-0); - border: 1px solid var(--color-0); - padding: 0.6em 0.6em; - font-size: 1rem; - width: 100%; -} - -textarea { - resize: none; -} - -input[type=submit] { - width: 12em; - font-size: 0.8em; - padding: 1em; - cursor: pointer; -} - -input:hover, textarea:hover {border: 1px solid var(--color-1);} +h1, h2, h3, h4, h5, h6 { color: var(--color-0); } #top { position: absolute; @@ -134,14 +101,8 @@ input:hover, textarea:hover {border: 1px solid var(--color-1);} border-bottom: 1px solid var(--color-0); } -#site-header h1 { font-size: 1.2em; } -#site-header h1 a { - background-color: var(--color-0); - color: var(--bg-0); - padding: 0.2em 0.4em; - text-decoration: none; -} -#site-header h1 a:hover { background-color: var(--color-1); } +#site-header h1 { font-size: 1.4em; } +#site-header h1 a { text-decoration: none; } #nav-active-link { color: var(--fg-0); } nav ul { @@ -183,30 +144,3 @@ ol#post-index a { ol#post-index time { color: var(--color-1); } ol#post-index a:visited { color: var(--fg-1); } - -.form-entry { - display: flex; - flex-direction: column; - gap: 0.4em; -} - -.form-entry:has(input[type=submit]) { - flex-direction: row; - justify-content: flex-end; -} - -.guestbook-entry { - background-color: var(--bg-1); - border-radius: 1em; - padding: 0.1em 0.8em; - margin: 2em auto; -} - -.guestbook-entry-name { - font-size: 1.4em; - color: var(--color-1); -} - -.guestbook-entry time { - font-size: 0.9em; -} diff --git a/templates/base.html b/templates/base.html index 2bdb4e7..31ef012 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ {% block head_extra %}{% endblock head_extra %} {% if current_url %} - + {% endif %} diff --git a/templates/page.html b/templates/page.html index 7f4dd5b..9f9b6b7 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,5 +1,14 @@ {% extends "base.html" %} +{% block head_extra %} + {% if page.path == "/guestbook/" or page.path == "/guestbook/success/" or page.path == "/guestbook/nonsuccess/" %} + + {% endif %} + {% if page.path == "/guestbook/" %} + + {% endif %} +{% endblock head_extra %} + {% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} {% block description %}{{ page.description }}{% endblock description %} -- cgit v1.2.3