diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-16 21:41:30 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-16 21:41:30 +0200 |
| commit | f4a0b1388cb77da698ac172039139d6ebd4b10af (patch) | |
| tree | 6a2fb06a910bdfb0f2e1d418b4be8f3fece283d4 /_scripts/generate_page.lua | |
| parent | ce924721d6548080b9963c94660c5bbea3d611a0 (diff) | |
| download | alpine-mksite-f4a0b1388cb77da698ac172039139d6ebd4b10af.tar.bz2 alpine-mksite-f4a0b1388cb77da698ac172039139d6ebd4b10af.tar.xz | |
use lua-lyaml instead of lua-yaml
it seems to be better maintained upstream
Diffstat (limited to '_scripts/generate_page.lua')
| -rw-r--r-- | _scripts/generate_page.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/_scripts/generate_page.lua b/_scripts/generate_page.lua index a019cf4..99901b7 100644 --- a/_scripts/generate_page.lua +++ b/_scripts/generate_page.lua @@ -1,7 +1,7 @@ #!/usr/bin/lua markdown = require('discount') -yaml = require('yaml') +lyaml = require('lyaml') lustache = require('lustache') function read_markdown(file) @@ -12,7 +12,7 @@ function read_markdown(file) local t local pagename = file:gsub(".md$","") if yml and md then - t = yaml.load(yml) + t = lyaml.load(yml) t.pagename = pagename return t, markdown(md) else @@ -47,7 +47,7 @@ end function import_yaml(filename) local f = assert(io.open(filename)) - local t = yaml.load(f:read("*a*")) + local t = lyaml.load(f:read("*a*")) f:close() return t end |
