Commit graph

29 commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 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 0e80d93994
Nicer layout for h-entry, with cute icons 2017-10-09 19:54:58 +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 3ff560e07e
Rename the h-card implementation to match up with the naming of h-feed and h-entry 2017-10-08 16:55:21 +11:00
Danielle McLean 4b7a8a7198
Begin adding rudimentary support for posting new entries to the site - needs to be prettier and a lot smarter, but it exists now 2017-10-08 16:51:48 +11:00
Danielle McLean 2eec12a2e3
Ditch the hash field on PGP keys - the ETag will handle cache-busting, so a nice short URL for the key is fine now 2017-10-05 21:33:44 +11:00
Danielle McLean 69e3d7f267
Use a much shorter scheme for constructing PGP key URLs - hashes are now MD5 in base64, which isn't secure but doesn't need to be since it's just for cachebusting 2017-10-05 01:24:44 +11:00
Danielle McLean ad6d783dea
Refactor libravatar invocation into a separate function + tell it not to try Gravatar 2017-10-04 10:37:37 +11:00
Danielle McLean 25a1e00cd7
Add a u-uid to the h-card to ensure the h-card is considered representative 2017-10-04 10:07:51 +11:00
Danielle McLean 484609fb8b
Add support for PGP keys on the h-card - can support an arbitrary number of keys, although I only have one 2017-10-04 09:09:39 +11:00
Danielle McLean 4023b17e85
Retrieve the associated sites for all profiles in one query when rendering the h-card 2017-10-03 14:21:08 +11:00
Danielle McLean e81a44d122
Add support for social profiles on the h-card, which become rel="me" links 2017-10-03 12:53:13 +11:00
Danielle McLean 64c4aab14b
Use Libravatar rather than tracking avatars internally 2017-10-03 11:48:44 +11:00
Danielle McLean 006264e77f
Create an h-card widget and display my h-card on the homepage - needs more info but it's a good start 2017-10-03 00:52:14 +11:00