Commit Graph

163 Commits

Author SHA1 Message Date
Matthias Portzel 4cefd3079e Fix name of progressbar2 package 2022-09-17 14:05:54 -04:00
Matthias Portzel 8fe3852040 Save HTML for each thought to the DB for performance 2022-09-17 14:00:48 -04:00
Matthias Portzel 650a845611 Some small QoL changes 2022-09-17 07:25:29 -04:00
Matthias Portzel 06e49a7760 Bug fixes from previous commit 2022-09-10 21:54:46 -04:00
Matthias Portzel b19bbfe905 Paginate Gemini index page 2022-09-10 21:35:07 -04:00
Matthias Portzel b4b20eca12 Remove RSS support
"Adding features without removing them is"
2022-09-04 15:10:51 -04:00
Matthias Portzel 4ab86115fc Fix bug editing in firefox 2022-09-03 08:39:36 -04:00
Matthias Portzel f1217d779e Reformat pages names to put year first 2022-09-01 18:21:05 -04:00
Matthias Portzel 1d89272d99 Don't strip whitespace from the start or end of thoughts
* Refactor to specify fields directly; shouldn't effect any other behavior
2022-08-01 18:46:15 -04:00
Matthias Portzel 727bbf6fc5 Super Thoughts
I feel like this is one of those things that isn't going to be funny in 2 days, but I'm going to be stuck with it for like two years.
2022-07-11 22:28:02 -04:00
Matthias Portzel 7d294523a1 Add `spaceless` tag to remove whitespace from iterating thoughts
* Also, removes line of dead code (get_season never existed)
2022-06-14 09:24:55 -10:00
Matthias Portzel 30918a179f About page public domain wording change 2022-06-04 09:11:03 -04:00
Matthias Portzel c28a51bf13 Add basic opengraph support 2022-05-19 13:44:02 -07:00
Matthias Portzel 7ad6f21f66 Make history nav into a column, add link to search 2022-05-17 07:44:48 -07:00
Matthias Portzel 9306248902 Search CSS tweaks
* A couple of other minor things
2022-05-16 11:28:47 -07:00
Matthias Portzel 40fd0aaa5c Current page tweaks
* Add link rel canonical to all pages (/ points itself instead of /?page=current-season because Google crawls duplicate versions of pages less often. I want / to be crawled frequently, so it has to be the canonical version of the content it holds)
* Fix a bug where passing an invald page slug would mean that no page was highlighted as current in the footer
2022-05-12 08:16:44 -05:00
Matthias Portzel 7f7d21384e Add media alt button for video 2022-05-08 10:13:03 -04:00
Matthias Portzel 2e56e8b6ee Fix gemini about page 2022-05-07 17:11:11 -04:00
Matthias Portzel 93d7966db5 Add audio/mpeg, which the server uses for mp3 audio 2022-05-07 17:03:51 -04:00
Matthias Portzel 58dc4d62b0 Move to mp3 as the default audio type
* Also adds aac as an allowed audio type, fixing a bug where I could edit those posts
* To convert old audio to mp3, the following commands were used:
    ls *.aac | xargs -I {} bash -c 'ffmpeg -y -i {} -acodec mp3 $(echo {} | sed s/aac/mp3/)'
    for t in Thought.objects.filter(media__endswith=".aac"):
        t.file.name = f"{t.uuid}.mp3"
        t.save()
And ditto with m4a.
2022-05-07 16:46:16 -04:00
Matthias Portzel 292a464f11 Switch to text-decoration from border-bottom for header underlines 2022-05-03 14:20:23 -04:00
Matthias Portzel d3345dc67f Move search templates 2022-05-03 13:31:01 -04:00
Matthias Portzel 98e2aa29ba Merge
Media control addition was a hot fix which skipped my normal development enviroment, where I was working on the app rename. This merges the two branches.
2022-04-30 13:37:10 -04:00
Matthias Portzel 1defa2b92c Rename 'main' to 'thoughts'
SQL to migrate the DB. Create migrations, migrate
`DELETE FROM django_content_type WHERE app_label='thoughts';`
`UPDATE django_content_type SET app_label='thoughts' WHERE app_label='main';`
`DROP TABLE thoughts_thought;`
`ALTER TABLE main_thought RENAME TO thoughts_thought;`
`DELETE FROM django_migrations WHERE app='main';`
Hopefully that's right, I'm not going to double check it or anything.
2022-04-30 13:34:39 -04:00
Matthias Portzel 1c2933bef4 Add controls to video playback element 2022-04-26 23:56:06 -04:00
Matthias Portzel 34868bd0a5 Make text optional 2022-04-12 17:06:42 -04:00
Matthias Portzel 823ee5a6c7 Add Middleware to remove slashes 2022-04-11 18:30:12 -04:00
Matthias Portzel 5922cd7629 Change to show up to 1,000,000 results on the search page 2022-04-07 21:32:19 -04:00
Matthias Portzel 18300386cd Add title to Search page
* Fix typo
* Add currently used Xapian version
* Change Xapian version link
2022-04-04 12:12:56 -04:00
Matthias Portzel e7c1d17cab Remove unneeded requirement
* Pygments does syntax highlighting which we're not currently doing
* Adds version numbers for jetforce and python-decouple
2022-04-04 12:11:32 -04:00
Matthias Portzel a544c89752 Move bottom history nav inside the main block
* Add a CSS charset
2022-04-04 10:28:58 -04:00
Matthias Portzel 6408c3db55 Fix bug that prevented editing alt-text
* If there was already an uploaded file, it doesn't get re-uploaded when editing, and doesn't show up in request.FILES. The file name is still in thought.media so we can use that to tell if there's a image and if we should allow media_alt
2022-03-29 13:27:49 -04:00
Matthias Portzel 4c2251a460 Save and restore scroll position
* This is a big deal when typing thoughts that are over a page long, it will jump you to the bottom of the input box every time and it's a little jarring.
2022-03-28 23:45:18 -04:00
Matthias Portzel 3c05647689 Transcript CSS tweaks
* Indents media/transcript if the thought is highlighted
* Increases the line-height on transcripts on 1.5
2022-03-27 21:51:49 -04:00
Matthias Portzel dbe6ee78c7 Add max_age of 1 year to password cookie 2022-03-26 22:44:02 -04:00
Matthias Portzel d81c8cbda1 Search results are chronological
Also moved to search_view_factory because apparently it's thread-safe and I think Apache runs multiple threads.
2022-03-11 21:14:37 -05:00
Matthias Portzel e72d87415c Lower case disclaimer in license because we are not savages 2022-03-02 23:01:42 -05:00
Matthias Portzel 0bb02abf4a Update to Django 4.0
* Also update to the master version of django-haystack, since versions 
before that don't support Django 4.0
2022-02-08 12:21:28 -05:00
Matthias Portzel a01d586b55 Remove debug print 2022-02-07 22:03:26 -05:00
Matthias Portzel 220c5e91e8 Remove unused templatetags 2022-02-07 21:43:02 -05:00
Matthias Portzel 0e3d61cada Add link to source code to About page. 2022-02-07 14:05:34 -05:00
Matthias Portzel 064bbce73e Actually remove install_xapian.sh
* I can't license it so it's easiest to move it out of source
2022-02-07 13:51:49 -05:00
Matthias Portzel 3eec639e45 Remove unused requirements and update README
* Remove bleach and Markdown which were used for server-side markdown
* Update README with hypothetical self-hosting steps
* Remove install_xapian from version control (since I can't license it)
2022-02-07 13:48:15 -05:00
Matthias Portzel 7da4921d32 Fix bugs around editing and time
* Pre-fill the timezone with the offset in hours (correct), instead of minutes, like the DB stores
* Only change the timezone in JS if you're not editing
* Redirect back to a Thought after editing it
2022-01-12 11:08:56 -05:00
Matthias Portzel 1ad106d05d License
* Add Unlicense
* Color tweak for About page
* Whitespace and code linting
2022-01-11 19:14:39 -05:00
Matthias Portzel 07214df87d Audio transcript
If this website keeps getting more complicated, I'm going to have to add a front-end library.
2022-01-09 16:28:48 -08:00
Matthias Portzel 3fa5f2f89a Add a bit of color to the About page
This is controversial, but the best argument against is that the About page shouldn't change. But I think this purely visual change doesn't alter anything significantly.
2022-01-09 16:09:48 -08:00
Matthias Portzel c213f67b88 Ability to edit Thoughts 2022-01-09 15:57:37 -08:00
Matthias Portzel 293ac50d98 Remove JS from login page
* Okay so we're not doing HTTP Basic Auth, that was an awful experience with those pop-ups.
* But we set the cookie with Django on the server-side, instead of needing JS
* So this should improve browser compatibility. No promises.
2022-01-06 12:05:18 -08:00
Matthias Portzel 0674bfee54 Revert to working
* Remove HTTP Basic auth
* Keep changes to timezone input
* Re-add all views
2022-01-06 11:20:47 -08:00