diff options
author | frantic1048 <franticblack@163.com> | 2013-11-21 16:11:50 +0800 |
---|---|---|
committer | frantic1048 <franticblack@163.com> | 2013-11-21 16:11:50 +0800 |
commit | 168b866cbafb6c3988097261cc48af7270ec72e9 (patch) | |
tree | 61085c3510852a7645743b7b49a8044aee930da2 /franticworld/templates | |
parent | 84fe361a8e3a64e524471b5d36927fd50086926d (diff) | |
download | pelican-themes-168b866cbafb6c3988097261cc48af7270ec72e9.tar.gz |
add franticworld's theme
Diffstat (limited to 'franticworld/templates')
-rw-r--r-- | franticworld/templates/archives.html | 13 | ||||
-rw-r--r-- | franticworld/templates/article.html | 34 | ||||
-rw-r--r-- | franticworld/templates/author.html | 5 | ||||
-rw-r--r-- | franticworld/templates/authors.html | 0 | ||||
-rw-r--r-- | franticworld/templates/base.html | 35 | ||||
-rw-r--r-- | franticworld/templates/categories.html | 1 | ||||
-rw-r--r-- | franticworld/templates/category.html | 2 | ||||
-rw-r--r-- | franticworld/templates/index.html | 20 | ||||
-rw-r--r-- | franticworld/templates/page.html | 27 | ||||
-rw-r--r-- | franticworld/templates/pagination.html | 15 | ||||
-rw-r--r-- | franticworld/templates/sidebar.html | 1 | ||||
-rw-r--r-- | franticworld/templates/tag.html | 2 | ||||
-rw-r--r-- | franticworld/templates/tags.html | 0 |
13 files changed, 155 insertions, 0 deletions
diff --git a/franticworld/templates/archives.html b/franticworld/templates/archives.html new file mode 100644 index 0000000..0e25a5d --- /dev/null +++ b/franticworld/templates/archives.html @@ -0,0 +1,13 @@ +{% extends "base.html" %}
+{% block content %}
+
+<h1>Archives for {{ SITENAME }}</h1>
+
+<dl>
+{% for article in dates %}
+ <dt>{{ article.date|strftime('%d %b,%Y') }}</dt>
+ <dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
+{% endfor %}
+</dl>
+
+{% endblock %}
diff --git a/franticworld/templates/article.html b/franticworld/templates/article.html new file mode 100644 index 0000000..ecb4bfe --- /dev/null +++ b/franticworld/templates/article.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% block title %}{{ article.title }} | {{ SITENAME }}{% endblock title %} +{% block content %} + +<div class="metabox"> + <p class="metaday">{{ article.date|strftime('%j') }}</p> + <p class="metayear">{{ article.date|strftime('%Y') }}</p> + <p class="metacategory">{{ article.category }}</p> +</div> +<div class="arcticlecontentbox"> + <div class="articlecontent"> + <a class="articletitle" href="{{ BLOGURL }}/{{ article.url }} " >{{ article.title }}</a> + {{ article.content }} + </div> + + {% if DISQUS_SITENAME %} + <div class="comments"> + <div id="disqus_thread"></div> + <script type="text/javascript"> + var disqus_identifier = "{{ article.url }}"; + (function() { + var dsq = document.createElement('script'); + dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || + document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); + </script> + </div> + {% endif %} + +</div> + +{% endblock content %}
\ No newline at end of file diff --git a/franticworld/templates/author.html b/franticworld/templates/author.html new file mode 100644 index 0000000..bde672c --- /dev/null +++ b/franticworld/templates/author.html @@ -0,0 +1,5 @@ +{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
+{% block content %}
+<h2>Articles by {{ author }}</h2>
+{% endblock content %}
\ No newline at end of file diff --git a/franticworld/templates/authors.html b/franticworld/templates/authors.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/franticworld/templates/authors.html diff --git a/franticworld/templates/base.html b/franticworld/templates/base.html new file mode 100644 index 0000000..1dd9464 --- /dev/null +++ b/franticworld/templates/base.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<html lang="{{ DEFAULT_LANG }}"> +<head> + {% block head %} + <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> + <meta charset="utf-8" /> + <meta name="author" content="{{ AUTHOR }}"> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/franticworld.css" type="text/css" /> + <link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet"> + {% endblock head %} +</head> +<body background="{{ SITEURL }}/theme/img/pattern.png"> + <div class="nav-banner"> + <a href="{{ SITEURL }}">{{ SITENAME }}</a> + </div> + + <div class="content"> + {% block content %} + {% endblock content %} + </div> + + <div class="sidebar"> + {% include 'sidebar.html' %} + </div> + + <footer id="contentinfo" class="body"> + <address id="about" class="vcard body"> + Proudly powered by <a href="http://getpelican.com/">Pelican</a>, + which takes great advantage of <a href="http://python.org">Python</a>, + Theme by <a href="http://frantic1048.com/">Frantic1048</a>. + </address><!-- /#about --> + </footer><!-- /#contentinfo --> +</body> +</body> +</html>
\ No newline at end of file diff --git a/franticworld/templates/categories.html b/franticworld/templates/categories.html new file mode 100644 index 0000000..6708a47 --- /dev/null +++ b/franticworld/templates/categories.html @@ -0,0 +1 @@ +{% extends "base.html" %}
{% block content %}
<ul>
{% for category, articles in categories %}
<li><a href="{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
{% endblock %}
\ No newline at end of file diff --git a/franticworld/templates/category.html b/franticworld/templates/category.html new file mode 100644 index 0000000..816aaf0 --- /dev/null +++ b/franticworld/templates/category.html @@ -0,0 +1,2 @@ +{% extends "index.html" %}
+{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
\ No newline at end of file diff --git a/franticworld/templates/index.html b/franticworld/templates/index.html new file mode 100644 index 0000000..e3b8c81 --- /dev/null +++ b/franticworld/templates/index.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block content %} + +{% for article in articles_page.object_list %} +<div class="summarycontainer"> + <div class="metabox"> + <p class="metaday">{{ article.date|strftime('%j') }}</p> + <p class="metayear">{{ article.date|strftime('%Y') }}</p> + <p class="metacategory">{{ article.category }}</p> + </div> + <div class="summarybox"> + <a class="summarytitle" href="{{ BLOGURL }}/{{ article.url }} " >{{ article.title }}</a> + {{ article.summary }} + <a class="btnmore" href="{{ BLOGURL }}/{{ article.url }}">more ...</a> + </div> +</div> +{% endfor %} + +{% include 'pagination.html' %} +{% endblock content %}
\ No newline at end of file diff --git a/franticworld/templates/page.html b/franticworld/templates/page.html new file mode 100644 index 0000000..3b569b5 --- /dev/null +++ b/franticworld/templates/page.html @@ -0,0 +1,27 @@ +{% extends "base.html" %}
+{% block title %}{{ page.title }} | {{ SITENAME }}{% endblock %}
+{% block content %}
+<div id="content" class="page-body">
+ <h1 class="page-title">{{ page.title }}</h1>
+ <hr></hr>
+ {{ page.content }}
+ {% if DISQUS_SITENAME %}
+ <div class="comments">
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_identifier = "{{ page.url }}";
+ (function() {
+ var dsq = document.createElement('script');
+ dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] ||
+ document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ </div>
+ {% endif %}
+</div>
+
+
+
+{% endblock %}
diff --git a/franticworld/templates/pagination.html b/franticworld/templates/pagination.html new file mode 100644 index 0000000..a1300e8 --- /dev/null +++ b/franticworld/templates/pagination.html @@ -0,0 +1,15 @@ +{% if DEFAULT_PAGINATION %} +<p class="paginator"> + {% if articles_page.has_previous() %} + {% if articles_page.previous_page_number() == 1 %} + <a href="{{ SITEURL }}/{{ page_name }}.html">«prev</a> + {% else %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a> + {% endif %} + {% endif %} + Page {{ articles_page.number }} / {{ articles_paginator.num_pages }} + {% if articles_page.has_next() %} + <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">next»</a> + {% endif %} +</p> +{% endif %} diff --git a/franticworld/templates/sidebar.html b/franticworld/templates/sidebar.html new file mode 100644 index 0000000..c8811c2 --- /dev/null +++ b/franticworld/templates/sidebar.html @@ -0,0 +1 @@ +<div class="sidebarcategory">
<h4>Categories</h4>
{% for cat, null in categories %}
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</div>
<div class="sidebarpages">
{% if PAGES %}
<h4>Pages</h4>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
{% endif %}
</div>
<div class="sidebarblogroll">
{% if LINKS %}
<h4>Blogroll</h4>
{% for name, link in LINKS %}
<li><a href="{{ link }}" target="_blank">{{ name }}</a></li>
{% endfor %}
{% endif %}
</div>
<div class="sidebarsocial">
{% if SOCIAL %}
<h4>Social</h4>
{% for name, link in SOCIAL %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% endif %}
</div>
\ No newline at end of file diff --git a/franticworld/templates/tag.html b/franticworld/templates/tag.html new file mode 100644 index 0000000..68cdcba --- /dev/null +++ b/franticworld/templates/tag.html @@ -0,0 +1,2 @@ +{% extends "index.html" %} +{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} diff --git a/franticworld/templates/tags.html b/franticworld/templates/tags.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/franticworld/templates/tags.html |