summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorSunaina Pai <sunainapai.in@gmail.com>2018-03-17 14:45:21 +0530
committerSunaina Pai <sunainapai.in@gmail.com>2018-03-17 14:45:21 +0530
commit62d0aa159fc046a27bed47e337d787a08f4687d0 (patch)
treec1162f14377890c290d2ad114b3892cbb9848975 /layout
Add makesite: A simple static site generator
Diffstat (limited to 'layout')
-rw-r--r--layout/feed.xml12
-rw-r--r--layout/item.html10
-rw-r--r--layout/item.xml13
-rw-r--r--layout/list.html5
-rw-r--r--layout/page.html42
-rw-r--r--layout/post.html5
6 files changed, 87 insertions, 0 deletions
diff --git a/layout/feed.xml b/layout/feed.xml
new file mode 100644
index 0000000..388c39e
--- /dev/null
+++ b/layout/feed.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0">
+
+<channel>
+<title>{{ title }}</title>
+<link>{{ site_url }}/</link>
+<description>Grow with Technology</description>
+
+{{ content }}
+
+</channel>
+</rss>
diff --git a/layout/item.html b/layout/item.html
new file mode 100644
index 0000000..b16a097
--- /dev/null
+++ b/layout/item.html
@@ -0,0 +1,10 @@
+<article>
+<h2><a href="{{ base_path }}/{{ blog }}/{{ slug }}/">{{ title }}</a></h2>
+<p class="meta">Published on {{ date }} by <b>{{ author }}</b></p>
+<p class="summary">
+{{ summary }}&nbsp;<a class="more" href="{{ base_path }}/blog/{{ slug }}/">...</a>
+</p>
+<div>
+<a class="more" href="{{ base_path }}/{{ blog }}/{{ slug }}/">Read More</a>
+</div>
+</article>
diff --git a/layout/item.xml b/layout/item.xml
new file mode 100644
index 0000000..65b9679
--- /dev/null
+++ b/layout/item.xml
@@ -0,0 +1,13 @@
+<item>
+<title>{{ title }}</title>
+<link>{{ site_url }}/{{ blog }}/{{ slug }}/</link>
+<description>
+<![CDATA[
+<p>
+{{ summary }}&nbsp;<a href="{{ site_url }}/{{ blog }}/{{ slug }}/">...</a>
+</p>
+<p><a href="{{ site_url }}/{{ blog }}/{{ slug }}/">Read More</a></p>
+]]>
+</description>
+<pubDate>{{ date }}</pubDate>
+</item>
diff --git a/layout/list.html b/layout/list.html
new file mode 100644
index 0000000..79a6aab
--- /dev/null
+++ b/layout/list.html
@@ -0,0 +1,5 @@
+<h1>{{ title }}</h1>
+{{ content }}
+<section>
+<a class="rss" href="{{ base_path }}/{{ blog }}/rss.xml">RSS</a>
+</section>
diff --git a/layout/page.html b/layout/page.html
new file mode 100644
index 0000000..16482e1
--- /dev/null
+++ b/layout/page.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>{{ title }} - {{ subtitle }}</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width">
+ <link rel="stylesheet" type="text/css" href="{{ base_path }}/css/style.css">
+</head>
+
+<body id="{{ slug }}">
+
+<nav>
+<section>
+ <span class="home">
+ <a href="{{ base_path }}/">Home</a>
+ </span>
+ <span class="links">
+ <a href="{{ base_path }}/blog/">Blog</a>
+ <a href="{{ base_path }}/news/">News</a>
+ <a href="{{ base_path }}/contact/">Contact</a>
+ <a href="{{ base_path }}/about/">About</a>
+ </span>
+</section>
+</nav>
+
+<main>
+{{ content }}
+</main>
+
+<footer>
+<section>
+<p>&copy; 2018 Lorem Ipsum</p>
+<p>
+ <a href="https://twitter.com/sunainapai">Twitter</a>
+ <a href="https://github.com/sunainapai">GitHub</a>
+ <a href="https://www.example.com/">Example</a>
+</p>
+</section>
+</footer>
+
+</body>
+</html>
diff --git a/layout/post.html b/layout/post.html
new file mode 100644
index 0000000..f0a42be
--- /dev/null
+++ b/layout/post.html
@@ -0,0 +1,5 @@
+<article>
+<h1><a href="{{ base_path }}/{{ blog }}/{{ slug }}/">{{ title }}</a></h1>
+<p class="meta">Published on {{ date }} by <b>{{ author }}</b></p>
+{{ content }}
+</article>