1
0
Fork 0

Merge branch 'basic-css'

Now it is broken in a different way.
pub/python-goto
LEdoian 2 years ago
commit 2ba1cf43d6

@ -2,7 +2,10 @@ body {
background-color: #003;
color: #5bf;
margin:auto;
max-width: 500px;
/*max-width: 500px;
*/
padding-left: 20px;
padding-right: 20px;
}
a {
@ -19,20 +22,32 @@ main {
border-top: 1px solid;
border-right: 1px solid;
order: 1;
/* Four times wider than <nav>, at least 300px*/
/* Four times wider than <nav>, at base-size 300px*/
flex: 4 300px;
}
main > * {
margin: auto;
max-width: 700px;
}
nav {
order: 2;
float: right;
flex: 1;
flex: 1 75px;
}
nav > * {
padding: 8px;
margin: 6px;
background-color: rgb(31, 18, 81);
border-radius: 12pt;
}
nav h2 {
font-size: 14pt;
}
#main {
display: flex;
flex-wrap: wrap;
@ -41,3 +56,18 @@ nav {
footer {
text-align: right;
}
pre, tt {
background-color: rgba(255, 255, 255, 0.2);
border-radius: 2pt;
}
pre {
padding: 3pt;
overflow-y: scroll;
}
tt {
padding-left: 1pt;
padding-right: 1pt;
}

@ -0,0 +1,3 @@
{% extends 'list.html' %}
{% set page_title = "Archive" %}
{% set list_title = "Archive" %}

@ -0,0 +1,7 @@
{% extends 'base.html' %}
{% set page_title = article.title %}
{% block content %}
<h1>{{ article.title }}</h1>
{# TODO: more details here #}
{{ article.content }}
{% endblock content %}

@ -0,0 +1,3 @@
{% extends 'list.html' %}
{% set page_title = "Author: " + author %}
{% set list_title = "All articles by " + author %}

@ -0,0 +1,5 @@
{% extends 'base.html' %}
{% set page_title = "TODO" %}
{% block content %}
{# TODO! #}
{% endblock content %}

@ -18,10 +18,10 @@
<meta name=color-scheme content="dark">
#}
{# TODO: More meta tags #}
{# TODO: More meta tags (i.e. RSS) #}
{# CSS and other: #}
<link rel=stylesheet href="{{ THEME_STATIC_DIR }}/css/theme.css">
<link rel=stylesheet href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/theme.css">
{# Title setting #}
{% if page_title %}
@ -43,9 +43,11 @@
</nav>
<main>
<div>
{% block content %}
<p>No content here...</p>
{% endblock content %}
</div>
</main>
</div> <!-- #main -->

@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% set page_title = "TODO" %}
{% block content %}
{# TODO! #}
{% endblock content %}

@ -0,0 +1,3 @@
{% extends 'list.html' %}
{% set page_title = "Category: " + category.name %}
{% set list_title = "Category: " + category.name %}

@ -0,0 +1,11 @@
{% extends 'base.html' %}
{% block content %}
<h1>{{ list_title }}</h1>
<ul> {# TODO: rly ul and not list of divs? #}
{% for article in articles %}
{# TODO: More pretty #}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
{% endfor %}
</ul>
{% endblock content %}

@ -0,0 +1,5 @@
{% extends 'list.html' %}
{# FIXME: This is too hacky #}
{% set page_title = "Archive: " + period %}
{% set list_title = "Archive: " + period %}

@ -1,5 +1,25 @@
<p>Here will be menu, and tag list some day.</p>
<ul>
<li>First
<li>Second
</ul>
<div>
<!-- Main navigation -->
<!-- TODO! -->
</div>
<div>
<h2>Categories</h2>
<ul>
{% for category, _art in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
{% endfor %}
</ul>
<h2>Tags</h2>
<ul>
{% for tag, _art in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
<div>
<h2>Stalk me also at</h2>
TODO!
<h2>I stalk</h2>
TODO!

@ -0,0 +1,4 @@
{% extends 'list.html' %}
{% set page_title = "Tag: " + tag.name %}
{% set list_title = "Articles tagged with " + tag.name %}

@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% set page_title = "TODO" %}
{% block content %}
{# TODO! #}
{% endblock content %}
Loading…
Cancel
Save