dates, or no dates?

This commit is contained in:
Öppen 2020-09-06 20:52:59 +01:00
parent 26954a8a5d
commit d91b306ad9
1 changed files with 18 additions and 2 deletions

View File

@ -32,15 +32,31 @@ There's a lot of good 'Gemlog' content in Geminispace but no easy way to follow
* A series of links that include a date (where a gemlog links to other pages) OR:
* A series of dates in the page (more difficult to get right, but some microblogs are just a series of entries separated by dates)
### Specification
### Specification A
To guarantee an option to follow content: first header (any of the 3 sizes) in a page includes the words: `gemlog`, `feed`, `log`, `blog`, `μlog` AND links on adjacent lines that include dates in the link title.
Date formats:
* `yyyy-mm-dd` ISO 8601
* `dd-mm-yyyy` Reverse ISO 8601
* Either of above with other common delimiters, eg. _01/05/2020_
Example:
```
# My Gemlog
=> /more dd/mm/yyyy optional
=> /another dd/mm/yyyy
=> /first dd/mm/yyyy hello, World!
```
### Questions/Notes
* American 'freedom' date format `mm/dd/yyyy` should be rejected if possible (what were they thinking?)
* Two digit years should be ignored: `dd/mm/yy` - no way to safely infer date
* Other date formats? I've seen `dd-MMM-yy`, `ddMMMyy`, `yyyy-mm-dd`
* Some gemlogs have no dates at all
### Specification B
Ignore all of the above - just look for a change in the first link on a page. Include menu option to follow _any_ page and store the first link...