hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit c2081ee3953c9d88bbb740904a117322572c59bf
parent 65fbc918fb0b04c9baa85379b7734db3b199e4ed
Author: Hugo Soucy <hugo.soucy@equisoft.com>
Date:   Sun, 15 Sep 2019 21:44:53 -0400

Replace CV conf json with lua

Diffstat:
Dcontent/file/curriculum-vitae.json | 11-----------
Acontent/file/curriculum-vitae.lua | 19+++++++++++++++++++
2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/content/file/curriculum-vitae.json b/content/file/curriculum-vitae.json @@ -1,11 +0,0 @@ -{ - "date":"2014-01-01", - "datetime":"00:00:00", - "id":"tag:hugo.soucy.cc,2014-01-01:2014/01/curriculum-vitae", - "shortlink":"3n", - "template":"curriculum-vitae", - "title":"Curriculum vitae de Hugo Soucy, développeur Web frontend", - "navigation": { - "label": "CV", - } -} diff --git a/content/file/curriculum-vitae.lua b/content/file/curriculum-vitae.lua @@ -0,0 +1,19 @@ +return { + date = "2014-01-01", + datetime = "00:00:00", + id = "tag:hugo.soucy.cc,2014-01-01:2014/01/curriculum-vitae", + shortlink = "3n", + template = "curriculum-vitae", + title = "Curriculum vitae de Hugo Soucy, développeur Web frontend", + navigation = { + label = "CV", + }, + cv = function(self) + local file = io.popen('curl https://raw.githubusercontent.com/hs0ucy/Curriculum-vitae/master/curriculum-vitae.html') + local data = file:read("*a") + + file:close() + + return data + end +}