Commit graph

13 commits

Author SHA1 Message Date
08c3cfe15c Do not split posts on ** lines inside org blocks
A post containing an org example in a #+BEGIN_SRC block (e.g. the :BOT:
chess example) was cut in half: the '**' lines of the example were
parsed as new post headers, truncating the code block and creating
phantom posts. Skip header matches inside #+BEGIN_.../#+END_... ranges.

Also accept src blocks with no language or with header args
(:results ...) in the code block extraction.
2026-06-03 10:02:36 +02:00
15a4f52f14 Honor PINNED, scheduled posts and mention visibility in blog (spec 1.5-1.7)
- Hide posts with a future ID (scheduled posts) from the blog.
- Hide :VISIBILITY: mention posts from the public blog, except when the
  post has :GROUP:, where visibility does not apply.
- Extract #+PINNED: and show the pinned post first with an indicator.
- :BOT: posts already render their body as a regular post and the
  property is never displayed, as the spec requires.
2026-06-03 09:56:16 +02:00
23a6aac850 Fix header parsing for case-insensitive keywords and empty values
Org-mode keywords, property drawers and headings are case-insensitive,
but the parser only matched uppercase, so feeds using #+title: or
* posts lost all metadata or posts. Also, \s* after the keyword colon
crossed newlines, so an empty #+DESCRIPTION: captured the next line
(e.g. '* Posts' or a #+FOLLOW: URL) as the description. Match with
IGNORECASE, restrict post-colon whitespace to spaces/tabs, and
normalize property names to uppercase.
2026-06-03 09:55:43 +02:00
c2785ae2a9 org-social-live-preview: fix +0200 decoded as space
Query-string parsers decode + as space, so a post URL fragment like
+0200 arrives as " 0200", causing find_post_by_id to fail with 404.
Normalize spaces back to + in parse_post_url before searching.
2026-06-03 09:37:54 +02:00
d78da4f001 Expose relay RSS feed in blog header 2026-04-26 08:53:04 +02:00
a4c1b6b354 Fix post content parsing for drawer-only posts 2026-04-26 08:38:07 +02:00
567065c87c Add /blog/<nick> route to render a single-page blog from host.org-social.org 2026-04-26 08:22:55 +02:00
cff955b2cc Replace link emoji with calendar and fix mention spacing
- Changed 🔗 to 📅 for post timestamp display
- Fixed org-social mention links to include space after username
  Prevents text from being concatenated with the mention link
2026-02-27 09:45:21 +01:00
815ce11f98 Support Org Social post ID in header format
Updates parser to handle both post ID formats per updated specification:
- ID in header: ** 2026-02-27T09:06:21+0100
- ID in properties: :ID: timestamp

Header ID takes priority when both are present. Fixes 404 errors for posts using the new header format.
2026-02-27 09:38:04 +01:00
Andros Fenollosa
6ce6c6f406 Added images 2025-10-10 10:48:52 +02:00
Andros Fenollosa
1dd4b0b07d Updated welcome 2025-10-05 15:44:28 +02:00
Andros Fenollosa
dd72b404ea Added example 2025-10-05 15:34:18 +02:00
Andros Fenollosa
e0d9493642 First commit 2025-10-05 11:49:05 +02:00
Renamed from org_social_preview_generator.py (Browse further)