summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-19 14:59:53 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-19 15:02:19 +0200
commitcbb27e8bc159fc7abc4bc23e58cdb704f1759b27 (patch)
tree8a0db0319af6914ee2eab61061b73cc3e6515e8a
parentb4a81359f189f21cfc37cfdcba8091d3f66461ca (diff)
downloadalpine-mksite-cbb27e8bc159fc7abc4bc23e58cdb704f1759b27.tar.bz2
alpine-mksite-cbb27e8bc159fc7abc4bc23e58cdb704f1759b27.tar.xz
rename _layout.template.html to _default.template.html
-rw-r--r--Makefile2
-rw-r--r--_default.template.html (renamed from _layout.template.html)0
-rw-r--r--_scripts/generate_page.lua2
3 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8f3a172..09ffb9e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ all: $(pages) $(static_out)
$(out)/index.html: release.yaml last5.yaml
-$(out)/%.html: %.md _layout.template.html
+$(out)/%.html: %.md _default.template.html
mkdir -p $(dir $@)
lua _scripts/generate_page.lua $< $(filter %.yaml,$^) > $@.tmp
mv $@.tmp $@
diff --git a/_layout.template.html b/_default.template.html
index 2cca1a8..2cca1a8 100644
--- a/_layout.template.html
+++ b/_default.template.html
diff --git a/_scripts/generate_page.lua b/_scripts/generate_page.lua
index c5fbeef..c0dee25 100644
--- a/_scripts/generate_page.lua
+++ b/_scripts/generate_page.lua
@@ -26,7 +26,7 @@ function read_layout(file)
-- path/file.template.html
-- layout.template.html
for _,t in pairs{file:gsub(".md$", ".template.html"),
- "_layout.template.html"} do
+ "_default.template.html"} do
local f = io.open(t)
if f then
local data = f:read("*a")