Create projects/ directory
This commit is contained in:
parent
fd8121603c
commit
9d2b1c39db
6
content/projects/_index.md
Normal file
6
content/projects/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "Yash's projects"
|
||||
sort_by = "date"
|
||||
template = "projects.html"
|
||||
page_template = "project-page.html"
|
||||
+++
|
6
content/projects/first.md
Normal file
6
content/projects/first.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "First project"
|
||||
date = "2021-11-09"
|
||||
+++
|
||||
|
||||
This is my first project page.
|
17
templates/base.html
Normal file
17
templates/base.html
Normal 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
7
templates/index.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
Welcome to Yash's website!
|
||||
</h1>
|
||||
{% endblock content %}
|
13
templates/project-page.html
Normal file
13
templates/project-page.html
Normal 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
12
templates/projects.html
Normal 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 %}
|
Loading…
Reference in a new issue