aboutsummaryrefslogtreecommitdiffstats
path: root/coding-now/templates
diff options
context:
space:
mode:
Diffstat (limited to 'coding-now/templates')
-rw-r--r--coding-now/templates/_includes/footer.html7
-rw-r--r--coding-now/templates/_includes/header.html10
-rw-r--r--coding-now/templates/archives.html25
-rw-r--r--coding-now/templates/article.html41
-rw-r--r--coding-now/templates/base.html58
-rw-r--r--coding-now/templates/categories.html24
-rw-r--r--coding-now/templates/category.html23
-rw-r--r--coding-now/templates/index.html44
-rw-r--r--coding-now/templates/page.html37
-rw-r--r--coding-now/templates/tag.html24
-rw-r--r--coding-now/templates/tags.html18
11 files changed, 311 insertions, 0 deletions
diff --git a/coding-now/templates/_includes/footer.html b/coding-now/templates/_includes/footer.html
new file mode 100644
index 0000000..c2305e5
--- /dev/null
+++ b/coding-now/templates/_includes/footer.html
@@ -0,0 +1,7 @@
+<footer class="footer">
+ &copy <a href="{{ SITEURL }}/" >{{ AUTHOR }}</a>. 2016
+ <br/>
+ Powered by <a href="http://getpelican.com/">pelican</a>.
+ Theme by <a href="http://github.com/liyuan-t/coding-now">coding-now</a>
+ <br/>
+</footer>
diff --git a/coding-now/templates/_includes/header.html b/coding-now/templates/_includes/header.html
new file mode 100644
index 0000000..1334a16
--- /dev/null
+++ b/coding-now/templates/_includes/header.html
@@ -0,0 +1,10 @@
+<section class="header">
+ <div class="circular" style="background: url({{ HEADER }} ) no-repeat; background-position: center;"></div>
+ <h2 class="title">{{ SITENAME }}</h2>
+ <h4 class="subtitle">{{ SITEDESCRIPTION }}</h4>
+ {% for title,url in SOCIAL %}
+ <a href="{{ url }}">
+ <img class="social-icon" src="{{ SITEURL }}/theme/images/{{ title }}-128.png" style="width: 64px;">
+ </a>
+ {% endfor %}
+</section>
diff --git a/coding-now/templates/archives.html b/coding-now/templates/archives.html
new file mode 100644
index 0000000..fec9086
--- /dev/null
+++ b/coding-now/templates/archives.html
@@ -0,0 +1,25 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ SITENAME }} - Archives {% endblock %}
+
+{% block container %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">Archives</h2>
+ </header>
+ <dl>
+ {% for article in dates %}
+ <dt>{{ article.locale_date }}</dt>
+ <dd>
+
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+ </dd>
+ {% endfor %}
+ </dl>
+ </section>
+ <br/><br/><br/>
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file
diff --git a/coding-now/templates/article.html b/coding-now/templates/article.html
new file mode 100644
index 0000000..909ed24
--- /dev/null
+++ b/coding-now/templates/article.html
@@ -0,0 +1,41 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ article.title|striptags }}{% endblock title %}
+
+{% block container %}
+ <section id="content">
+ <article>
+ <p class="article-date">
+ {{ article.date }}
+ </p>
+ <header class="header">
+ <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title }}">
+ <h2 class="blogpost-title">
+ {{ article.title }}
+ </h2>
+ </a>
+ </header>
+ <div>
+ {{ article.content }}
+ </div>
+ <div class="article-info">
+ <hr/>
+ <div class="article-info">
+ <span><b>Category: </b><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></span>
+ <br/>
+ <span><b>Publication Date: </b> {{ article.locale_date }} </span>
+ <br/>
+ {% for tag in article.tags %}
+ <a class="label-default" href="{{ SITEURL }}/{{ tag.url }}">{{ tag.name }}</a>
+ {% endfor %}
+ <br/>
+ </div>
+ </div>
+ </article>
+ <br/><br/><br/>
+ </section>
+{% endblock container %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file
diff --git a/coding-now/templates/base.html b/coding-now/templates/base.html
new file mode 100644
index 0000000..a20bf63
--- /dev/null
+++ b/coding-now/templates/base.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>{% block title %} {{ SITENAME }}{% endblock %}</title>
+
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <meta name="description" content="{{ SITEDESCRIPTION }}">
+ <meta name="author" content="{{ AUTHOR }}">
+
+ <link href="{{ SITEURL }}/theme/css/fonts.css" rel="stylesheet" />
+
+ <link href="{{ SITEURL }}/theme/css/normalize.css" rel="stylesheet"/>
+ <link href="{{ SITEURL }}/theme/css/skeleton.css" rel="stylesheet"/>
+ <link href="{{ SITEURL }}/theme/css/github-prettify-theme.css" rel="stylesheet"/>
+ <link href="{{ SITEURL }}/theme/css/custom.css" rel="stylesheet"/>
+ <link href="{{ SITEURL }}/theme/css/pygement.css" rel="stylesheet"/>
+
+ <script src="{{ SITEURL }}/theme/js/jquery.min.js"></script>
+ <script src="{{ SITEURL }}/theme/js/run_prettify.js"></script>
+ <script src="{{ SITEURL }}/theme/js/site.js"></script>
+</head>
+<body class="code-snippets-visible">
+
+<div class="navbar-spacer"></div>
+<nav class="navbar">
+ <div class="container">
+ <ul class="navbar-list">
+ <li class="navbar-item">
+ <a class="navbar-link" href="{{ SITEURL }}/">
+ HOME
+ </a>
+ </li>
+ {% for page in pages|sort %}
+ <li class="navbar-item">
+ <a class="navbar-link" href="{{ SITEURL }}/{{ page.url }}">
+ {{ page.title }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+ <div class="navbar-link">
+ <a href="{{ SITEURL }}/"><img src="{{ SITEURL }}/{{ SITEICON }}" class="site-icon"/></a>
+ </div>
+ </div>
+</nav>
+<div class="container">
+ {% block container %}
+ {% endblock %}
+</div>
+
+{% block footer %}
+{% endblock %}
+</body>
+</html>
diff --git a/coding-now/templates/categories.html b/coding-now/templates/categories.html
new file mode 100644
index 0000000..26396bb
--- /dev/null
+++ b/coding-now/templates/categories.html
@@ -0,0 +1,24 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ SITENAME }} - Categories {% endblock %}
+
+{% block container %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">Categories</h2>
+ </header>
+ <dl>
+ {% for category, articles in categories %}
+ <dd>
+ <a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a>({{ articles|count }})
+ </dd>
+ {% endfor %}
+ </dl>
+ </section>
+ <br/><br/><br/>
+
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file
diff --git a/coding-now/templates/category.html b/coding-now/templates/category.html
new file mode 100644
index 0000000..e5e601a
--- /dev/null
+++ b/coding-now/templates/category.html
@@ -0,0 +1,23 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ SITENAME }} - {{ category }} {% endblock %}
+
+{% block container %}
+ <section id="content">
+ <header class="header">
+ <h2>{{ category }}</h2>
+ </header>
+ <dl>
+ <h3>{{ category }}</h3>
+ {% for article in articles|sort %}
+ <dd>
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+ </dd>
+ {% endfor %}
+ </dl>
+ </section>
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file
diff --git a/coding-now/templates/index.html b/coding-now/templates/index.html
new file mode 100644
index 0000000..f388bae
--- /dev/null
+++ b/coding-now/templates/index.html
@@ -0,0 +1,44 @@
+{% extends 'base.html' %}
+
+{% block container %}
+ <section class="header">
+ {% include '_includes/header.html' %}
+ </section>
+
+ <section class="home-section">
+ <h2 class="home-header">
+ Recent blog posts
+ </h2>
+ <div>
+ {% for article in articles[0:3] %}
+ <div class="home-post">
+ <p class="blogpost-date" style="float: right;">{{ article.locale_date }}</p>
+ <h5><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h5>
+ <p>
+ <p>{{ article.summary }}</p>
+ </div>
+ <div class="row">
+ <a class="button button-primary button-more" href="{{ SITEURL }}/{{ article.url }}">More...</a>
+ </div>
+ {% endfor %}
+ </div>
+ </section>
+ <br/><br/><br/>
+ <section class="home-section">
+ <div class="row">
+ <div class="">
+ <h2 class="blogpost-title">Links</h2>
+ <div class="home-post">
+ {% for title,url in LINKS %}
+ <a href="{{ url }}" target="_blank">{{ title }}</a>&nbsp; &nbsp;
+ {% endfor %}
+ </div>
+ </div>
+ </div>
+ </section>
+{% endblock %}
+
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %}
diff --git a/coding-now/templates/page.html b/coding-now/templates/page.html
new file mode 100644
index 0000000..6a159e5
--- /dev/null
+++ b/coding-now/templates/page.html
@@ -0,0 +1,37 @@
+{% extends 'base.html' %}
+
+{% block title %}{{ SITENAME }} - {{ page.title }} {% endblock %}
+
+{% block container %}
+ {% if page.title == 'blog' %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">Articles in {{ AUTHOR }}'s blog</h2>
+ </header>
+ <dl>
+ {% for category,articles in categories %}
+ <h3>
+ {{ category }}
+ </h3>
+ {% for article in articles %}
+ <dd>
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+ </dd>
+ {% endfor %}
+ {% endfor %}
+ </dl>
+ </section>
+ <br/><br/><br/>
+ {% else %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">{{ page.title }}</h2>
+ </header>
+ {{ page.content }}
+ </section>
+ {% endif %}
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %}
diff --git a/coding-now/templates/tag.html b/coding-now/templates/tag.html
new file mode 100644
index 0000000..0131849
--- /dev/null
+++ b/coding-now/templates/tag.html
@@ -0,0 +1,24 @@
+{% extends 'base.html' %}
+
+{% block title %} {{ SITENAME }} - {{ tag }} {% endblock %}
+
+{% block container %}
+ <section id="content">
+ <header class="header">
+ <h2 class="blogpost-title">Articles - {{ tag }}</h2>
+ </header>
+ <dl>
+ <h3>{{ tag }}</h3>
+ {% for article in articles|sort %}
+
+ <dd>
+ <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+ </dd>
+ {% endfor %}
+ </dl>
+ </section>
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file
diff --git a/coding-now/templates/tags.html b/coding-now/templates/tags.html
new file mode 100644
index 0000000..cbfd61f
--- /dev/null
+++ b/coding-now/templates/tags.html
@@ -0,0 +1,18 @@
+{% extends 'base.html' %}
+{% block title %} {{ SITENAME }} - Tags {% endblock %}
+
+{% block container %}
+
+ <section id="tags">
+ <header class="header">
+ {% for tag,articles in tags|sort %}
+ <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>({{ articles|count }})
+ {% endfor %}
+ </header>
+ </section><br/><br/><br/>
+
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %} \ No newline at end of file