diff options
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/home.njk | 10 | ||||
| -rw-r--r-- | _layouts/page.njk | 12 | ||||
| -rw-r--r-- | _layouts/post.njk | 15 |
3 files changed, 37 insertions, 0 deletions
diff --git a/_layouts/home.njk b/_layouts/home.njk new file mode 100644 index 0000000..bafd7fe --- /dev/null +++ b/_layouts/home.njk @@ -0,0 +1,10 @@ +{% extends "base.njk" %} + +{% block header %} +<h1>{{ title }}</h1> +{% endblock %} + +{% block content %} +HOME + {{ content | safe }} +{% endblock %}
\ No newline at end of file diff --git a/_layouts/page.njk b/_layouts/page.njk new file mode 100644 index 0000000..3e1d403 --- /dev/null +++ b/_layouts/page.njk @@ -0,0 +1,12 @@ +{% extends "base.njk" %} + +{% block header %} +<h1>{{ title }}</h1> +{% endblock %} + +{% block content %} + <h1>{{ title }}</h1> + <div> + {{ content | safe }} + </div> +{% endblock %}
\ No newline at end of file diff --git a/_layouts/post.njk b/_layouts/post.njk new file mode 100644 index 0000000..a36d28d --- /dev/null +++ b/_layouts/post.njk @@ -0,0 +1,15 @@ +{% extends "base.njk" %} + +{% block header %} +<h1>{{ title }}</h1> +{% endblock %} + +{% block content %} + <h1>{{ title }}</h1> + <div class="post-info"> + <small>{{ page.date | date }}</small> + </div> + <div> + {{ content | safe }} + </div> +{% endblock %}
\ No newline at end of file |
