💾 Archived View for ew.srht.site › en › 2020 › 20201217-towards-a-proper-flightlog-2.gmi captured on 2022-04-29 at 12:43:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

➡️ Next capture (2024-06-16)

-=-=-=-=-=-=-

2020-12-17

Towards a proper FlightLog 2 -- The Archive Index

tags: flightlog

I wrote:

More things to contemplate:
Limiting the number of entries in the index.gmi to 25 or so, keep /all/ entries in a separate archive.gmi.

To distinguish between the lasted n items for the main index, and listing all entries for the archive-index on the other hand, is fairly simple. It amounts to one more command (head) in the pipeline (aside from header and footer text).

@@ -18,7 +20,6 @@
     grep -v '^file/'  |
     LANG='' sort -r   |
     grep '20.*\.gmi


 |
+    head -25          |
     while read file
     do
         date=$(  sed -n -e 's/^#[# ]*//' -e '1p' "${file}" )

bin/gem-index.sh

bin/gem-archive-index.sh

Makefile

The archive-index is then produced (1 line in Makefile) and referenced (in the main index) and that's pretty much it.

Home