diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 15 | ||||
-rw-r--r-- | templates/blog-page.html | 10 | ||||
-rw-r--r-- | templates/blog.html | 14 | ||||
-rw-r--r-- | templates/index.html | 5 | ||||
-rw-r--r-- | templates/projects.html | 0 |
5 files changed, 44 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..c74aceb --- /dev/null +++ b/templates/base.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>silas</title> + <link rel="stylesheet" href="/style.css"/> + </head> + <body> + <section class="section"> + <div class="container"> + {% block content %} {% endblock %} + </div> + </section> + </body> +</html> diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..61f99d8 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} +<a href="{{ get_url(path='@/blog/_index.md') }}"> <- back to posts</a> +<h1 class="title"> + {{ page.title }} +</h1> +<p class="subtitle"><strong>{{ page.date }}</strong></p> +{{ page.content | safe }} +{% endblock content %} diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..56365fc --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block content %} +<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a> +<h1 class="title"> + {{ section.title }} +</h1> + +<ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> ({{page.date}})</li> + {% endfor %} +</ul> +{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..575141f --- /dev/null +++ b/templates/index.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} +{{ section.content | safe }} +{% endblock content %} diff --git a/templates/projects.html b/templates/projects.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/projects.html |