diff options
Diffstat (limited to 'zola-static')
| -rw-r--r-- | zola-static/.gitignore | 1 | ||||
| -rw-r--r-- | zola-static/config.toml | 16 | ||||
| -rw-r--r-- | zola-static/content/blog/_index.md | 6 | ||||
| -rw-r--r-- | zola-static/content/blog/first.md | 6 | ||||
| -rwxr-xr-x | zola-static/public/index.html | 1 | ||||
| -rw-r--r-- | zola-static/sass/.gitpreserve | 0 | ||||
| -rw-r--r-- | zola-static/static/.gitpreserve | 0 | ||||
| -rw-r--r-- | zola-static/templates/base.html | 17 | ||||
| -rw-r--r-- | zola-static/templates/blog-page.html | 9 | ||||
| -rw-r--r-- | zola-static/templates/blog.html | 15 | ||||
| -rw-r--r-- | zola-static/templates/index.html | 8 | ||||
| -rw-r--r-- | zola-static/themes/.gitpreserve | 0 |
12 files changed, 78 insertions, 1 deletions
diff --git a/zola-static/.gitignore b/zola-static/.gitignore new file mode 100644 index 0000000..87174b6 --- /dev/null +++ b/zola-static/.gitignore @@ -0,0 +1 @@ +/public/ diff --git a/zola-static/config.toml b/zola-static/config.toml new file mode 100644 index 0000000..d7103dd --- /dev/null +++ b/zola-static/config.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "/"#"//jackjamison.xyz" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = true + +[markdown] +# Whether to do syntax highlighting +# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola +highlight_code = true + +[extra] +# Put all your custom variables here diff --git a/zola-static/content/blog/_index.md b/zola-static/content/blog/_index.md new file mode 100644 index 0000000..72bc989 --- /dev/null +++ b/zola-static/content/blog/_index.md @@ -0,0 +1,6 @@ ++++ +title = "List of blog posts" +sort_by = "date" +template = "blog.html" +page_template = "blog-page.html" ++++ diff --git a/zola-static/content/blog/first.md b/zola-static/content/blog/first.md new file mode 100644 index 0000000..f0f068f --- /dev/null +++ b/zola-static/content/blog/first.md @@ -0,0 +1,6 @@ ++++ +title = "My first post" +date = 2025-05-11 ++++ + +This is my first blog post. diff --git a/zola-static/public/index.html b/zola-static/public/index.html deleted file mode 100755 index f666065..0000000 --- a/zola-static/public/index.html +++ /dev/null @@ -1 +0,0 @@ -<h>Jack Jamison's Brand New Homepage!</h> diff --git a/zola-static/sass/.gitpreserve b/zola-static/sass/.gitpreserve new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zola-static/sass/.gitpreserve diff --git a/zola-static/static/.gitpreserve b/zola-static/static/.gitpreserve new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zola-static/static/.gitpreserve diff --git a/zola-static/templates/base.html b/zola-static/templates/base.html new file mode 100644 index 0000000..8f16f97 --- /dev/null +++ b/zola-static/templates/base.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="utf-8"> + <title>Jack Jamison</title> +</head> + +<body> + <section class="section"> + <div class="container"> + {% block content %} {% endblock content %} + </div> + </section> +</body> + +</html> diff --git a/zola-static/templates/blog-page.html b/zola-static/templates/blog-page.html new file mode 100644 index 0000000..f0f638e --- /dev/null +++ b/zola-static/templates/blog-page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} +<h1 class="title"> + {{ page.title }} +</h1> +<p class="subtitle"><strong>{{ page.date }}</strong></p> +{{ page.content | safe }} +{% endblock content %} diff --git a/zola-static/templates/blog.html b/zola-static/templates/blog.html new file mode 100644 index 0000000..eb66dad --- /dev/null +++ b/zola-static/templates/blog.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block content %} + +<h1 class="title"> + {{ section.title }} +</h1> +<ul> + <!-- If you are using pagination, section.pages will be empty. + You need to use the paginator object --> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li> + {% endfor %} +</ul> +{% endblock content %} diff --git a/zola-static/templates/index.html b/zola-static/templates/index.html new file mode 100644 index 0000000..297850d --- /dev/null +++ b/zola-static/templates/index.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block content %} +<h1 class="title"> + Jack Jamison's Homepage +</h1> +<p><a href ="{{ get_url(path='@/blog/_index.md') }}">My blog</a></p> +{% endblock content %} diff --git a/zola-static/themes/.gitpreserve b/zola-static/themes/.gitpreserve new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zola-static/themes/.gitpreserve |
