added categories and article templates.

This commit is contained in:
theo lem 2020-04-30 18:12:44 +02:00
parent 07c710bd1d
commit b995215b04
30 changed files with 323 additions and 25 deletions

7
content/blog/first.md Normal file
View File

@ -0,0 +1,7 @@
Title: First
Date: 2020-04-24 17:01
Modified: 2020-04-24 17:01
Category: blog
Tags: article
Slug: first
Authors: theo

7
content/blog/third.md Normal file
View File

@ -0,0 +1,7 @@
Title: Third
Date: 2020-04-24 17:01
Modified: 2020-04-24 17:01
Category: blog
Tags: article
Slug: third
Authors: theo

8
content/pages/about.md Normal file
View File

@ -0,0 +1,8 @@
Title: About
Date: 2020-04-24 17:01
Modified: 2020-04-24 17:01
Tags: article
Slug: about
Authors: theo
hello

7
content/poems/second.md Normal file
View File

@ -0,0 +1,7 @@
Title: Second
Date: 2020-04-24 17:01
Modified: 2020-04-24 17:01
Category: poem
Tags: article
Slug: second
Authors: theo

View File

@ -3,23 +3,29 @@
<head>
<meta charset="utf-8">
<title>theo lem - Archives</title>
<link rel="stylesheet" href="theme/css/main.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='index.html'>
<img class='banner-img' src='images/banner_croped.png'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a id='home' href='index.html'></a>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<h1>Archives for theo lem</h1>
<dl>
<dt>ven. 24 avril 2020</dt>
<dd><a href="https://theo-lem.org/first.html">First</a></dd>
<dt>ven. 24 avril 2020</dt>
<dd><a href="https://theo-lem.org/second.html">Second</a></dd>
<dt>ven. 24 avril 2020</dt>
<dd><a href="https://theo-lem.org/third.html">Third</a></dd>
</dl>
</div>

0
output/author/theo.html Normal file
View File

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
</div>
</body>
</html>

34
output/category/blog.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<a href="/first.html">First</a><br>
<p>2020-04-24 17:01:00+02:00</p>
<p>---</p>
<a href="/third.html">Third</a><br>
<p>2020-04-24 17:01:00+02:00</p>
<p>---</p>
</div>
</body>
</html>

31
output/category/poem.html Normal file
View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<a href="/second.html">Second</a><br>
<p>2020-04-24 17:01:00+02:00</p>
<p>---</p>
</div>
</body>
</html>

View File

@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>theo lem</title><link href="https://theo-lem.org/" rel="alternate"></link><link href="https://theo-lem.org/feeds/all.atom.xml" rel="self"></link><id>https://theo-lem.org/</id><updated>2020-04-29T20:13:10Z</updated></feed>
<feed xmlns="http://www.w3.org/2005/Atom"><title>theo lem</title><link href="https://theo-lem.org/" rel="alternate"></link><link href="https://theo-lem.org/feeds/all.atom.xml" rel="self"></link><id>https://theo-lem.org/</id><updated>2020-04-24T17:01:00+02:00</updated><entry><title>First</title><link href="https://theo-lem.org/first.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/first.html</id><content type="html"></content><category term="blog"></category><category term="article"></category></entry><entry><title>Second</title><link href="https://theo-lem.org/second.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/second.html</id><content type="html"></content><category term="poem"></category><category term="article"></category></entry><entry><title>Third</title><link href="https://theo-lem.org/third.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/third.html</id><content type="html"></content><category term="blog"></category><category term="article"></category></entry></feed>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>theo lem - blog</title><link href="https://theo-lem.org/" rel="alternate"></link><link href="https://theo-lem.org/feeds/blog.atom.xml" rel="self"></link><id>https://theo-lem.org/</id><updated>2020-04-24T17:01:00+02:00</updated><entry><title>First</title><link href="https://theo-lem.org/first.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/first.html</id><content type="html"></content><category term="blog"></category><category term="article"></category></entry><entry><title>Third</title><link href="https://theo-lem.org/third.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/third.html</id><content type="html"></content><category term="blog"></category><category term="article"></category></entry></feed>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>theo lem - poem</title><link href="https://theo-lem.org/" rel="alternate"></link><link href="https://theo-lem.org/feeds/poem.atom.xml" rel="self"></link><id>https://theo-lem.org/</id><updated>2020-04-24T17:01:00+02:00</updated><entry><title>Second</title><link href="https://theo-lem.org/second.html" rel="alternate"></link><published>2020-04-24T17:01:00+02:00</published><updated>2020-04-24T17:01:00+02:00</updated><author><name>theo</name></author><id>tag:theo-lem.org,2020-04-24:/second.html</id><content type="html"></content><category term="poem"></category><category term="article"></category></entry></feed>

34
output/first.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<div class="title-block">
<h1>First</h1>
<h4>2020-04-24 17:01:00+02:00</h4>
<p>---</p>
</div>
<div class="content">
</div>
</div>
</body>
</html>

View File

@ -3,24 +3,25 @@
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="theme/css/main.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='index.html'>
<img class='banner-img' src='images/banner_croped.png'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a id='home' href='index.html'></a>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<ul>TODO
<li>beautiful navbar</li>
<li>articles page</li>
<li>about page</li>
<li>content ! </li>
</ul>
</div>

25
output/pages/about.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
</div>
</body>
</html>

34
output/second.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<div class="title-block">
<h1>Second</h1>
<h4>2020-04-24 17:01:00+02:00</h4>
<p>---</p>
</div>
<div class="content">
</div>
</div>
</body>
</html>

0
output/tag/article.html Normal file
View File

View File

@ -28,3 +28,6 @@
padding-left: 10px;
padding-right: 10px;
}
.title-block {
text-align: left;
}

View File

@ -3,7 +3,6 @@
@banner-height: 530px;
@banner-width: 100%;
* {
background-color: white;
font-family: 'Courier New', Courier, monospace;
@ -39,4 +38,8 @@
.article-anchor {
padding-left: 10px;
padding-right: 10px;
}
.title-block {
text-align: left;
}

34
output/third.html Normal file
View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>theo lem</title>
<link rel="stylesheet" href="/theme/css/main.css" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='/index.html'>
<img class='banner-img' src='/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a class='categories' href= "/category/blog.html" > blog</a>
<a class='categories' href= "/category/poem.html" > poem</a>
</div>
<div class='content'>
<div class="title-block">
<h1>Third</h1>
<h4>2020-04-24 17:01:00+02:00</h4>
<p>---</p>
</div>
<div class="content">
</div>
</div>
</body>
</html>

View File

@ -29,6 +29,9 @@ AUTHOR_FEED_RSS = None
# SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
DEFAULT_PAGINATION = False
CSS_FILE = 'main.css'

View File

@ -18,7 +18,6 @@ FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
#DISQUS_SITENAME = ""

View File

@ -28,3 +28,6 @@
padding-left: 10px;
padding-right: 10px;
}
.title-block {
text-align: left;
}

View File

@ -38,4 +38,8 @@
.article-anchor {
padding-left: 10px;
padding-right: 10px;
}
.title-block {
text-align: left;
}

View File

@ -1,6 +1,13 @@
{% extends 'base.html' %}
{% block content %}
<div class="title-block">
<h1>{{ article.title }}</h1>
<h4>{{ article.date}}</h4>
<p>---</p>
</div>
<div class="content">
{{ article.content }}
</div>
{{ article.content }}
{% endblock content %}

View File

@ -3,23 +3,19 @@
<head>
<meta charset="utf-8">
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<link rel="stylesheet" href="theme/css/{{ CSS_FILE }}" type="text/css" />
<link rel="stylesheet" href="{{ SITE_URL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" type="text/css" />
</head>
<body>
<div class='banner'>
<a href='index.html'>
<img class='banner-img' src='images/banner_croped.png'>
<a href='{{SITE_URL}}/index.html'>
<img class='banner-img' src='{{ SITE_URL }}/images/banner_croped.png'>
</a>
</div>
<div align='center' class='navbar'>
<a id='home' href='index.html'></a>
{% if articles %}
<div id='article-anchors'>
{% for article in articles %}
<a class='article-anchor' href={{ article.url }}>{{ article.title }}</a>
{% for category, article in categories %}
<a class='categories' href= "{{SITE_URL}}/{{ category.url }}" > {{ category }}</a>
{% endfor %}
</div>
{% endif %}
</div>

View File

@ -0,0 +1,4 @@
{% extends 'base.html' %}
{% block content %}
{% endblock content %}

View File

@ -0,0 +1,14 @@
{% extends 'base.html' %}
{% block content %}
{% if articles %}
{% for article in articles %}
<a href="{{ SITE_URL }}/{{ article.url }}">{{article.title}}</a><br>
<p>{{ article.date }}</p>
<p>---</p>
{% endfor %}
{% endif %}
{% endblock content %}

View File

@ -3,7 +3,8 @@
<ul>TODO
<li>beautiful navbar</li>
<li>articles page</li>
<li>about page</li>
<li>content ! </li>
</ul>
{% endblock content %}

View File

@ -0,0 +1,4 @@
{% extends 'base.html' %}
{% block content %}
{% endblock content %}