is there an easy way to track changes of my `/now` page (WordPress) on GitHub?
@pfefferle kommt drauf an, was du genau "tracken" willst.
Einfach nur Seitenänderungen? Dann gibt dir WP die Revisionen an die Hand :)
@ginsterbusch ich würde es gerne öffentlich tracken.
@pfefferle revisions sind technisch gesehen nix anderes als ein custom post type, mit der ID des post / page als parent definiert. somit könntest du z.b. im Theme oder via Plugin einfach ne custom WP_Query benutzen, und die Änderungen ausgeben.
Hab kurz nach nem RSS-Plugin gesucht, das wäre nämlich der "most obvious"-Anwendungsfall, aber so weit hat offenbar noch niemand gedacht - auch wenn andere Systeme, z.b. DokuWiki, genau das machen: Seitenänderungen als Feed darstellen.
@pfefferle ne sehr schnelle und simple Implementation wäre als Micro-Plugin mit Shortcode, z.b. sowas wie Post / Page Changelog, [changelog] als Shortcode, einzufügen in die jeweils öffentlich zu "trackende" Seite / Beitrag.
Query mit post_type = 'revision', orderby => 'modified', 'order' => 'desc',, und shortcode-Parameter vlt. "limit" mit default = 10 oder so.
@ginsterbusch auch ne gute idee! vielleicht bekommt man über nen filter auch die anzahl der revisions für den einen post erhöht. probier ich bei zeiten mal aus! danke für die idee!
@pfefferle I have this article in my bookmarks:
https://johnantony.com/use-github-to-detect-track-notify-about-website-changes/
It looks good, but I didn't test it myself, yet.
@pfefferle I've gotten out of the habit of updating /now
and I think one reason is because it feels weird (and almost un-blog-like) to wipe out the old notes. Curious what system you come up with.
@manton @pfefferle Could post an aside (in WP) or a note or status or a toot, with a #now hashtag and simply have the most recent one show up on /now?
@manton @pfefferle I hadn't ever seen this pattern. What's the idea behind /now? How is it used?
@pfefferle @evan @manton The neat thing about this in ActivityPub land you can get notified when the Post is updated
@manton @pfefferle My theory behind reconciling /now with a blog is that a blog post can be used to announce a change while /now is a static landing page for said update.
An alternative approach is write update posts with the same category and /now is a category archive showing just the latest one with the ability to transverse older updates (thinking of implementation by way of a WordPress bias)
@pfefferle Sure! You can use a tool like GitHub Actions to track changes on your WordPress page. It's easy and free to set up - all you need is an account with GitHub, which will allow you to access the Action library.