Moar clean

This commit is contained in:
Raymond Wanyoike 2014-06-17 21:24:46 +03:00
commit 1747178dc5
6 changed files with 43 additions and 46 deletions

View file

@ -2,20 +2,24 @@
A theme for the [Pelican](http://getpelican.com) static site generator. A shameless rip off of @porterjamesj's [crowsfoot](http://github.com/porterjamesj/crowsfoot) theme. A theme for the [Pelican](http://getpelican.com) static site generator. A shameless rip off of @porterjamesj's [crowsfoot](http://github.com/porterjamesj/crowsfoot) theme.
## Screenshot ## Screenshot
![pelican-alchemy](screenshot.png) ![pelican-alchemy](screenshot.png)
## Installation ## Installation
`git clone https://github.com/nairobilug/pelican-alchemy.git` `git clone https://github.com/nairobilug/pelican-alchemy.git`
Then set the pelican config variable `THEME` to the `alchemy` folder inside the cloned path. Then set the pelican config variable `THEME` to the `alchemy` folder inside the cloned path.
## Usage ## Usage
Pelican [documentation](http://docs.getpelican.com/en/latest/) Pelican [documentation](http://docs.getpelican.com/en/latest/)
### Theme Options ### Theme Options
| Config | Type | Description | | Config | Type | Description |
@ -44,10 +48,12 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set.
| GOOGLE_ANALYTICS_ID | TEXT | Google analytics | | GOOGLE_ANALYTICS_ID | TEXT | Google analytics |
| GOOGLE_ANALYTICS_DOMAIN | TEXT | Google analytics | | GOOGLE_ANALYTICS_DOMAIN | TEXT | Google analytics |
## Live Demo ## Live Demo
[nairobilug.or.ke](http://nairobilug.or.ke) [nairobilug.or.ke](http://nairobilug.or.ke)
## License ## License
MIT MIT

View file

@ -7,12 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
{% include "include/feeds.html" %} {% include "include/feeds.html" %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css"> <link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css">
{# HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries #}
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
{# WARNING: Respond.js doesn't work if you view the page via file:// #} {# WARNING: Respond.js doesn't work if you view the page via file:// #}
@ -22,18 +19,14 @@
{% include "include/google_analytics.html" %} {% include "include/google_analytics.html" %}
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
{% include "header.html" %} {% include "header.html" %}
<div class="container"> <div class="container">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
{% include "footer.html" %} {% include "footer.html" %}
<script src="{{ SITEURL }}/theme/js/libs/jquery.min.js"></script> <script src="{{ SITEURL }}/theme/js/libs/jquery.min.js"></script>
<script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script> <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
</body> <!-- 42 --> </body> <!-- 42 -->
</html> </html>

View file

@ -1,25 +0,0 @@
<div class="post mini-post">
<div class="row">
<div class="col-md-4">
<p class="post-date">
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
</p>
<p class="post-category">
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</p>
{% if article.author and SHOW_ARTICLE_AUTHOR %}
<address class="post-author">
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
</address>
{% endif %}
</div>
<div class="col-md-8">
<h2 class="post-title">
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
<div class="post-content">
{{ article.content|striptags|truncate(256) }}
</div>
</div>
</div>
</div>

View file

@ -6,9 +6,32 @@
{% endblock %} {% endblock %}
<div> <div>
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
{% include "include/article_list.html" %} <div class="post mini-post">
<div class="row">
<div class="col-md-4">
<p class="post-date">
<a class="text-muted" href="/{{ article.url }}" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</a>
</p>
<p class="post-category">
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
</p>
{% if article.author and SHOW_ARTICLE_AUTHOR %}
<address class="post-author">
By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
</address>
{% endif %}
</div>
<div class="col-md-8">
<h2 class="post-title">
<a href="/{{ article.url }}" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a>
</h2>
<div class="post-content">
{{ article.content|striptags|truncate(256) }}
</div>
</div>
</div>
</div>
{% endfor %} {% endfor %}
</div> </div>
{% include 'pagination.html' %} {% include 'include/pagination.html' %}
</div>
{% endblock %} {% endblock %}