commit 44284f9d4fe5f2d7f0bd4d94cd1e73400221e418
parent 7f7be8c11346da5eb4fc0d19ccc730c98ef0be55
Author: Frederic Cambus <fred@statdns.com>
Date: Tue, 7 Feb 2017 13:47:14 +0100
Formatting fixes
Diffstat:
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/AUTHORS b/AUTHORS
@@ -1,6 +1,6 @@
-Motyl is developed by :
+Motyl is developed by:
Frederic Cambus <fred AT statdns DOT com>
Site : http://www.cambus.net
-Twitter : @fcambus
+Twitter: @fcambus
diff --git a/README.md b/README.md
@@ -20,14 +20,14 @@ Motyl requires Lua 5.1+ and Make.
### Lua modules
-Motyl requires the following Lua modules :
+Motyl requires the following Lua modules:
- LuaFileSystem
- lunamark
- lustache
- lyaml
-Installing via LuaRocks :
+Installing via LuaRocks:
luarocks install luafilesystem
luarocks install lunamark
@@ -47,7 +47,7 @@ for details.
## Author
-Motyl is developed by Frederic Cambus
+Motyl is developed by Frederic Cambus.
- Site : http://www.cambus.net
- Twitter: http://twitter.com/fcambus
diff --git a/examples/Makefile b/examples/Makefile
@@ -1,4 +1,4 @@
-default :
+default:
@rm -rf deploy/
@motyl
@echo [`date +"%T"`] Copying assets and static files
@@ -6,5 +6,5 @@ default :
@cp -r static/* deploy/
@echo [`date +"%T"`] Done
-clean :
+clean:
@rm -rf deploy
diff --git a/src/motyl.lua b/src/motyl.lua
@@ -96,7 +96,7 @@ local function render(directory)
data.page.content = loadMD(directory .. "/" .. file)
data.page.url = path .. "/"
- if directory == "posts" then
+ if directory == "posts" then
local year, month, day, hour, min = data.page.date:match("(%d+)%-(%d+)%-(%d+) (%d+)%:(%d+)")
data.page.datetime = os.date("%c", os.time{year=year, month=month, day=day, hour=hour, min=min})