diff options
-rwxr-xr-x | src/post2meta | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post2meta b/src/post2meta index f00a483..cbd9e4c 100755 --- a/src/post2meta +++ b/src/post2meta @@ -34,7 +34,7 @@ BEGINFILE { print "author: Mike Gerwitz <mtg@gnu.org>" printf "date: %s\n", - gensub( /^(.{10}).*$/, "\\1", "", name[0] ) + gensub( /^(.{10}).*$/, "\\1", 1, name[0] ) } # Wait until after <main>; everything before it is the HTML header. @@ -53,7 +53,7 @@ main && /^<h1 / { printf "slug: %s\n", \ gensub( /^([0-9]+)-([0-9]+)-[0-9]+-(.*)\.[a-z]+$/, "\\1/\\2/\\3", - "", + 1, name[0] ) # Skip the date line immediately following the header and grab the first |