summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--design/sass/_src.scss6
-rw-r--r--design/templates/archives/src_home.html28
-rw-r--r--design/templates/details/src_entry.html15
-rwxr-xr-xmanage.py18
4 files changed, 47 insertions, 20 deletions
diff --git a/design/sass/_src.scss b/design/sass/_src.scss
index 7aeaa46..a20e1f3 100644
--- a/design/sass/_src.scss
+++ b/design/sass/_src.scss
@@ -91,12 +91,6 @@ pre{
border-bottom: 1px #a19d9d dotted;
text-transform: uppercase;
}
- h4 {
- @include fancy_sans;
- @include fontsize(20);
- text-align: left;
- margin: 3.5rem 0 0;
- }
h5 {
margin: 3rem 0 -1.5rem 0;
text-transform: uppercase;
diff --git a/design/templates/archives/src_home.html b/design/templates/archives/src_home.html
index 519c186..23a572b 100644
--- a/design/templates/archives/src_home.html
+++ b/design/templates/archives/src_home.html
@@ -11,14 +11,24 @@
<li>{{topic}}</li>{%else%}
<li><code>src</code></li>{%endif%}
</ul>
- <main role="main" id="src-archive" class="src-archive archive">
- <h1 class="topic-hed"><code>src:</code> {% if topic %}Articles about {{topic.pluralized_name}}{%else%}Archive{%endif%}</h1>
- <h3 class="latest">Latest Posts</h3>
- {% for object in object_list %}{% if object.slug != 'about' %}
- <article class="h-entry hentry {% cycle 'odd' 'even' %} {% cycle 'first' 'second' 'third' %}" itemscope itemType="http://schema.org/Article">
- <h2><a href="{{object.get_absolute_url}}">{{object.title|safe|smartypants|widont}}</a></h2>
- <p>{{object.meta_description|safe|smartypants|widont}} <a href="{{object.get_absolute_url}}">Read&nbsp;more.</a></p>
- </article>{%endif%}
- {%endfor%}
+ <main role="main" id="essay-archive" class="essay-archive archive-list">
+ <div class="essay-intro">
+ <h2>Tutorials and how-tos for web developers.</h2>
+ <p>Topics include Linux, Nginx, Python, Postgresql, free software, HTML, and once, Google AMP.</p>
+ <p>Some of the articles below were previously published in: <em><a href="https://arstechnica.com/">Ars Technica</a></em>, <em><a href="https://www.wired.com/author/scott-gilbertson/">Wired</a></em>, and <em><a href="https://www.theregister.co.uk/Author/Scott-Gilbertson/">The Register</a></em></p>
+ </div>
+ <h1 class="topic-hed">Articles</h1>
+ <ul>{% for object in object_list %}{% if object.slug != 'about' %}
+ <li class="h-entry hentry" itemscope itemType="http://schema.org/Article">
+ <span class="date dt-published">{{object.pub_date|date:"F Y"}}</span>
+ <a href="{{object.get_absolute_url}}">
+ <h2>{{object.title|safe|smartypants|widont}}</h2>
+ <p class="p-summary">{{object.meta_description|safe|smartypants|widont}}</p>
+ </a>
+ </li>
+ {%endif%}{%endfor%}</ul>
+
+
+
</main>
{%endblock%}
diff --git a/design/templates/details/src_entry.html b/design/templates/details/src_entry.html
index 4f4523a..91532dc 100644
--- a/design/templates/details/src_entry.html
+++ b/design/templates/details/src_entry.html
@@ -4,7 +4,7 @@
{% block pagetitle %}{{object.title|striptags}} | luxagraf:src{% endblock %}
-{% block bodyid %}class="src detail"{% endblock %}
+{% block bodyid %}class="src detail single"{% endblock %}
{% block metadescription %}{% autoescape on %}{{object.meta_description|striptags|safe}}{% endautoescape %}{% endblock %}
{%block extrahead%}
<meta property="og:type" content="article" />
@@ -29,12 +29,17 @@
</ul>
<main role="main">
<article class="hentry post-article{% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %} post--article--double{%endif%}{%endwith%}" itemscope itemType="http://schema.org/Article">
- <header id="header" class="post--header {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %}post--header--double{%endif%}{%endwith%}">
+ <header id="header" class="post-header {% with object.get_template_name_display as t %}{%if t == "double" or t == "double-dark" %}post--header--double{%endif%}{%endwith%}">
<h1 class="p-name entry-title post--title" itemprop="headline">{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|safe|smartypants}}{%else%}{{object.title|safe|smartypants|widont}}{%endif%}</h1>
- {% if object.slug != 'about' %}<time class="dt-published published dt-updated post--date" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>{%endif%}
- {% if object.topics.all %}<span class="src-topics">Topics: {% for topic in object.topics.all%} <a href="/src/topic/{{topic.slug}}">{{topic.name}}</a>{%if forloop.last%}{%else%}, {%endif%}{%endfor%}</span>{%endif%}
- <p class="p-author author hide" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>
+ <h2 class="post-subtitle">{{object.meta_description|smartypants|safe}}</h2>
+ <div class="post-dateline">
+ {% if object.topics.all %}<h4 class="post-source">Topics: {% for topic in object.topics.all%} <a href="/src/topic/{{topic.slug}}">{{topic.name}}</a>{%if forloop.last%}{%else%}, {%endif%}{%endfor%}</h4>{%endif%}
+ {% if object.slug != 'about' %}<time class="dt-published published dt-updated post-date" datetime="{{object.pub_date|date:'c'}}" itemprop="datePublished">{{object.pub_date|date:"F"}} <span>{{object.pub_date|date:"j, Y"}}</span></time>{%endif%}
+ <p class="p-author author hide" itemprop="author"><span class="byline-author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Scott Gilbertson</span></span></p>
+ </div>
</header>
+
+
<div id="article" class="e-content entry-content post-body post-body-{% with object.template_name as t %}{%if t == 0 or t == 2 %}single{%endif%}{%if t == 1 or t == 3 %}double{%endif%}{%endwith%}" itemprop="articleBody">
{{object.body_html|safe|smartypants|widont}}
</div>
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000..eb3ebbe
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+import os
+import sys
+d = os.path.dirname(os.path.abspath(__file__))
+sys.path.append(d+"/app")
+sys.path.append(d+"/app/lib")
+sys.path.append(d+"/config")
+if __name__ == '__main__':
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)