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 %}