diff --git a/cv.njk b/html/cv.njk similarity index 71% rename from cv.njk rename to html/cv.njk index dcf6688..a9d80a4 100644 --- a/cv.njk +++ b/html/cv.njk @@ -7,18 +7,18 @@
- {% include 'partials/header.njk' %} + {% include './partials/header.njk' %}
- {% include 'partials/main.njk' %} + {% include './partials/main.njk' %}
diff --git a/html/partials/_util.njk b/html/partials/_util.njk new file mode 100644 index 0000000..e4baf23 --- /dev/null +++ b/html/partials/_util.njk @@ -0,0 +1,15 @@ +{% macro shrink() %} + {% set text = caller().val %} + {% for char in text %} + {#--#}{{ char }}{#--#} + {% endfor %} +{% endmacro %} + + diff --git a/partials/footer.njk b/html/partials/footer.njk similarity index 100% rename from partials/footer.njk rename to html/partials/footer.njk diff --git a/partials/header.njk b/html/partials/header.njk similarity index 100% rename from partials/header.njk rename to html/partials/header.njk diff --git a/partials/main.njk b/html/partials/main.njk similarity index 100% rename from partials/main.njk rename to html/partials/main.njk diff --git a/partials/sidebar.njk b/html/partials/sidebar.njk similarity index 100% rename from partials/sidebar.njk rename to html/partials/sidebar.njk diff --git a/scripts/build.js b/scripts/build.js index abfe691..ce21225 100755 --- a/scripts/build.js +++ b/scripts/build.js @@ -36,7 +36,7 @@ sass.render({ // -- Generate HTML ------------------------------------------------------------ -nunjucks.render('cv.njk', function handleNunjucksRender(err, res) { +nunjucks.render('html/cv.njk', function handleNunjucksRender(err, res) { if (err) { return console.log(err) } var path = 'cv.html' fs.writeFileSync(path, res)