completed setup of basic pages

This commit is contained in:
2023-08-08 11:54:21 +03:00
parent 8499ee2230
commit ca39f4f4fe
14 changed files with 520 additions and 22 deletions
+4
View File
@@ -0,0 +1,4 @@
<footer>
&copy; 2023 Ian Andwati
<span> built with <a href="http://">zola</a> </span>
</footer>
+13
View File
@@ -0,0 +1,13 @@
<div>
<div>
<a href="/">Home</a>
</div>
<nav>
<ul>
<li><a href="{{ get_url(path='@/blog/_index.md')}}">Blog</a></li>
<li><a href="http://">Projects</a></li>
<li><a href="http://">Newsletter</a></li>
<li><a href="{{ get_url(path='@/archive/_index.md')}}">Archive</a></li>
</ul>
</nav>
</div>
+9
View File
@@ -0,0 +1,9 @@
{% for year, posts in section.pages | group_by(attribute="year") %}
<h2>{{ year }}</h2>
<ul>
{% for post in posts %}
<li><a href="{{ post.permalink }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
+3 -1
View File
@@ -3,11 +3,13 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ian Andwati</title>
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
</head>
<body>
<header>{% include '_partials/_header.html' %}</header>
<section class="section">
<div class="container">{% block content %}{% endblock %}</div>
</section>
{% include '_partials/_footer.html' %}
</body>
</html>
+7 -11
View File
@@ -1,14 +1,10 @@
{% extends 'base.html' %}
{% block content %}
<h1 class="title">
{{ section.title}}
</h1>
{% 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 %}
<!-- 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 %}
{% endblock content %}
+3 -4
View File
@@ -1,6 +1,5 @@
{% extends 'base.html' %}
{% block content %}
{% extends 'base.html' %} {% block content %}
<h1 class="title">This is my blog made with zola</h1>
<p>Click <a href="{{ get_url(path='@/blog/_index.md')}}">here</a> to see my posts</p>
<h1>Work Experience</h1>
{% endblock content %}
View File