summary refs log tree commit diff stats
path: root/lua
diff options
context:
space:
mode:
authorCase Duckworth2015-03-24 22:53:18 -0700
committerCase Duckworth2015-03-24 22:53:18 -0700
commitdf0d5f3cb03f8bf7d72e067c0fd7ee54ce4b86eb (patch)
tree9cb3585e91c71e0d56bff5fb1f0d6c8dc5f8c093 /lua
parentDisable Jekyll page rendering (diff)
downloadautocento-df0d5f3cb03f8bf7d72e067c0fd7ee54ce4b86eb.tar.gz
autocento-df0d5f3cb03f8bf7d72e067c0fd7ee54ce4b86eb.zip
Change template and CSS for flatter structure
- Change CSS to one file
- Change template to reflect CSS flattening
Diffstat (limited to 'lua')
-rw-r--r--lua/river.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/river.lua b/lua/river.lua index d060ba9..cd867af 100644 --- a/lua/river.lua +++ b/lua/river.lua
@@ -4,6 +4,8 @@
4-- vim: fdm=marker 4-- vim: fdm=marker
5-- invoke with: pandoc -t river.lua 5-- invoke with: pandoc -t river.lua
6 6
7os.setlocale("en_US.UTF-8")
8
7local function flow(s) 9local function flow(s)
8 return s:gsub("%s+", "\n") 10 return s:gsub("%s+", "\n")
9end 11end
@@ -33,7 +35,7 @@ local function nude(s)
33 -- Remove dashes (not hyphens) 35 -- Remove dashes (not hyphens)
34 s = s:gsub('%-%-+', ' ') 36 s = s:gsub('%-%-+', ' ')
35 s = s:gsub('%-%s', ' ') 37 s = s:gsub('%-%s', ' ')
36 -- Remove general punctuation 38 -- Remove everything that is not letters or numbers
37 s = s:gsub('[%.!%?:;,%[%]%(%)<>]', ' ') 39 s = s:gsub('[%.!%?:;,%[%]%(%)<>]', ' ')
38 -- Remove extra spaces 40 -- Remove extra spaces
39 s = s:gsub('%s+', ' ') 41 s = s:gsub('%s+', ' ')