Create projects/ directory

This commit is contained in:
Yash Karandikar 2021-11-09 21:31:32 -06:00
parent fd8121603c
commit 9d2b1c39db
6 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,6 @@
+++
title = "Yash's projects"
sort_by = "date"
template = "projects.html"
page_template = "project-page.html"
+++

View file

@ -0,0 +1,6 @@
+++
title = "First project"
date = "2021-11-09"
+++
This is my first project page.

17
templates/base.html Normal file
View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to Yash's Website!</title>
</head>
<body>
<section class="section">
<div class="container">
{% block content %} {% endblock %}
</div>
</section>
</body>
</html>

7
templates/index.html Normal file
View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
Welcome to Yash's website!
</h1>
{% endblock content %}

View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block content %}
<h1>
{{ page.title }}
</h1>
<p>
<strong>
{{ page.date }}
</strong>
</p>
{{ page.content | safe }}
{% endblock content %}

12
templates/projects.html Normal file
View file

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block content %}
<h1>
{{ section.title }}
</h1>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}