An open API service indexing awesome lists of open source software.

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

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.