Commit 80ae7096 authored by Annika Backstrom's avatar Annika Backstrom

Break apart home page and index

With this change, we can manage content on the homepage in a Markdown
file, as we do with all other content on the site.
parent 09fe696a
Title: sixohthree.com
Date: 2017-08-09 23:21
Template: home
URL:
save_as: index.html
Hi, I'm Annika Backstrom. This is my Internet website where I
prove to myself that I exist.
Professionally speaking, I'm a remote Software Engineer based in New
Hampshire, US, which is somewhere around here:
![Map of the United States][map]
I work for [Etsy.com][] on the Internal Platforms team, creating cool
tools for Etsy employees. Before Etsy I did web stuff for [Plymouth
State University][PSU], and before *that* I did database, engineering,
and web stuff for [Stonewall Cable][].
In lieu of a curated list of things I've written, feel free to check out [my
blog][].
[map]: /media/sixohthree.com/map.png "A map of the United States, with a pin over New Hampshire on the east side of the map"
[Etsy.com]: https://www.etsy.com/
[PSU]: https://www.plymouth.edu/
[Stonewall Cable]: http://www.stonewallcable.com/
[my blog]: /blog
......@@ -55,8 +55,8 @@ DISPLAY_PAGES_ON_MENU = False
HEADER_PAGES = (
('Home', ''),
('About', 'about'),
('Blog', 'blog'),
('Projects', 'projects'),
('Archives', 'archives'),
)
MENUITEMS = ()
......@@ -75,7 +75,7 @@ SOCIAL = (
('Keybase', 'https://keybase.io/abackstrom'),
)
DEFAULT_PAGINATION = 10
DEFAULT_PAGINATION = 25
USE_FOLDER_AS_CATEGORY = False
CATEGORY_URL = 'category/{slug}'
......@@ -90,6 +90,9 @@ ARTICLE_SAVE_AS = '{slug}.html'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}.html'
INDEX_URL = '/blog'
INDEX_SAVE_AS = 'blog.html'
AUTHOR_SAVE_AS = ''
DIRECT_TEMPLATES = ( 'index', 'categories', 'archives', 'tags', 'catalog' )
......
......@@ -23,3 +23,5 @@
</div>
</div>
{% endblock %}
{# set:filetype=jinja #}
......@@ -20,7 +20,7 @@
{% block content %}
<div class="row">
<article class="cute-tablet-12">
<article class="cute-12-tablet">
<h1>{{ article.title }}</h1>
{{ article.content }}
{% include 'metadata.inc.html' %}
......
{% extends "base.html" %}
{% block body_classes %}index{% endblock %}
{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
{% block content %}
<div class="row">
<div class="cute-4-tablet">
<div class="headshot mb-3">
<h1>Annika Backstrom</h1>
</div>
<ul>
{% for title, url in SOCIAL %}
<li><a href="{{ url }}">{{ url|replace("http://", "")|replace("https://", "") }}</a></li>
{% endfor %}
</ul>
</div>
<div class="cute-8-tablet">
{{ page.content }}
</div>
</div>
{% endblock %}
{# set:filetype=jinja #}
......@@ -5,39 +5,12 @@
{% block content %}
<div class="row">
<div class="cute-4-tablet">
<div class="headshot mb-3">
<h1>Annika Backstrom</h1>
</div>
<ul>
{% for title, url in SOCIAL %}
<li><a href="{{ url }}">{{ url|replace("http://", "")|replace("https://", "") }}</a></li>
{% endfor %}
</ul>
</div>
<div class="cute-8-tablet">
<p>Hi, I'm Annika Backstrom. This is my Internet website where I
prove to myself that I exist.</p>
<p>Professionally speaking, I'm a Software Engineer located in New
Hampshire, US. It's on the right side of the map:</p>
<p><img src="/media/sixohthree.com/map.png" width="802" height="199"></p>
<p>I work for <a href="https://www.etsy.com/">Etsy.com</a>
on the Internal Platforms team, creating cool tools
for Etsy employees. Before Etsy I did web stuff for <a
href="https://www.plymouth.edu/">Plymouth State University</a>,
and before <em>that</em> I did database, engineering, and web
stuff for <a href="http://www.stonewallcable.com/">Stonewall
Cable</a>.</p>
<div class="cute-12-tablet">
{% if articles %}
<h2>Recent Blog Posts</h2>
<h1>Recent Blog Posts</h1>
<ol class="recent-posts m-0 p-0">
{% for article in articles %}
{% if loop.index < 11 %}
{% if loop.index <= 25 %}
<li class="m-0 p-0 mb-3">
{% include 'article_link.inc.html' %}
</li>
......
......@@ -6,7 +6,7 @@
{% block content %}
<div class="row">
<div class="cute-tablet-12">
<div class="cute-12-tablet">
<h1>{{ page.title }}</h1>
{{ page.content }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment