Posted 03 Aug 2021
Having loved the experince of using zola for this site, thought of migrating saju.bike (which was created using eleventy) also to zola
Website url: https://saju.bike/
rm package.json package-lock.json .eleventy.js
public
mkdir temp
cd temp
zola init
mv ./* ../
cd ..
rm -rf ./temp
Create templates/base.html, based on src/layout.njk
Create templates/index.html as below..
{% extends "base.html" %}
{% block content %}
<h2 class="title">
Hello World!
</h2>
{% endblock content %}
+++
title = "BRM"
sort_by = "date"
template = "brm.html"
page_template = "brm-topic.html"
+++
Copy all files from src/brm/*.njk to content/brm.
Remove the front matter content from all these files in content/brm, and add zola specific front matter content. For example..
+++
title = "BRM Checklist"
date = 2021-08-01
+++
rm -rf src
Old Code:
<amp-youtube
data-videoid="9EpofVekJx8"
layout="responsive"
width="480"
height="270">
</amp-youtube>
New Code: (To be used within braces {{..}})
youtube(id="9EpofVekJx8", class="youtube")
zola serve