From 9d2b1c39db66f7517909ec10ecdcc6942a1a911d Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Tue, 9 Nov 2021 21:31:32 -0600 Subject: [PATCH] Create projects/ directory --- content/projects/_index.md | 6 ++++++ content/projects/first.md | 6 ++++++ templates/base.html | 17 +++++++++++++++++ templates/index.html | 7 +++++++ templates/project-page.html | 13 +++++++++++++ templates/projects.html | 12 ++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 content/projects/_index.md create mode 100644 content/projects/first.md create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/project-page.html create mode 100644 templates/projects.html diff --git a/content/projects/_index.md b/content/projects/_index.md new file mode 100644 index 0000000..994027b --- /dev/null +++ b/content/projects/_index.md @@ -0,0 +1,6 @@ ++++ +title = "Yash's projects" +sort_by = "date" +template = "projects.html" +page_template = "project-page.html" ++++ diff --git a/content/projects/first.md b/content/projects/first.md new file mode 100644 index 0000000..bf11c48 --- /dev/null +++ b/content/projects/first.md @@ -0,0 +1,6 @@ ++++ +title = "First project" +date = "2021-11-09" ++++ + +This is my first project page. diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9640a91 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + + Welcome to Yash's Website! + + + +
+
+ {% block content %} {% endblock %} +
+
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..1a1bb02 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +

+ Welcome to Yash's website! +

+{% endblock content %} diff --git a/templates/project-page.html b/templates/project-page.html new file mode 100644 index 0000000..57960c8 --- /dev/null +++ b/templates/project-page.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ page.title }} +

+

+ + {{ page.date }} + +

+{{ page.content | safe }} +{% endblock content %} diff --git a/templates/projects.html b/templates/projects.html new file mode 100644 index 0000000..e1e75ea --- /dev/null +++ b/templates/projects.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block content %} +

+ {{ section.title }} +

+ +{% endblock content %}