Commit graph

142 commits

Author SHA1 Message Date
swagg boi 6d9bf6ce36 New testing 2022-04-08 13:47:33 -04:00
swagg boi 121ed5ab52 Small style tweaks 2022-04-08 13:10:52 -04:00
swagg boi d32e3a9c2b Clean up the <meta> tags 2022-04-08 13:07:31 -04:00
swagg boi 94dfa4043e Small tweaks I've been meaning to make 2022-04-08 12:59:15 -04:00
swagg boi 5583b9f608 Consolidate /view and /spam base paths 2022-04-07 23:04:09 -04:00
swagg boi 36d1fcd7fa Use restrictive placeholder in addition to optional for page number 2022-04-07 22:14:24 -04:00
swagg boi 07e7f69e90 Fix <nav> hyperlink; implement placeholder for /spam too 2022-04-07 21:13:50 -04:00
swagg boi 8f95b616cf Implement /view route w/ page_number placeholder 2022-04-07 21:04:41 -04:00
swagg boi 222d9e8a74 Impelement hyperlinking of individual message IDs 2022-04-06 22:44:05 -04:00
swagg boi f2ca5cc1b6 Implement get_post_by_id() and the message_id view 2022-04-04 22:56:45 -04:00
swagg boi 1809a765f2 Implement the /message/:id route 2022-04-04 21:21:11 -04:00
swagg boi 80b2acb79a expires vs expiration
It appears I have misunderstood the difference between `expires =>
time() + 3600` and `expiration => 3600` as I thought `expires` would
just set the expiration one time and not update for subsequent
requests. Per this discussion thread, that does not appear to be
correct:

https://github.com/mojolicious/mojo/discussions/1833

Thus I felt it best to just set the expiry period to 30 min and allow
that to reset on subsequent requests rather than reinvent the wheel
2022-04-04 17:22:23 -04:00
swagg boi a36e43ea11 Whoopsie... Remember to run your unit tests before comitting, folks 2022-04-04 14:02:05 -04:00
swagg boi fe739e7f2b I should've been using 'expires' for the session rather than 'expiration' 2022-04-04 13:48:31 -04:00
swagg boi 29bf6f71e2 Lower session lifetime cuz visitor counter 2022-04-04 00:04:09 -04:00
swagg boi dfb27d3815 Boop 2022-04-03 23:35:59 -04:00
swagg boi 71501bc904 What's next?? 2022-04-03 21:42:53 -04:00
swagg boi 27ec34b208 Make the visitor counter increment when a new session is created 2022-04-03 21:34:22 -04:00
swagg boi 3532310738 Display the visitor counter 2022-04-03 21:04:09 -04:00
swagg boi 6fe9a59b6d Some style tweaks, this was buggin me 2022-04-03 17:11:02 -04:00
swagg boi 7c951baaa6 Merge branch 'main' into visitor_counter 2022-04-01 22:39:07 -04:00
swagg boi 1fdd18c42f Change some <section> to <div> where a heading is not necessary (HTML linter findings) 2022-04-01 22:38:14 -04:00
swagg boi 93ee1b080b Style tweaks for the new <p> tags 2022-04-01 16:26:40 -04:00
swagg boi a11bae7cdf Use <p> instead of <figcaption> to appease HTML validator 2022-04-01 15:36:16 -04:00
swagg boi 64067b22f9 Revert "Move <h3> for article heading to the inside of the <section> tag"
This reverts commit 14bc79d89d.

This was just to address some warning but now it's creating errors in
HTML validation so probably best to just ignore
2022-03-18 16:15:09 -04:00
swagg boi 96fd173660 Add lang=en attribute to <html> 2022-03-18 16:13:15 -04:00
swagg boi 14bc79d89d Move <h3> for article heading to the inside of the <section> tag 2022-03-18 15:56:44 -04:00
swagg boi 161d591f74 Font style changes 2022-02-23 16:21:49 -05:00
swagg boi 0a035e1502 Font style changes 2022-02-23 16:18:08 -05:00
swagg boi 54aa04d04c Add helper for the new model 2022-02-09 21:17:49 -05:00
swagg boi 01ca269dd3 Remove hash key, not needed 2022-02-09 21:14:15 -05:00
swagg boi 7c89420bbd Change the schema 2022-02-09 21:02:35 -05:00
swagg boi b95a1965bd Merge branch 'visitor_counter' of https://git.n4vn33t.com/swag/guestbook-ng into visitor_counter 2022-02-09 20:18:23 -05:00
swagg boi ad2a898c1a Add model for counters 2022-02-09 20:15:52 -05:00
swagg boi c26f034a3d Set session to 1 day 2022-02-09 19:33:47 -05:00
swagg boi 95c3bc83a8 Handle word wrapping in long words 2022-02-08 23:42:36 -05:00
swagg boi 96f9ab2d30 Begin visitor counter stuff 2022-01-12 17:05:36 -05:00
swagg boi 0804b52d46 Don't let spam be indexed 2022-01-12 15:41:03 -05:00
swagg boi 02355ee08b Implement /spam route 2022-01-12 15:18:34 -05:00
swagg boi 3739016a50 Allow indexing 2022-01-12 14:27:58 -05:00
swagg boi 322ca8c9ca Style tweak for submit button 2022-01-12 13:36:01 -05:00
swagg boi e69b3ea4c7 Print message ID in hidden span to easily ID posts 2022-01-11 22:13:33 -05:00
swagg boi 706742a212 Merge branch 'main' of https://git.n4vn33t.com/swag/guestbook-ng 2022-01-11 21:13:57 -05:00
swagg boi 920d62cf16 Implement meta tags 2022-01-11 21:12:53 -05:00
swagg boi 02b087a38e Fix post count 2022-01-11 20:15:53 -05:00
swagg boi 53f292ac7c Implement post count 2022-01-11 19:51:45 -05:00
swagg boi 575431237b More tweaks 2022-01-10 22:46:17 -05:00
swagg boi 3e03b82cd0 Some tweaks 2022-01-10 21:57:39 -05:00
swagg boi 3115d6f17d How did I miss this?? 2022-01-10 15:36:25 -05:00
swagg boi 681ed961e8 Just specify Postgres connection string in conf file 2022-01-10 14:18:49 -05:00