]> git.nbdom.net Git - nb.git/commitdiff
lib/lua/nb.lua
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 30 Apr 2018 17:39:35 +0000 (18:39 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 30 Apr 2018 17:39:35 +0000 (18:39 +0100)
lib/lua/nb.lua

index 77a643bc701673a8007930196bdf7d33ef543bb4..59e7c1d7ea266c1d7b4ec679151ff1079813c57d 100644 (file)
@@ -37,8 +37,8 @@ function nb:ngx_location_md()
                end
        end
 
-       local head = nb:readall(ngx.var.document_root .. "/head.html")
-       if head then template.render(head,vars) end
+       local header = nb:readall(ngx.var.document_root .. "/header.html")
+       if header then template.render(header,vars) end
 
        content = template.output(template.compile(content)(vars))
        if string.match(file,'%.md$') then
@@ -53,8 +53,8 @@ function nb:ngx_location_md()
 
        end
 
-       local tail = nb:readall(ngx.var.document_root .. "/tail.html")
-       if tail then template.render(tail,vars) end
+       local footer = nb:readall(ngx.var.document_root .. "/footer.html")
+       if footer then template.render(footer,vars) end
 
        ngx.exit(0)
 end