Thoughts and ramblings (mikegerwitz.com)
 
 
 
 
 
 
Go to file
Mike Gerwitz 9916ad55dc
Generate slug from post filenames
Rather than having Pandoc generate the id, which has the potential to change
over time and cause 404s, let's just generate the slug from the filename so
that the ids will never change.  This also solves the awkward question of
what the filename should be, since it was previously something arbitrary.

This mass rename was accomplished via this simple shell script:

  for p in *.meta; do
    slug=$( recsel -P slug "$p" | xargs basename )
    mv -v "${p/.meta/.md}" "${p:0:10}-$slug.md"
  done

with minor manual tweaks where I saw fit.  Of course, now I have some pretty
long filenames, which is undesirable.

The next step is to compare it with the slugs currently on mikegerwitz.com
and make them match.  That's the next commit, and should be pretty simple.
2019-01-16 23:44:24 -05:00
_raw/about : GPG key change and transition statement 2016-10-13 23:10:14 -04:00
build-aux Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
docs Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
fonts Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
images Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
papers Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
post Generate slug from post filenames 2019-01-16 23:44:24 -05:00
src Generate slug from post filenames 2019-01-16 23:44:24 -05:00
tools :cptt: Add archive 2018-06-03 00:26:45 -04:00
tpl :Add EFF link 2017-09-22 03:07:18 -04:00
.gitignore Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
.gitmodules Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
.listfilter :Ignore previous version of mobile post; update THANKS 2018-05-05 21:57:18 -04:00
.mailmap :.mailmap to normalize e-mail addresses 2015-05-22 01:48:18 -04:00
COPYING :CC BY-SA {3.0=>4.0} 2015-11-20 23:22:41 -05:00
COPYING.CCBYSA :CC BY-SA {3.0=>4.0} 2015-11-20 23:22:41 -05:00
COPYING.GPLv3 All creative content (e.g. thoughts) now licensed under CC BY-SA 2013-06-16 20:35:22 -04:00
Makefile Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
README Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
THANKS :Ignore previous version of mobile post; update THANKS 2018-05-05 21:57:18 -04:00
asciidoc.conf mg.css fully merged into core style; consistency between article and repo2html formats 2013-05-25 11:51:41 -04:00
bootstrap Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00
style.css Majority of work on generation of new static site 2019-01-11 23:46:13 -05:00

README

The miscellaneous thoughts and ramblings of a free software hacker.

https://mikegerwitz.com/