diff options
author | Indrajith K L | 2022-08-27 04:43:46 +0530 |
---|---|---|
committer | Indrajith K L | 2022-08-27 04:44:07 +0530 |
commit | 67dbc490de261318f1190d1e7e46dd9272f51ef6 (patch) | |
tree | ede2dfca42cb8a4b08824e40cfbb885f25bd236d /src/_includes | |
download | indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.gz indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.tar.bz2 indrajith-dev-67dbc490de261318f1190d1e7e46dd9272f51ef6.zip |
Initial Commit
* MVP
Diffstat (limited to 'src/_includes')
-rw-r--r-- | src/_includes/base.njk | 15 | ||||
-rw-r--r-- | src/_includes/head.njk | 5 | ||||
-rw-r--r-- | src/_includes/header.njk | 16 | ||||
-rw-r--r-- | src/_includes/posts.njk | 17 |
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>© 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>© 2022 Indrajith K L </p> + </footer> +</body> +</html>
\ No newline at end of file |