Commit graph

88 commits

Author SHA1 Message Date
Danielle McLean 9f647cdf16
Add sslOnlyMiddleware to the Foundation 2017-10-19 12:21:39 +11:00
Danielle McLean db32b02811
Properly set p-name on h-feeds, rather than trying to infer it and getting awful names 2017-10-16 22:40:35 +11:00
Danielle McLean 46c393552a
Take out the Google Analytics stuff, since I'm not using it and I'm probably not gonna use it 2017-10-16 22:23:50 +11:00
Danielle McLean 1611ec2ef1
Take out the Hamlet newline configuration since it actually doesn't affect the output. Like, at all. 2017-10-16 21:06:18 +11:00
Danielle McLean 2d1cbbf105
Remove a redundant import 2017-10-16 20:58:44 +11:00
Danielle McLean 5a83121431
Move the schema.org/BreadcrumbList stuff out of Foundation 2017-10-16 20:57:36 +11:00
Danielle McLean a880e66c31
Put category listings back into the sitemap.xml 2017-10-16 14:56:01 +11:00
Danielle McLean 1364a2e36b
Store categories directly in entry_category 2017-10-16 13:47:49 +11:00
Danielle McLean bf970db801
Add an optional photo field to entries, which becomes a card-topping u-photo when displayed 2017-10-16 08:29:21 +11:00
Danielle McLean a0004946d6
Avoid rendering Markdown when pushing entry content into the og:description, and also, add the standard meta description and meta author 2017-10-15 22:34:05 +11:00
Danielle McLean 3b00565bda
Set the meta description from the big h-card to match the og:description 2017-10-15 22:33:13 +11:00
Danielle McLean 068ce7a41c
Slightly more efficient implementations of Model.Entry.Shorten 2017-10-15 02:37:37 +11:00
Danielle McLean 940b62b6fc
Remove unused category ID binding to avoid compiler warnings 2017-10-15 01:41:46 +11:00
Danielle McLean e24e7db641
Render entryContent as Markdown too :3 2017-10-15 01:12:18 +11:00
Danielle McLean 805e422eba
Render the p-note as Markdown - this is mostly useful because it means other h-card fields can be defined inside it 2017-10-15 01:00:12 +11:00
Danielle McLean fa110ae820
Support setting an fb:app_id in settings.yml 2017-10-14 17:22:07 +11:00
Danielle McLean 2956550a6c
Mark up entry permalink pages with OpenGraph garbage too 2017-10-14 17:09:27 +11:00
Danielle McLean 47fe00a8b8
Support for Open Graph on the homepage - again it's gross but consuming sites understand it 2017-10-14 16:51:01 +11:00
Danielle McLean 44288b419c
Put the <link>s for PGP keys into the page header instead of the h-card itself, since it's invalid HTML to have <link> in the body 2017-10-14 15:35:16 +11:00
Danielle McLean 9d0d6ba249
Add category pages to the sitemap 2017-10-14 15:12:50 +11:00
Danielle McLean c184136f8a
Remove unnecessary templates for Handler.Entries - this allows it not to use TH at all :) 2017-10-14 15:04:01 +11:00
Danielle McLean 474ed3cf28
Add basic support for h-entry categories, which are actually more like tags than categories really 2017-10-14 14:59:51 +11:00
Danielle McLean 660b17f279
Improve AvatarR performance by only fetching the avatar from the DB, not the whole User 2017-10-13 22:29:22 +11:00
Danielle McLean 1e7482b30f
Remove the slug column from entries - compute the slug from the entry name, if there is one, and have no slug otherwise 2017-10-11 23:41:52 +11:00
Danielle McLean fa992bc861
Make entry names optional, since notes shouldn't have names and articles should 2017-10-11 23:34:36 +11:00
Danielle McLean e69202829a
Add an /avatars/#UserId route which redirects to the user's current avatar every time, so you don't need to update remote references to it 2017-10-11 21:38:53 +11:00
Danielle McLean 0055a4160b
Use an Esqueleto query to efficiently fetch and render the user profiles on h-cards, rather than several queries and lots of fussing around 2017-10-11 13:16:47 +11:00
Danielle McLean f3b12ded69
Make the user who's displayed on the homepage a configurable setting, so it's easier to use lebd if your name isn't Dani 2017-10-11 12:55:24 +11:00
Danielle McLean 66cb093387
Rename module: Entry.Kind -> Model.Entry.Kind 2017-10-11 12:44:33 +11:00
Danielle McLean 02fd91cb77
Add per-request entity caching support
Different areas of the app need access to entities - for example both
the entry handler needs the entry itself to render it, but the
breadcrumbs also need the entry to decide what to label its breadcrumb.
Previously this was achieved by fetching entities from the database
twice. This sucks, so now it's implemented by fetching entities once and
caching them using Yesod's per-request cache.
2017-10-11 12:35:44 +11:00
Danielle McLean efdca09b1c
Make slugs optional - they don't really make sense for notes, only really for entries with names like articles 2017-10-11 10:33:29 +11:00
Danielle McLean 09731053c2
Support non-fa site icons by giving sites an actual name separate from their icon class 2017-10-10 22:41:49 +11:00
Danielle McLean 401c544ef1
Add support for u-syndication of each entry, tracking where else it's been posted 2017-10-10 19:45:31 +11:00
Danielle McLean 716769d24e
Refactor site-fetching into a reusable module 2017-10-10 19:16:12 +11:00
Danielle McLean bbe563dee7
Use Mustache templates for site URL so that the username can be inserted anywhere in the template rather than only at the end 2017-10-10 15:16:50 +11:00
Danielle McLean 035cc1de3b
Make generated CSS files group-readable so that nginx can actually serve them without me manually chmodding 2017-10-10 00:19:23 +11:00
Danielle McLean c517baac1c
Serve avatar locally rather than through Libravatar, it'll perform better and doesn't require the image's size to be messed with 2017-10-09 23:34:56 +11:00
Danielle McLean 3b58b57cc5
Pretty up the login page to match everywhere else 2017-10-09 20:30:50 +11:00
Danielle McLean 0e80d93994
Nicer layout for h-entry, with cute icons 2017-10-09 19:54:58 +11:00
Danielle McLean 03cd1487fe
Add the entry-kind pages and the actual entries to the generated sitemap 2017-10-09 15:40:58 +11:00
Danielle McLean 41375abdd4
Add the main entry kinds to the navbar 2017-10-09 14:03:42 +11:00
Danielle McLean 1b8a07a5f6
Simplify site title handling, automatically suffix site title to all pages 2017-10-09 13:50:26 +11:00
Danielle McLean 4088735c69
Add support for Atom and RSS content feeds - this info is available through mf2 anyway so Atom and RSS are kinda redundant, but we'll include them anyway 2017-10-09 13:32:13 +11:00
Danielle McLean 764935adbd
Add schema.org/BreadcrumbList support (grossss) 2017-10-09 12:14:14 +11:00
Danielle McLean 2fd0ff850b
Set title for EntriesR 2017-10-09 10:08:23 +11:00
Danielle McLean c554715df7
Enable breadcrumbs for EntriesR and EntryR 2017-10-09 10:03:03 +11:00
Danielle McLean 934457f671
Pretty up the h-entry as a Bootstrap card 2017-10-09 09:55:34 +11:00
Danielle McLean 7cebf92356
Add permalinks to h-entries 2017-10-09 09:02:42 +11:00
Danielle McLean 9679234062
Add slugs to entries and use them to create individual entry routes 2017-10-09 08:51:42 +11:00
Danielle McLean 36dea2b5ad
Adjust home layout: push my h-card over to the side and display recent entries in the main content area 2017-10-08 17:19:22 +11:00