diff options
| -rw-r--r-- | config.toml | 7 | ||||
| -rw-r--r-- | content/guestbook/index.md | 38 | ||||
| -rw-r--r-- | content/guestbook/success.md | 4 | ||||
| -rw-r--r-- | static/css/guestbook.css | 57 | ||||
| -rw-r--r-- | static/css/styles.css | 72 | ||||
| -rw-r--r-- | templates/base.html | 2 | ||||
| -rw-r--r-- | templates/page.html | 9 |
7 files changed, 77 insertions, 112 deletions
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 @@ -13,25 +14,6 @@ and are much appreciated. {{ guestbook_entry( - name="Sakshi Choudhary", - website="", - message="Hello I am Sakshi from India. I like to make puff with my hair. <br><br>My brain is in my knees. It feels very comfortable there.<br><br>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<br><br>", - 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", website="", message="Amazing writer, I can't get over how he perfectly represents my feelings about social issues like racism, thanks friend.", @@ -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.<br><br>I have a pen, I have a pineapple <br>Boom pineapple pen.<br><br>Apple pen. Pineapple pen<br>Boom pen pineapple apple pen<br><br>Ppap<br>🎶🎶🎶<br><br>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.<br><br>Signed<br><br>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 %} - <link rel="canonical" href="{{ current_url | safe }}" /> + <link rel="canonical" href="{{ config.extra.baseurl }}{{ current_url | safe }}" /> {% endif %} <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ config.extra.feed_url | safe }}"> 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/" %} + <meta name="robots" content="noindex"> + {% endif %} + {% if page.path == "/guestbook/" %} + <link rel="stylesheet" type="text/css" href="/css/guestbook.css"> + {% endif %} +{% endblock head_extra %} + {% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} {% block description %}{{ page.description }}{% endblock description %} |