theming..
This commit is contained in:
parent
d6d8995e00
commit
704e4c4294
7 changed files with 92 additions and 31 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
public/
|
public/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
venv/
|
||||||
|
__pycache__/
|
||||||
|
|
|
||||||
5
content/pages/profile.rst
Normal file
5
content/pages/profile.rst
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
hello,goodbye
|
||||||
|
=============
|
||||||
|
|
||||||
|
Hello.
|
||||||
|
Goodbye.
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
pelican ~= 4.1.0
|
pelican ~= 4.1.0
|
||||||
markdown
|
markdown
|
||||||
typogrify
|
typogrify
|
||||||
bulrush
|
|
||||||
pathlib
|
pathlib
|
||||||
virtualenv
|
virtualenv
|
||||||
|
|
|
||||||
3
theme/static/css/tachyons.min.css
vendored
Normal file
3
theme/static/css/tachyons.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,34 +1,52 @@
|
||||||
{% extends "base.html" %}
|
<!DOCTYPE html>
|
||||||
{% block content_title %}{% endblock %}
|
<html lang="en">
|
||||||
{% block content %}
|
|
||||||
{% if articles %}
|
<head>
|
||||||
|
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/tachyons.min.css" type="text/css" />
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font: 0.75em/1.5 Verdana, AppleGothic, Sans-serif;
|
||||||
|
}
|
||||||
|
a, a:active, a:link, a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
time {
|
||||||
|
font-size: 0.65em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div style="margin: 1em;">
|
||||||
|
|
||||||
|
<a class="w-100 black o-10 db pb5" href="{{ SITEURL }} " title="title">
|
||||||
|
<div class="b black" style="font-size: 3.6em;">
|
||||||
|
{{ SITENAME }}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
{% for article in articles %}
|
{% for article in articles %}
|
||||||
|
|
||||||
{# First item #}
|
<a href="{{ SITEURL }}/{{ article.url }}" class="db b pb2">
|
||||||
{% if loop.first %}
|
{{ article.title }}
|
||||||
<header>
|
</a>
|
||||||
<h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
|
||||||
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
<div>
|
||||||
</header>
|
{{ article.content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if not HIDE_DATE %}
|
||||||
|
<time class="db w-100 tr pb4 o-30" datetime="{{ article.date.isoformat() }}">
|
||||||
|
{{ article.locale_date }}
|
||||||
|
</time>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article>
|
|
||||||
{{ article.content }}{% include 'comments.html' %}
|
|
||||||
</article>
|
|
||||||
{% if loop.length > 1 %}
|
|
||||||
<section id="article-list">
|
|
||||||
<h2>All posts</h2>
|
|
||||||
<ol>
|
|
||||||
{% endif %}
|
|
||||||
{# other items #}
|
|
||||||
{% else %}
|
|
||||||
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if loop.length > 1 %}
|
|
||||||
</ol>
|
|
||||||
</section><!-- #article-list -->
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
</div>
|
||||||
No posts found.
|
|
||||||
{% endif %}
|
</body>
|
||||||
{% endblock content %}
|
|
||||||
|
</html>
|
||||||
|
|
|
||||||
34
theme/templates/index.html.orig
Normal file
34
theme/templates/index.html.orig
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% block content_title %}{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
{% if articles %}
|
||||||
|
{% for article in articles %}
|
||||||
|
|
||||||
|
{# First item #}
|
||||||
|
{% if loop.first %}
|
||||||
|
<header>
|
||||||
|
<h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#} <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
||||||
|
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<article>
|
||||||
|
{{ article.content }}{% include 'comments.html' %}
|
||||||
|
</article>
|
||||||
|
{% if loop.length > 1 %}
|
||||||
|
<section id="article-list">
|
||||||
|
<h2>All posts</h2>
|
||||||
|
<ol>
|
||||||
|
{% endif %}
|
||||||
|
{# other items #}
|
||||||
|
{% else %}
|
||||||
|
<li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></li>
|
||||||
|
{% endif %}
|
||||||
|
{% if loop.length > 1 %}
|
||||||
|
</ol>
|
||||||
|
</section><!-- #article-list -->
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
No posts found.
|
||||||
|
{% endif %}
|
||||||
|
{% endblock content %}
|
||||||
Loading…
Reference in a new issue