Skip to content
Snippets Groups Projects
Commit 801aefa1 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Home and contact page content; Recent Posts; Pretty URLs

parent c4ac5848
No related branches found
No related tags found
No related merge requests found
Title: Contact Me
[anton@ant.sr](mailto:anton@ant.sr)
......@@ -4,4 +4,13 @@ URL:
Template: home
Save_As: index.html
Hello world.
### Hi! My name is Anton.
I have a passion for solving problems with technology.
I currently develop custom PHP and Python applications for
[Rutgers OIT](https://oit.rutgers.edu). When I’m not working,
I enjoy tinkering with electronics, building stuff,
nature, and bike rides.
Do you have a tough technical challenge? Need a website,
custom software, or a hardware integration? [I’d love to hear from you]({filename}/pages/contact.md).
......@@ -9,9 +9,16 @@ SITEURL = ''
PATH = 'content'
THEME = 'theme'
PAGE_URL = '{slug}'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_URL = '{slug}'
ARTICLE_SAVE_AS = '{slug}/index.html'
TIMEZONE = 'America/New_York'
DEFAULT_DATE = 'fs'
DATE_FORMATS = {
'en': '%B %d, %Y',
}
DEFAULT_PAGINATION = 10
# no feeds in dev
......
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% for keyword in article.keywords %}
<meta name="keywords" content="{{keyword}}" />
{% endfor %}
{% for description in article.description %}
<meta name="description" content="{{description}}" />
{% endfor %}
{% for tag in article.tags %}
<meta name="tags" content="{{tag}}" />
{% endfor %}
{% endblock %}
{% block content %}
<header>
<h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">{{ article.title }}</a>
</h2>
<p class="date">Posted on {{ article.locale_date }}</p>
{% if article.modified %}
<p class="date">Modified on {{ article.locale_modified }}</p>
{% endif %}
</header>
<div>
{{ article.content }}
</div>
{% endblock %}
......@@ -3,24 +3,17 @@
{{ page.content }}
<section>
<h2>Recent Posts</h2>
<ol>
{% for article in articles.object_list %}
<ul>
{% for article in articles %}
<li>
<article>
<header><h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">
{{ article.title }}</a>
</h2></header>
<div>{{ article.summary }}</div>
<footer>
Published
<abbr title="{{ article.date.isoformat() }}">
{{ article.locale_date }}</abbr>
</footer>
{{ article.title }}</a> on
{{ article.locale_date }}
</article>
</li>
{% endfor %}
</ol>
</ul>
</section>
{% endblock content %}
{% block footer %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment