aboutsummaryrefslogtreecommitdiffstats
path: root/ops/templates
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2017-04-08 13:44:58 +0200
committerGitHub <noreply@github.com>2017-04-08 13:44:58 +0200
commit88f21b95e3a6dc91c6a344e90ec50afbedc5bdd7 (patch)
tree6e6c99fab6a0c45ba96bfb501f581b3a71e7917a /ops/templates
parent5ebcbdac1f43f04a47eb121aa3b5a8ee4ae35da6 (diff)
parent3a009cc2c24552366b823c69e393029c14fe8758 (diff)
downloadpelican-themes-88f21b95e3a6dc91c6a344e90ec50afbedc5bdd7.tar.gz
Merge branch 'master' into bricabractheme
Diffstat (limited to 'ops/templates')
-rw-r--r--ops/templates/_includes/footer.html7
-rw-r--r--ops/templates/_includes/header.html10
-rw-r--r--ops/templates/archives.html25
-rw-r--r--ops/templates/article.html62
-rw-r--r--ops/templates/base.html84
-rw-r--r--ops/templates/categories.html24
-rw-r--r--ops/templates/category.html23
-rw-r--r--ops/templates/index.html44
-rw-r--r--ops/templates/page.html38
-rw-r--r--ops/templates/tag.html24
-rw-r--r--ops/templates/tags.html18
11 files changed, 359 insertions, 0 deletions
diff --git a/ops/templates/_includes/footer.html b/ops/templates/_includes/footer.html
new file mode 100644
index 0000000..16ea774
--- /dev/null
+++ b/ops/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/ops">ops</a>
+ <br/>
+</footer>
diff --git a/ops/templates/_includes/header.html b/ops/templates/_includes/header.html
new file mode 100644
index 0000000..1334a16
--- /dev/null
+++ b/ops/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/ops/templates/archives.html b/ops/templates/archives.html
new file mode 100644
index 0000000..fec9086
--- /dev/null
+++ b/ops/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/ops/templates/article.html b/ops/templates/article.html
new file mode 100644
index 0000000..3cc33dd
--- /dev/null
+++ b/ops/templates/article.html
@@ -0,0 +1,62 @@
+{% 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>
+ </section>
+ {% if DUOSHUONAME and article.comment %}
+ <!-- 多说评论框 start -->
+ <div class="ds-thread" data-thread-key="article-{{ article.title }}" data-title="{{ article.title }}" data-url="{{ SITEURL }}/{{ article.url }}"></div>
+ <!-- 多说评论框 end -->
+ {% else %}
+ <br/><br/><br/><br/>
+ {% endif %}
+ {% if JIATHIS and article.jiathis %}
+ <!-- JiaThis Button BEGIN -->
+ <div class="jiathis_style">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_tools_1"></a>
+ <a class="jiathis_button_tools_2"></a>
+ <a class="jiathis_button_tools_3"></a>
+ <a class="jiathis_button_tools_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
+ <a class="jiathis_counter_style"></a>
+ </div>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
+ <!-- JiaThis Button END -->
+ {% endif %}
+
+{% endblock container %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %}
diff --git a/ops/templates/base.html b/ops/templates/base.html
new file mode 100644
index 0000000..7db825b
--- /dev/null
+++ b/ops/templates/base.html
@@ -0,0 +1,84 @@
+<!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 property="wb:webmaster" content="ba29596b8c7c7ae7" />
+
+ <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 %}
+
+<script>
+{% if BAIDUID %}
+ var _hmt = _hmt || [];
+ (function() {
+ var hm = document.createElement("script");
+ hm.src = "https://hm.baidu.com/hm.js?{{ BAIDUID }}";
+ var s = document.getElementsByTagName("script")[0];
+ s.parentNode.insertBefore(hm, s);
+ })();
+{% endif %}
+{% if DUOSHUONAME %}
+<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
+var duoshuoQuery = {short_name:"{{ DUOSHUONAME }}"};
+ (function() {
+ var ds = document.createElement('script');
+ ds.type = 'text/javascript';ds.async = true;
+ ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
+ ds.charset = 'UTF-8';
+ (document.getElementsByTagName('head')[0]
+ || document.getElementsByTagName('body')[0]).appendChild(ds);
+ })();
+<!-- 多说公共JS代码 end -->
+{% endif %}
+</script>
+</body>
+</html>
diff --git a/ops/templates/categories.html b/ops/templates/categories.html
new file mode 100644
index 0000000..26396bb
--- /dev/null
+++ b/ops/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/ops/templates/category.html b/ops/templates/category.html
new file mode 100644
index 0000000..e5e601a
--- /dev/null
+++ b/ops/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/ops/templates/index.html b/ops/templates/index.html
new file mode 100644
index 0000000..f388bae
--- /dev/null
+++ b/ops/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/ops/templates/page.html b/ops/templates/page.html
new file mode 100644
index 0000000..ca79465
--- /dev/null
+++ b/ops/templates/page.html
@@ -0,0 +1,38 @@
+{% 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>
+ <br/> <br/> <br/>
+ {% endif %}
+{% endblock %}
+
+{% block footer %}
+ {% include '_includes/footer.html' %}
+{% endblock %}
diff --git a/ops/templates/tag.html b/ops/templates/tag.html
new file mode 100644
index 0000000..0131849
--- /dev/null
+++ b/ops/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/ops/templates/tags.html b/ops/templates/tags.html
new file mode 100644
index 0000000..cbfd61f
--- /dev/null
+++ b/ops/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