summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-05-26 23:58:29 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-05-26 23:58:29 +0530
commitbfd3a825c2d73bd842769cdfaf11ad0319a3bd6e (patch)
tree7b2c052bdf539f433ed3ab6bd133b6d46c7ff7e5 /templates
parent2cb28c0dd749611e6edd4688955769bda3381453 (diff)
added code and content
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html19
-rw-r--r--templates/feed.rss27
-rw-r--r--templates/head_tag.html31
-rw-r--r--templates/header.html9
-rw-r--r--templates/index.html24
-rw-r--r--templates/post.html8
-rw-r--r--templates/section.html25
7 files changed, 143 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..0dc51e0
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ {% block head %}
+ <link rel="stylesheet" href="/assets/main.css" />
+ <link rel="stylesheet" href="/assets/sakura.css" />
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Hey - {% block title %}{% endblock %}</title>
+ {% endblock %}
+</head>
+<body>
+ {% include "header.html" %}
+ {% block body %}{% endblock %}
+
+<script src="assets/manup.min.js"></script>
+<script src="/pwabuilder-sw-register.js"></script>
+</body>
+</html> \ No newline at end of file
diff --git a/templates/feed.rss b/templates/feed.rss
new file mode 100644
index 0000000..275168a
--- /dev/null
+++ b/templates/feed.rss
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content">
+ <channel>
+ <title>{{ feed.title}}</title>
+ <description>{{ feed.description }}</description>
+ <link>{{ feed.link }}</link><language>en</language>
+ <lastBuildDate>{{ feed.date }}</lastBuildDate>
+ <pubDate>{{ feed.date }}</pubDate>
+ <ttl>250</ttl>
+ <atom:link href="https://web.navan.dev/feed.rss" rel="self" type="application/rss+xml"/>
+ {% for post in posts %}
+ <item>
+ <guid isPermaLink="true">
+ {{post.metadata.link}}
+ </guid>
+ <title>
+ {{post.metadata.title}}
+ </title>
+ <description>
+ {{post.metadata.description}}
+ </description>
+ <link>{{post.metadata.link}}</link>
+ <pubDate>{{post.metadata.date}}</pubDate>
+ <content:encoded><![CDATA[{{post}}]]></content:encoded>
+ </item>
+ {% endfor %}
+</channel></rss> \ No newline at end of file
diff --git a/templates/head_tag.html b/templates/head_tag.html
new file mode 100644
index 0000000..1f906f4
--- /dev/null
+++ b/templates/head_tag.html
@@ -0,0 +1,31 @@
+<head>
+ <title>Hi! | {% block title %}{% endblock %}</title>
+
+ <!--<link rel="stylesheet" href="https://unpkg.com/mvp.css">-->
+ <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/spcss@0.7.0">-->
+ <!--<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">-->
+ <link rel="stylesheet" href="/assets/main.css">
+
+ <link rel="stylesheet" href="/assets/sakura.css">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="og:site_name" content="Navan Chauhan" />
+ <link rel="canonical" href="https://navanchauhan.github.io/" />
+ <meta name="twitter:url" content="https://navanchauhan.github.io/" />
+ <meta name="og:url" content="https://navanchauhan.github.io/" />
+ <meta name="twitter:title" content="👋 Hi! | Navan Chauhan" />
+ <meta name="og:title" content="👋 Hi! | Navan Chauhan" />
+ <meta name="description" content="Welcome to my personal fragment of the internet. Majority of the posts should be complete." />
+ <meta name="twitter:description" content="Welcome to my personal fragment of the internet. Majority of the posts should be complete." />
+ <meta name="og:description" content="Welcome to my personal fragment of the internet. Majority of the posts should be complete." />
+ <meta name="twitter:card" content="summary" />
+ <link rel="stylesheet" href="/styles.css" type="text/css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <link rel="shortcut icon" href="/images/favicon.png" type="image/png" />
+ <link rel="alternate" href="/feed.rss" type="application/rss+xml" title="Subscribe to Navan Chauhan" />
+ <meta name="twitter:image" content="https://navanchauhan.github.io/images/logo.png" />
+ <meta name="og:image" content="https://navanchauhan.github.io/images/logo.png" />
+ <link rel="manifest" href="manifest.json" />
+ <meta name="google-site-verification" content="LVeSZxz-QskhbEjHxOi7-BM5dDxTg53x2TwrjFxfL0k" />
+ <script async src="//gc.zgo.at/count.js" data-goatcounter="https://navanchauhan.goatcounter.com/count"></script>
+</head> \ No newline at end of file
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 0000000..fb7277a
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,9 @@
+<nav style="display: block;">
+|
+<a href="/">home</a> |
+<a href="/about/">about/links</a> |
+<a href="/posts/">posts</a> |
+<a href="/publications/">publications</a> |
+<a href="/repo/">iOS repo</a> |
+<a href="/rss.xml">RSS Feed</a> |
+</nav> \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..cc66cd3
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+{% block title %}Home{% endblock %}
+
+{% block body %}
+
+<main>
+ {{ content}}
+
+<ul>
+{% for post in posts %}
+ <li><a href="{{post.link}}">{{ post.title }}</a></li>
+ <ul>
+ <li>{{ post.description}}</li>
+ <li>Published On: {{post.date}}</li>
+ <li>Tags:
+ {% for tag in post.tags %}
+ {{ tag }},
+ {% endfor %}
+ </ul>
+
+{% endfor %}
+</ul>
+</main>
+{% endblock %} \ No newline at end of file
diff --git a/templates/post.html b/templates/post.html
new file mode 100644
index 0000000..596ded2
--- /dev/null
+++ b/templates/post.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block title %}Post{% endblock %}
+
+{% block body %}
+<main>
+ {{ content}}
+</main>
+{% endblock %} \ No newline at end of file
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..2a9e863
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% block title %}Section{% endblock %}
+
+{% block body %}
+
+<main>
+ {{ content}}
+</main>
+
+<ul>
+{% for post in posts %}
+ <li><a href="{{post.link}}">{{ post.title }}</a></li>
+ <ul>
+ <li>{{ post.description}}</li>
+ <li>Published On: {{post.date}}</li>
+ <li>Tags:
+ {% for tag in post.tags %}
+ {{ tag }},
+ {% endfor %}
+ </ul>
+
+{% endfor %}
+</ul>
+
+{% endblock %} \ No newline at end of file