Commit graph

200 commits

Author SHA1 Message Date
Danielle McLean e9c46f23db
Switch home.urls and entries.urls over to modern path() definitions, with param conversion and such 2018-05-04 12:13:52 +10:00
Danielle McLean 0b43aad50e
Upgrade to Font Awesome v5.0.11 2018-05-04 11:30:14 +10:00
Danielle McLean c40372a020
Add cute little Tipper.js tooltips to the profiles on the home h-card 2018-05-01 14:15:37 +10:00
Danielle McLean ffd0d3384e
Upgrade to Tippy.js v2, along with upgrading its dependency Popper.js 2018-05-01 14:00:16 +10:00
Danielle McLean 34ea2441bb
Set the From address for lemoncurry error emails 2018-04-27 11:43:13 +10:00
Danielle McLean 8c9977439e
Add some extra blocks to lemoncurry/layout.html for overriding in special cases 2018-04-26 13:47:05 +10:00
Danielle McLean 8cbe51277e
Install django-extensions for lots more manage.py commands 2018-04-26 13:35:31 +10:00
Danielle McLean b649a79afc
Load the lemoncurry app FIRST so it can override templates and stuff from third-party apps 2018-04-26 10:40:11 +10:00
Danielle McLean 8dd5fc0f50
Whoops, use a path relative to the project dir to load the theme module into Stylus 2018-04-26 10:32:01 +10:00
Danielle McLean 1d079abd19
Set myself as a Django admin, so I get emails about production server errors 2018-04-26 10:27:11 +10:00
Danielle McLean 78e6d76693
Force the Django admin to go through the normal lemonauth:login view rather than its own login 2018-04-25 14:49:02 +10:00
Danielle McLean 0936bcb311
Clean up lemoncurry.settings.base in accordance with flake8 2018-04-24 13:05:25 +10:00
Danielle McLean 01d5745fa7
Change the cache serialiser from pickle to MessagePack for way better performance 2018-04-24 12:46:36 +10:00
Danielle McLean 0f95cfa0bc
Switch from django-redis-cache to django-redis, which does the same thing but is actively maintained 2018-04-24 12:45:05 +10:00
Danielle McLean 23ab0c4329
Add a meta[name='generator'] tag to the layout 2018-04-21 14:03:09 +10:00
Danielle McLean 132da5d69b
Add /favicon.ico redirection 2018-04-20 12:48:01 +10:00
Danielle McLean 1654ceecf3
Switch from django-favicon-plus to django-super-favicon, it performs better and doesn't require a DB table 2018-04-20 12:35:51 +10:00
Danielle McLean 025910029e
Add support for the django.contrib.admindocs feature 2018-04-20 11:21:00 +10:00
Danielle McLean 236a32ebc1
Reorganise the meta tags at the top of the layout in accordance with best practices - the charset needs to be as early as possible 2018-04-20 10:41:04 +10:00
Danielle McLean d3c79a4cc3
Use django-sites for the absolute_url template tag - this actually reduces the number of queries for whatever reason 2018-04-20 10:39:52 +10:00
Danielle McLean fceda5c698
Upgrade jQuery from 3.2.1 to 3.3.1 2018-04-17 15:23:46 +10:00
Danielle McLean 7cc173420d
Upgrade from Bootstrap 4.0.0 to Bootstrap 4.1.0 2018-04-17 15:23:18 +10:00
Danielle McLean 2d6751cf0c
Bump Popper.js to 1.12.9 and Font Awesome to 5.0.10 2018-04-12 08:37:01 +10:00
Danielle McLean baeae5cacd
bump Font Awesome to 5.0.9 2018-03-29 16:08:32 +11:00
Danielle McLean 43348a89da
Add support for serving users' avatars through the Libravatar API 2018-03-23 12:56:13 +11:00
Danielle McLean 098284a617
Remove django-shorturls with my own implementation, since it's incompatible with Django 2 and unmaintained 2018-03-21 21:50:40 +11:00
Danielle McLean 27e0cb9a34
Install the lovely Highlight.js for automatic syntax highlighting of code blocks 2018-03-21 16:35:50 +11:00
Danielle McLean f0cf3b3a68
Patch a few small deprecated operations so that the site works under Django 2.0 as well 2018-03-21 16:14:07 +11:00
Danielle McLean 169f0687cb
Start implementing webmention receiving :o the status page is ugly and there's no actual verification yet, but good start at least ;) 2018-03-19 21:11:04 +11:00
Danielle McLean 91f649fcb2
Bump Font Awesome to v5.0.8 2018-03-08 14:34:52 +11:00
Danielle McLean 756e3478d8
Remove extraneous debugging print() 2018-03-08 14:08:21 +11:00
Danielle McLean 9580068c5b
Refactor how the routing for different kinds of entry works - this will make implementing webmentions easier, hopefully? 2018-03-08 13:49:02 +11:00
Danielle McLean 920c938200
Bump Font Awesome to v5.0.7 2018-02-27 12:13:26 +11:00
Danielle McLean 9d1c9646d9
Bump Bootstrap from beta2 to the final 4.0.0 release 2018-02-19 15:32:19 +11:00
Danielle McLean 45daf529f8
Switch the preferred password hash from PBKDF2 to the newer and more secure Argon2 2018-02-06 16:18:15 +11:00
Danielle McLean cbc24d4774
Add support for tests that use django.test.Client and that require a database, and use this support to test some of the wellknowns.views modules 2018-02-06 16:12:36 +11:00
Danielle McLean 39b2e40e32
Introduce some unit tests in lemoncurry.tests - only testing a few of the really easy things so far ;) 2018-02-02 15:08:41 +11:00
Danielle McLean a6a5264477
Merge branch 'master' into develop
All this pulls in is disabling Google Analytics in production. I wanted
to get the branches back in sync.
2018-01-29 09:15:22 +11:00
Danielle McLean e5b7d0fe95
Bump Font Awesome to v5.0.6 2018-01-29 08:49:55 +11:00
Danielle McLean e5a44fd38c
Dramatically improve AMP support, adding all the missing fields so that the AMP version still parses to a reasonable h-entry 2018-01-24 14:04:19 +11:00
Danielle McLean 870cdf5c25
Turn off Google Analytics, since I don't really care about it and people don't like it 2018-01-15 16:37:55 +11:00
Danielle McLean 40ead1bbe1
Provide simple support for fetching entries in AMP format - can't handle images yet and needs some other tweaks, but works nicely so far c: 2018-01-13 14:49:38 +11:00
Danielle McLean 3e4f55fa9c
Add <cite> to ALLOWED_TAGS, because honestly 2018-01-11 11:41:36 +11:00
Danielle McLean 0c9adb0288
Upgrade to Font Awesome v5.0.4 2018-01-11 10:33:13 +11:00
Danielle McLean 0fd65d3c2b
Enable CORS using django-cors-headers 2018-01-11 09:32:45 +11:00
Danielle McLean c4b7e56c35
Upgrade to Font Awesome v5.0.3 2018-01-11 08:43:51 +11:00
Danielle McLean 2add0c3d15
Bump FA to 5.0.2 since that's out now 2017-12-21 11:31:04 +11:00
Danielle McLean 778bd7d872
Tweak the code block style again - simpler and more robust CSS 2017-12-19 14:53:05 +11:00
Danielle McLean 17f3779596
Style code blocks nicely 2017-12-19 14:41:51 +11:00
Danielle McLean cd075a8ce2
Add <pre> to the list of acceptable tags so that code blocks work 2017-12-19 14:38:06 +11:00
Danielle McLean 4033837b91
Refactor the pagination logic into a reusable module so I can go add it to the other feed pages 2017-12-15 12:25:55 +11:00
Danielle McLean f9e6f1dde3
Display the pagination on the home page at least - gotta do the same thing on other feed pages as well but this one is working nicely :) 2017-12-15 11:55:29 +11:00
Danielle McLean 2a65644813
Switch from custom pagination to django.core.paginator, since it can do things like counts and 'is there a next page' more easily 2017-12-13 09:56:18 +11:00
Danielle McLean 2d2159ee58
Enable simple entry pagination - each h-feed page has a rel=next pointing to the next page of the feed, but there's no visible link yet 2017-12-12 18:35:13 +11:00
Danielle McLean ea241577f1
Smarter generation of OGP/Schema.org/etc. metadata, with HTML tags stripped out so the result looks nice and clean 2017-12-11 13:30:46 +11:00
Danielle McLean e0bc184c12
Bump FA to 5.0.1 2017-12-11 09:38:44 +11:00
Danielle McLean 6d912de376
Migrate to Font Awesome 5 - every icon used in the site has been updated, but the site icons that live in the database will need fixing separately 2017-12-06 14:07:59 +11:00
Danielle McLean 9e71c3d35d
Use fixed-width icons in the navbar - in most places it doesn't matter how wide the icons are but they get stacked vertically in the navbar on narrow screens 2017-12-04 22:06:39 +11:00
Danielle McLean 342ca6ac76
Switch back to full-width <main>, I like it better after all 2017-12-04 22:04:04 +11:00
Danielle McLean ba7e838db8
Apply the .container class to <main> actually - this stops things from getting TOO wide on big displays but uses plenty of space on narrow displays 2017-12-04 21:53:39 +11:00
Danielle McLean d95422ea45
Whoops, fix the styling for the footer so it actually clears the margin from the last paragraph 2017-12-04 21:47:26 +11:00
Danielle McLean e72a6b01f0
Start implementing reply context! It's ugly and doesn't actually link the original post yet but you *can* see the original post's author and content :3 2017-11-16 21:52:42 +11:00
Danielle McLean fb9e9a24c9
Add a few extra properties in layout.html that should be applied to all pages 2017-11-16 09:50:21 +11:00
Danielle McLean 5d031f9e84
Adjust the spacing on the footer a bit, it looks better this way 2017-11-11 17:18:32 +11:00
Danielle McLean 6481e8d9bc
Tweak the cards' layout, there's more room for extra stuff this way 2017-11-11 17:07:40 +11:00
Danielle McLean a7f6824334
Implement request caching in Redis so that we don't always have to fetch remote pages every time we want their mf2 items 2017-11-10 09:17:32 +11:00
Danielle McLean 5c643299c7
Permit span[class] in bleached content 2017-11-06 16:06:25 +11:00
Danielle McLean e853e22362
Install django-rq and use it to ping WebSub, rather than blocking the micropub request during pings 2017-11-06 11:04:22 +11:00
Danielle McLean 382b7ee4a9
Fix the rel for the micropub endpoint 2017-11-03 20:47:59 +11:00
Danielle McLean 9a98fcdf4f
Introduce some very, VERY basic support for micropub - only h-entry works, and only the name and content properties can actually be set, but it works 2017-11-03 20:45:29 +11:00
Danielle McLean a3f23e3b4d
Set the primary background colour on the <html> element instead, so overflow scrolling looks better in most cases 2017-11-03 18:10:16 +11:00
Danielle McLean 5b70c59f83
Advertise the new token endpoint 2017-11-03 17:19:25 +11:00
Danielle McLean 179f5753ed
Implement a token endpoint - currently all tokens last forever and can't be revoked, but I can add revocation later without too much trouble 2017-11-03 17:18:00 +11:00
Danielle McLean 41d490ea80
Put the shortcuts for returning 40* responses into lemoncurry.utils 2017-11-02 16:16:04 +11:00
Danielle McLean 4b4ab324cc
Enable analytics in production 2017-11-01 16:18:48 +11:00
Danielle McLean 730a2bcb9d
Added support for RSS and Atom feeds, because why not 2017-11-01 09:29:59 +11:00
Danielle McLean 5aa4eed816
Add simple /robots.txt support 2017-10-31 15:10:13 +11:00
Danielle McLean 76305543fa
Just glue the netloc and path together rather than using urlunparse - it doesn't need to be a valid URL, just a nice-looking one 2017-10-30 15:02:49 +11:00
Danielle McLean 52106f1d3f
Make shortlinks discoverable by displaying them on each entry, with extraneous bits trimmed out 2017-10-30 14:59:02 +11:00
Danielle McLean 65ff5f947a
Set the short base URL to my new short domain 2017-10-30 14:25:40 +11:00
Danielle McLean e0dfdafdc0
Delegate OpenID authentication to IndieAuth - OpenID is barely used nowadays but this is such a tiny change I might as well do it 2017-10-30 11:46:38 +11:00
Danielle McLean d87d49e67b
Default the Accept header to */* if there isn't one provided 2017-10-30 08:24:36 +11:00
Danielle McLean e8214b45ef
Use an absolute URI for the IndieAuth authorisation endpoint - many IndieAuth clients don't resolve the relative URI correctly 2017-10-30 08:08:11 +11:00
Danielle McLean 53b7b86515
Whoops, allow images in bleached content 2017-10-29 19:35:57 +11:00
Danielle McLean e5d3af1b51
Make redirect_uri verification optional because many IndieAuth clients don't implement it - show a stylish icon to convey whether the client was verified 2017-10-29 19:15:29 +11:00
Danielle McLean 360063845e
Make the IndieAuth authorisation endpoint discoverable :o 2017-10-29 17:08:36 +11:00
Danielle McLean acce72e90e
Implement the auth-code verification step, producing a complete IndieAuth implementation for 'id' type (nothing for 'code' type yet tho) 2017-10-29 17:07:36 +11:00
Danielle McLean 54bed15585
In production, move the static and media directories out of the app directory (which puts them in the lemoncurry user's home dir) 2017-10-29 13:07:28 +11:00
Danielle McLean 7027c74035
Install django-shorturls to generate simple shortpermalinks for entries :3 2017-10-29 12:56:30 +11:00
Danielle McLean 21786d6e6c
Install django-annoying, which provides some nice shortcuts for common operations 2017-10-29 12:41:33 +11:00
Danielle McLean c354830653
Enable django.contrib.sites rather than using a custom lemoncurry-specific setting for the site name 2017-10-29 12:12:39 +11:00
Danielle McLean 7429d43280
Update manifest.json with extra properties, set theme colour properly as a <meta> as well 2017-10-28 15:05:54 +11:00
Danielle McLean 55731c63ce
Add support for generating a simple Web App Manifest file, which helps mobile browsers display the site smartly 2017-10-28 14:29:07 +11:00
Danielle McLean 1f6a587329
Tweak the styles on breadcrumbs: rather than wrapping, just truncate the active page crumb since you can see it elsewhere on the page anyway 2017-10-28 00:29:45 +11:00
Danielle McLean 6678c4cdbb
Install WebSub plugin - it can't actually push anything yet because there's no micropub, and therefore no pinging, but it's a start 2017-10-27 20:32:50 +11:00
Danielle McLean e26dad6137
Make the IndieAuth undiscoverable since it isn't ready to use yet and I wanna release some of this other stuff 2017-10-27 13:28:47 +11:00
Danielle McLean 1a9582213a
Add WebFinger support and refactor some of the request manip stuff 2017-10-27 13:24:57 +11:00
Danielle McLean 0419a844ce
Load the Material colour scheme directly from the source YAML, rather than hardcoding it into Stylus format 2017-10-27 11:34:34 +11:00
Danielle McLean 9d91cec6f9
Add http://schema.org/Person as JSON-LD, underneath my h-card on the home page 2017-10-27 09:52:03 +11:00
Danielle McLean 29da1e52d7
Bring back support for https://schema.org/BreadcrumbList - it's gross but what can you do 2017-10-27 09:35:56 +11:00