Commit Graph

7 Commits

Author SHA1 Message Date
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 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 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 d3345dc67f Move search templates 2022-05-03 13:31:01 -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