aboutsummaryrefslogtreecommitdiff
path: root/src/_includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/_includes')
-rw-r--r--src/_includes/base.njk15
-rw-r--r--src/_includes/head.njk5
-rw-r--r--src/_includes/header.njk16
-rw-r--r--src/_includes/posts.njk17
4 files changed, 53 insertions, 0 deletions
diff --git a/src/_includes/base.njk b/src/_includes/base.njk
new file mode 100644
index 0000000..0c9b0df
--- /dev/null
+++ b/src/_includes/base.njk
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+{% include "head.njk" %}
+</head>
+<body>
+ {% include "header.njk" %}
+ <main>
+ {{content | safe}}
+ </main>
+ <footer>
+ <p>&copy; 2022 Indrajith K L </p>
+ </footer>
+</body>
+</html> \ No newline at end of file
diff --git a/src/_includes/head.njk b/src/_includes/head.njk
new file mode 100644
index 0000000..50aacb9
--- /dev/null
+++ b/src/_includes/head.njk
@@ -0,0 +1,5 @@
+<meta charset="UTF-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<link rel="stylesheet" href="/css/styles.css">
+<title>{{title}}</title> \ No newline at end of file
diff --git a/src/_includes/header.njk b/src/_includes/header.njk
new file mode 100644
index 0000000..14f28c1
--- /dev/null
+++ b/src/_includes/header.njk
@@ -0,0 +1,16 @@
+<header>
+ <nav>
+ <ol class="navs">
+ <li class="nav">
+ <a href="/" class="logo">
+ <span class="color-white">[<span>
+ <span class="color-red">indrajith.dev
+ <span class="color-white">]<span>
+ </a>
+ </li>
+ <li class="nav"><a href="/about" class="links">About</a></li>
+ <li class="nav"><a href="/posts" class="links">Posts</a></li>
+ <li class="nav"><a href="/cv" class="links">CV</a></li>
+ </ol>
+ </nav>
+</header> \ No newline at end of file
diff --git a/src/_includes/posts.njk b/src/_includes/posts.njk
new file mode 100644
index 0000000..8422f4c
--- /dev/null
+++ b/src/_includes/posts.njk
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+{% include "head.njk" %}
+</head>
+<body>
+ {% include "header.njk" %}
+
+ <main>
+ {{content | safe}}
+ <a href="/posts">back to posts</a>
+ </main>
+ <footer>
+ <p>&copy; 2022 Indrajith K L </p>
+ </footer>
+</body>
+</html> \ No newline at end of file