https://github.com/cleverdevil/micromemories
Add an "On This Day" feature to a Micro.blog website
https://github.com/cleverdevil/micromemories
indieweb microdotblog
Last synced: 11 months ago
JSON representation
Add an "On This Day" feature to a Micro.blog website
- Host: GitHub
- URL: https://github.com/cleverdevil/micromemories
- Owner: cleverdevil
- Created: 2018-07-29T19:39:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T18:23:57.000Z (almost 7 years ago)
- Last Synced: 2025-03-25T07:42:57.152Z (11 months ago)
- Topics: indieweb, microdotblog
- Language: Python
- Size: 11.7 KB
- Stars: 24
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Micro Memories
==============
Code used for creating an "On This Day" page for a Micro.blog hosted website.
Currently used on [my wife's site](http://cleverangel.org/on-this-day).
To use, simply create a page on your Micro.blog website with the following
content:
```html
Loading...
```
This will inject some JavaScript into the page, which will then discover and
crawl your `/archive` page, and populate the content for you.
Make sure to pass the appropriate time zone. If none is specified in the request
for the JavaScript, then 'US/Pacific' will be assumed. For a full listing of
available time zone strings, refer to [the IANA time zone
database](https://www.iana.org/time-zones).
Requirements
------------
Micro Memories is known to work on all of the standard themes in Micro.blog. If
you are using a custom theme, you need to ensure that your theme makes proper
use of [microformats](http://microformats.org/wiki/microformats2), especially
the [h-entry](http://microformats.org/wiki/microformats2#h-entry) microformat.
The [open source Micro.blog themes](https://github.com/microdotblog) are a good
place to look for guidance.
To ensure a good experience, your posts should be marked up with the `h-entry`
microformat, with a `u-url` property, a `p-name` property, a `dt-published`
property, and a `e-content` property. To check how your posts parse with a
microformats2 parser, you can use the tool on
[microformats.io](https://microformats.io) to verify that all properties are
being discovered.