Archives for {{ SITENAME }}
- --
-{% for article in dates %}
-
- {{ article.locale_date }} -
- {{ article.title }} -{% endfor %} -
diff --git a/theme/LICENSE.md b/theme/LICENSE.md new file mode 100644 index 0000000..5abc6ec --- /dev/null +++ b/theme/LICENSE.md @@ -0,0 +1,7 @@ +The license requires that you give credit to me, Talha Mansoor, as the author of the Elegant theme on every site that uses this theme. I have placed the attribution in the footer of every page. Do not remove it. If you need to remove or change the style of the attribution, please get in [touch with me](http://oncrashreboot.com/#about-me) first. + +Along with this attribution clause, Elegant theme is licensed under The MIT License. + +If you use my theme, I would love to hear from you. [Get in touch](http://oncrashreboot.com/#about-me) and let me know about it. I may link to your site too. + +Please visit License section of [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for updated licensing details. diff --git a/theme/README.md b/theme/README.md new file mode 100644 index 0000000..cdce9bc --- /dev/null +++ b/theme/README.md @@ -0,0 +1,19 @@ +Please visit [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for detailed features and documentation. + +Elegant offers several unique features including search, live filter, collapsible comments, Mailchimp, custom 404 page, etc. It is a minimal, and stylish theme that looks amazing across all screen resolutions and devices. + +Here is an example search result + +![Search result screenshot](https://raw.github.com/talha131/pelican-elegant/master/search-result-screenshot.png) + +Here is how the home page looks like + +![Home page screenshot](https://raw.github.com/talha131/pelican-elegant/master/home-page-screenshot.png) + +This is how a generated article looks like + +![Article screenshot](https://raw.github.com/talha131/pelican-elegant/master/article-screenshot.png) + +[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/c71132a529c1c5d7eb8dc5ea4825a851 "githalytics.com")](http://githalytics.com/talha131/pelican-elegant) + +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/talha131/pelican-elegant/trend.png)](https://bitdeli.com/free "Bitdeli Badge") diff --git a/theme/RELEASE_NOTES.md b/theme/RELEASE_NOTES.md new file mode 100644 index 0000000..57547ce --- /dev/null +++ b/theme/RELEASE_NOTES.md @@ -0,0 +1,38 @@ +Version 1.3 +=========== + +* Next and previous article navigation is placed below comments section so that article's content and comments appear together +* Article title and site name in `
Sorry, but the page you are looking for cannot be found. It seems that the page you were trying to reach doesn't exist, or may be it has just moved, or it no longer exists.
+The best thing to do is to use the search form or start again from the home page.
+
Comments !
- - - +Published
+ {% set day = article.date.strftime('%d')|int %} + + {% endif %} + {% if article.modified %} +Last Updated
+Category
+ {{ article.category }} + {% endif %} + {% if article.tags %} +Tags
++ {% for tag in article.tags|sort %} +- {{ tag }}
+ {% for aTag, tagged_articles in tags if aTag == tag %}
+ {{ tagged_articles|count }}
+ {% endfor %}
+ {% endfor %}
+
+ {% endif %} + + {% if MAILCHIMP_FORM_ACTION %} + {% if not EMAIL_SUBSCRIPTION_LABEL %} + {% set EMAIL_SUBSCRIPTION_LABEL='Email Newsletter' %} + {% endif %} + {% if not SUBSCRIBE_BUTTON_TITLE %} + {% set SUBSCRIBE_BUTTON_TITLE='Subscribe' %} + {% endif %} + {% if not EMAIL_PLACEHOLDER %} + {% set EMAIL_PLACEHOLDER ='email address' %} + {% endif %} + +Authors on {{ SITENAME }}
-- {% for author, articles in authors|sort %} -- {{ author }} ({{ articles|count }})
- {% endfor %}
-
-{{ SITENAME }} {% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %}
- -blogroll
-- {% for name, link in LINKS %} -- {{ name }}
- {% endfor %}
-
-social
-- {% if FEED_ALL_ATOM %} -- atom feed
+ {% block meta_tags_in_head %}
+ {% endblock meta_tags_in_head %}
+ {% block title %}{{ SITENAME|striptags }}{% endblock title %}
+ {% block head_links %}
+
+
+
+
+ {% endblock head_links %}
+
+
+
+
+
+
+
+ {% include 'feeds.html' %}
+ {% include 'analytics.html' %}
+
+
+
+
+
+
+
+
+
+
+
+ {{ SITENAME }}
+
+
- {% endif %}
-
-
-
-
-{% include 'analytics.html' %}
-{% include 'disqus_script.html' %}
-
+
+
+
+
+
+
+
+
+ {% block content %}
+ {% endblock content %}
+
+
+
+
+
+- Home
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for page in pages %}
+ - {{ page.title }}
+ {% endfor %}
{% endif %}
- {% if FEED_ALL_RSS %}
- - rss feed
- {% endif %}
-
- {% for name, link in SOCIAL %}
- - {{ name }}
- {% endfor %}
+ - Categories
+ - Tags
+ - Archives
+
-All Categories
++ {% for article in articles %} +- {{ article.title }} {%if article.subtitle %} {{ article.subtitle }} {% endif %}
+ {% endfor %}
+
+There are comments.
{% endif %} +{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} +{{ COMMENTS_INTRO }}
+{% endif %} +{{ LANDING_PAGE_ABOUT.title }}
+Other articles
--
- {% endif %} - {# other items #} - {% else %} - {% if loop.first %} -
-
- {% endif %} -
-
-
+
+ {% if LANDING_PAGE_ABOUT and LANDING_PAGE_ABOUT.details %}
+
+
+
+
+ {{ LANDING_PAGE_ABOUT.details }}
+
+
+ {% endif %}
-
- {% include 'article_infos.html' %}
- {{ article.summary }}
- read more
- {% include 'comments.html' %}
-
-
+ {% if PROJECTS %}
+
+
+
{% endif %}
- {% if loop.last %}
- {% if loop.length > 1 or articles_page.has_other_pages() %}
-
- {% if articles_page.has_other_pages() %}
- {% include 'pagination.html' %}
- {% endif %}
-
+
+
+ {% if articles %}
+
+
+
+
+ {% for article in articles %}
+ {% if not RECENT_ARTICLES_COUNT %}
+ {% set RECENT_ARTICLES_COUNT = 10 %}
{% endif %}
- {% endif %}
- {% endfor %}
-{% else %}
-
-- {{ page.title }}
- {% endfor %}
-
-{% endif %}
+ {% if loop.index0 < RECENT_ARTICLES_COUNT %}
+
+
+ {% endif %}
+
{{ article.title }}
-About me
+My Projects
+ {% for project in PROJECTS %} ++-
+ {{ project.name }} {{ project.description }}
+
+
+ {%endfor %} +Recent Posts all posts
+Pages
- {% for page in PAGES %} -+-
+ {{ article.title }} {%if article.subtitle %} {{ article.subtitle }} {% endif %}
+
+
+
+ {% endif %} + {% endfor %} +{{ page.title }}
- {% import 'translations.html' as translations with context %} - {{ translations.translations_for(page) }} - {{ page.content }} -{{ page.title }} {%if page.subtitle %} {{ page.subtitle }} {% endif %}
+Published
+ {% set day = page.date.strftime('%d')|int %} + + {% endif %} + {% if page.modified %} +Last Updated
+Archives for {{ period | reverse | join(' ') }}
- --{% for article in dates %} -- {{ article.locale_date }}
- - {{ article.title }}
-{% endfor %}
-
-tags: {% for tag in article.tags %}{{ tag | escape }} {% endfor %}
{% endif %} diff --git a/theme/templates/tags.html b/theme/templates/tags.html index fb09955..7c25c1a 100644 --- a/theme/templates/tags.html +++ b/theme/templates/tags.html @@ -1,16 +1,89 @@ {% extends "base.html" %} -{% block title %}{{ SITENAME }} - Tags{% endblock %} +{% block title %} +All Tags · {{ super() }} +{% endblock title %} +{% block head_description %} +All tags used in the {{ SITENAME|striptags }} blog. +{% endblock head_description %} {% block content %} -Tags for {{ SITENAME }}
-- {% for tag, articles in tags|sort %} -- {{ tag }} ({{ articles|count }})
- {% endfor %}
-
-All Tags
++ {% for tag, articles in tags|sort %} +-
+ {% set num = articles|count %}
+ {{ tag }}{{ num }}
+
+ {% endfor %}
+
+{{ tag }}
++ {% for article in articles %} +- {{ article.title }} {%if article.subtitle %} {{ article.subtitle }} {% endif %}
+ {% endfor %}
+
+ + {% endfor %} +