mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
reorganize the content
This commit is contained in:
parent
f14fc248fd
commit
831dd11676
33 changed files with 120 additions and 1 deletions
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
@ -1,7 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
PATH = "content"
|
||||
AUTHOR = u'Alexis Métaireau'
|
||||
SITENAME = u"Alexis' log"
|
||||
THEME = "theme"
|
||||
|
||||
DISQUS_SITENAME = "blog-notmyidea"
|
||||
SITEURL = 'http://blog.notmyidea.org'
|
||||
|
@ -17,3 +18,5 @@ LINKS = (('Biologeek', 'http://biologeek.org'),
|
|||
SOCIAL = (('twitter', 'http://twitter.com/ametaireau'),
|
||||
('lastfm', 'http://lastfm.com/user/akounet'),
|
||||
('github', 'http://github.com/ametaireau'),)
|
||||
|
||||
TIMEZONE = "Europe/Paris"
|
||||
|
|
81
theme/static/css/main.css
Normal file
81
theme/static/css/main.css
Normal file
|
@ -0,0 +1,81 @@
|
|||
@import url(http://fonts.googleapis.com/css?family=Rosario);
|
||||
|
||||
body {
|
||||
width: 800px;
|
||||
margin: auto;
|
||||
font-size: 1.3em;
|
||||
background-color: #fffff0;
|
||||
font-family: "Georgia", serif;
|
||||
}
|
||||
|
||||
#top {}
|
||||
#top .author {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#top .links {
|
||||
float: right;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#top .links, #top .links li{
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#top .links li{
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.content {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.content h1, h2, h3, h4, h5, h6{
|
||||
font-family: 'Rosario', arial, serif;
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
.content h1{
|
||||
font-size: 2.5em;
|
||||
}
|
||||
|
||||
.content p{
|
||||
font-size: 1.1em;
|
||||
text-align: justify;
|
||||
text-justify: newspaper;
|
||||
}
|
||||
|
||||
.content .date{
|
||||
margin-top: -20px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.content h2{
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.content a{
|
||||
padding: 2px;
|
||||
color: #0F0F0F;
|
||||
}
|
||||
|
||||
.content a:hover{
|
||||
background-color: #0F0F0F;
|
||||
color: #eaeaea;
|
||||
}
|
||||
|
||||
.content .highlight pre{
|
||||
padding: 15px;
|
||||
background-color: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.content blockquote {
|
||||
margin: 0px;
|
||||
margin-right: 40px;
|
||||
padding-left: 20px;
|
||||
text-align: left;
|
||||
border-left: 3px black solid;
|
||||
letter-spacing: 2px;
|
||||
font-style: italic;
|
||||
}
|
9
theme/templates/article.html
Normal file
9
theme/templates/article.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block links %}
|
||||
<li><a href="{{ SITEURL }}">↵ </a></li>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>{{ article.title }}</h1>
|
||||
<p class="date">Published on {{ article.locale_date }}</p>
|
||||
{{ article.content }}
|
||||
{% endblock %}
|
16
theme/templates/base.html
Normal file
16
theme/templates/base.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" media="screen" charset="utf-8">
|
||||
<link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
|
||||
<title>Alexis Métaireau</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="top">
|
||||
<p class="author"><a href="{{ SITEURL }}/about.html">{{ AUTHOR }}</a>'s thoughs</p>
|
||||
<ul class="links">{% block links %}{% endblock %}</ul>
|
||||
</div>
|
||||
<div class="content clear">{% block content %}{% endblock %}</div>
|
||||
</body>
|
||||
</html>
|
10
theme/templates/index.html
Normal file
10
theme/templates/index.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
{% for article in articles %}
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<p>{{ article.description }}</p>
|
||||
<p class="date">Published on {{ article.locale_date }}</p>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in a new issue