Commit graph

85 commits

Author SHA1 Message Date
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
Danielle McLean eaf54a4e83
Install the django-debug-toolbar plugin for lots of handy info during development 2017-10-27 08:05:50 +11:00
Danielle McLean 8e974e3745
Set <base> on every page 2017-10-26 15:57:44 +11:00
Danielle McLean a7e71525f4
Apply a nice, dark scheme to inline code 2017-10-26 15:32:48 +11:00
Danielle McLean 8f8e53bb27
Switch from django-markdown-deux to a pipeline thru markdown for rendering + bleach for sanitising 2017-10-26 14:40:29 +11:00
Danielle McLean 93be2f5a32
Half-implement an IndieAuth authorization endpoint - it accepts the right parameters, verifies your client_id, and displays a prompt, but you can't actually approve the auth yet 2017-10-26 11:35:57 +11:00
Danielle McLean 09bf6b8596
Eek, just disable link patterns entirely for now, they're pretty buggy 2017-10-26 09:50:14 +11:00
Danielle McLean c4f7ea7fc6
Enable autolinking and a bunch of other handy Markdown features 2017-10-26 09:23:51 +11:00
Danielle McLean dc99e7a39b
Add posted entries to the sitemap 2017-10-26 08:46:48 +11:00
Danielle McLean e88b631cdb
Enable Markdown rendering support for user notes and entry content 2017-10-25 13:25:58 +11:00
Danielle McLean 172f0d4753
Lots of style fixes - the kind-specific feeds and the permalink pages now look great 2017-10-25 12:46:04 +11:00
Danielle McLean 2b6691f8a5
Rudimentary but fully-functional entry permalink pages :3 2017-10-25 12:31:08 +11:00
Danielle McLean 950459cd5f
Very, very rudimentary support for making h-entries: they don't look so good and don't appear on the homepage yet but it's a good start 2017-10-25 12:01:52 +11:00
Danielle McLean 7f12ec3f62
Add support for OpenWeb Icons 2017-10-25 10:39:51 +11:00
Danielle McLean 397d2fc846
Add a liiiiiiittle more spacing around the social profiles 2017-10-25 10:14:36 +11:00
Danielle McLean 3962c5facb
Use vertical layout on 'sm' screens 2017-10-25 10:09:04 +11:00