Apply prettier and djlint
This commit is contained in:
parent
c893ec385b
commit
6b2d5df075
0
.prettierrc
Normal file
0
.prettierrc
Normal file
@ -13,14 +13,14 @@ The robotics competition started on Thursday (just for setup), and went until Sa
|
||||
|
||||
My thoughts on the game/competition:
|
||||
|
||||
- the noodles were much more important than I had anticipated. There were many matches where throwing them earned the majority of the points. (up to 40. for reference, our final qualifying average was somewhere around 20, while the first seed (1519)'s was around 80)
|
||||
- I am not really fond of this: human players shouldn't be that important. The robot it the important part.
|
||||
- Autonomous rarely scored many points (since it basically required all of the robots to work/have an autonomous), with the exception of 1519, who could do a 3 tote stack.
|
||||
- Also pretty annoying, since that meant that programming didn't really have any oportunity to show off.
|
||||
- Using average points was a bit weird, and I don't think I liked that much either (even though it helped us a bit).
|
||||
- Being paired with a top team meant that you could have a very high scoring match, drastically rasing your average (and therefore your rank). The reverse is also true; a poor alliance can quickly decrease your score/rank. I saw one match where a team got raised 11 ranks, and in one of ours, we got raised 9.
|
||||
- Previously each mach could only affect your team by adding or subtracting 1 from your "score," whereas here the change was much more significant
|
||||
- Overall, it was a lot more fun as a spectator sport than I was expecting. Each match played out quite differently, even when we did the basically the same things
|
||||
- the noodles were much more important than I had anticipated. There were many matches where throwing them earned the majority of the points. (up to 40. for reference, our final qualifying average was somewhere around 20, while the first seed (1519)'s was around 80)
|
||||
- I am not really fond of this: human players shouldn't be that important. The robot it the important part.
|
||||
- Autonomous rarely scored many points (since it basically required all of the robots to work/have an autonomous), with the exception of 1519, who could do a 3 tote stack.
|
||||
- Also pretty annoying, since that meant that programming didn't really have any oportunity to show off.
|
||||
- Using average points was a bit weird, and I don't think I liked that much either (even though it helped us a bit).
|
||||
- Being paired with a top team meant that you could have a very high scoring match, drastically rasing your average (and therefore your rank). The reverse is also true; a poor alliance can quickly decrease your score/rank. I saw one match where a team got raised 11 ranks, and in one of ours, we got raised 9.
|
||||
- Previously each mach could only affect your team by adding or subtracting 1 from your "score," whereas here the change was much more significant
|
||||
- Overall, it was a lot more fun as a spectator sport than I was expecting. Each match played out quite differently, even when we did the basically the same things
|
||||
|
||||
I have a bunch of stuff written down (in [todo.txt](https://github.com/ginatrapani/todo.txt-cli/), more on this <del>later</del> whenever I get around to it) for what needs to be done before our next competition (in Massachusetts, after break). Since robotics season (the winter trimester) is over, I can only hope things actually get done.
|
||||
|
||||
|
@ -10,12 +10,13 @@ Favorite short stories that I think everyone should read: [The Last Question](ht
|
||||
|
||||
#### Me, in other places:
|
||||
|
||||
- [Github](https://github.com/ad1217)
|
||||
- [Hackaday.io](http://hackaday.io/hacker/14006-adam-goldsmith)
|
||||
- User ad1217 in most places
|
||||
- [Github](https://github.com/ad1217)
|
||||
- [Hackaday.io](http://hackaday.io/hacker/14006-adam-goldsmith)
|
||||
- User ad1217 in most places
|
||||
|
||||
### Some other stuff I host on this server
|
||||
- [A calendar of my classes, autogenerated](/WPI_Classes.ics/)
|
||||
- [My git repos (including dotfiles) which are not on github](/cgit/)
|
||||
|
||||
- [A calendar of my classes, autogenerated](/WPI_Classes.ics/)
|
||||
- [My git repos (including dotfiles) which are not on github](/cgit/)
|
||||
|
||||
Here is my PGP pubkey: [pubkey.gpg](/pubkey.gpg)
|
||||
|
@ -13,15 +13,15 @@
|
||||
@import url("pygment.css");
|
||||
|
||||
body {
|
||||
background: #1E1E1E;
|
||||
color: #EEE;
|
||||
background: #1e1e1e;
|
||||
color: #eee;
|
||||
font: 15px Hoefler Text, bodyfont, serif;
|
||||
max-width: 50em;
|
||||
margin: 20px 20px 0 64px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #F00;
|
||||
color: #f00;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1.5em;
|
||||
font-weight: normal;
|
||||
@ -29,19 +29,19 @@ h1 {
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #DDD;
|
||||
color: #ddd;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: #CCC;
|
||||
color: #ccc;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
color: #CCC;
|
||||
color: #ccc;
|
||||
font-family: Helvetica, sans-serif;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
@ -52,12 +52,13 @@ time {
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
||||
#site-title, #site-title:visited{
|
||||
#site-title,
|
||||
#site-title:visited {
|
||||
color: #ddd;
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
#site-title:hover{
|
||||
#site-title:hover {
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
font-size: 150%;
|
||||
@ -78,7 +79,7 @@ img {
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: 1px solid #A5ABAB;
|
||||
border-left: 1px solid #a5abab;
|
||||
margin: 0px;
|
||||
padding: 0 12px 0 12px;
|
||||
}
|
||||
@ -105,19 +106,21 @@ a:hover {
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #6F6144;
|
||||
color: #6f6144;
|
||||
}
|
||||
|
||||
a:visited:hover {
|
||||
background-color: #F60;
|
||||
background-color: #f60;
|
||||
color: white;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding: .5em 0em 1em 3.2em;
|
||||
ul,
|
||||
ol {
|
||||
padding: 0.5em 0em 1em 3.2em;
|
||||
}
|
||||
|
||||
ul li, ol li {
|
||||
ul li,
|
||||
ol li {
|
||||
line-height: 30px;
|
||||
padding: 6px 0 0 0;
|
||||
}
|
||||
@ -128,8 +131,9 @@ strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
tt, pre {
|
||||
background-color: #2A2A2A;
|
||||
tt,
|
||||
pre {
|
||||
background-color: #2a2a2a;
|
||||
font-family: Inconsolata, Monaco, monospace;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
@ -163,8 +167,8 @@ header a#page-title {
|
||||
}
|
||||
|
||||
footer {
|
||||
background: #2A2A2A;
|
||||
color: #CCC;
|
||||
background: #2a2a2a;
|
||||
color: #ccc;
|
||||
font-family: helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
letter-spacing: 4px;
|
||||
|
@ -1,205 +1,205 @@
|
||||
.hll {
|
||||
background-color:#FFFFCC;
|
||||
background-color: #ffffcc;
|
||||
}
|
||||
.c {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
color: #408090;
|
||||
font-style: italic;
|
||||
}
|
||||
.err {
|
||||
border:1px solid #FF0000;
|
||||
border: 1px solid #ff0000;
|
||||
}
|
||||
.k {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.o {
|
||||
color:#666666;
|
||||
color: #666666;
|
||||
}
|
||||
.cm {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
color: #408090;
|
||||
font-style: italic;
|
||||
}
|
||||
.cp {
|
||||
color:#007020;
|
||||
color: #007020;
|
||||
}
|
||||
.c1 {
|
||||
color:#408090;
|
||||
font-style:italic;
|
||||
color: #408090;
|
||||
font-style: italic;
|
||||
}
|
||||
.cs {
|
||||
background-color:#FFF0F0;
|
||||
color:#408090;
|
||||
background-color: #fff0f0;
|
||||
color: #408090;
|
||||
}
|
||||
.gd {
|
||||
color:#A00000;
|
||||
color: #a00000;
|
||||
}
|
||||
.ge {
|
||||
font-style:italic;
|
||||
font-style: italic;
|
||||
}
|
||||
.gr {
|
||||
color:#FF0000;
|
||||
color: #ff0000;
|
||||
}
|
||||
.gh {
|
||||
color:#000080;
|
||||
font-weight:bold;
|
||||
color: #000080;
|
||||
font-weight: bold;
|
||||
}
|
||||
.gi {
|
||||
color:#00A000;
|
||||
color: #00a000;
|
||||
}
|
||||
.go {
|
||||
color:#303030;
|
||||
color: #303030;
|
||||
}
|
||||
.gp {
|
||||
color:#C65D09;
|
||||
font-weight:bold;
|
||||
color: #c65d09;
|
||||
font-weight: bold;
|
||||
}
|
||||
.gs {
|
||||
font-weight:bold;
|
||||
font-weight: bold;
|
||||
}
|
||||
.gu {
|
||||
color:#800080;
|
||||
font-weight:bold;
|
||||
color: #800080;
|
||||
font-weight: bold;
|
||||
}
|
||||
.gt {
|
||||
color:#0040D0;
|
||||
color: #0040d0;
|
||||
}
|
||||
.kc {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.kd {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.kn {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.kp {
|
||||
color:#007020;
|
||||
color: #007020;
|
||||
}
|
||||
.kr {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.kt {
|
||||
color:#902000;
|
||||
color: #902000;
|
||||
}
|
||||
.m {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
.s {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.na {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.nb {
|
||||
color:#007020;
|
||||
color: #007020;
|
||||
}
|
||||
.nc {
|
||||
color:#0E84B5;
|
||||
font-weight:bold;
|
||||
color: #0e84b5;
|
||||
font-weight: bold;
|
||||
}
|
||||
.no {
|
||||
color:#60ADD5;
|
||||
color: #60add5;
|
||||
}
|
||||
.nd {
|
||||
color:#555555;
|
||||
font-weight:bold;
|
||||
color: #555555;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ni {
|
||||
color:#D55537;
|
||||
font-weight:bold;
|
||||
color: #d55537;
|
||||
font-weight: bold;
|
||||
}
|
||||
.ne {
|
||||
color:#007020;
|
||||
color: #007020;
|
||||
}
|
||||
.nf {
|
||||
color:#10D0E0;
|
||||
color: #10d0e0;
|
||||
}
|
||||
.nl {
|
||||
color:#002070;
|
||||
font-weight:bold;
|
||||
color: #002070;
|
||||
font-weight: bold;
|
||||
}
|
||||
.nn {
|
||||
color:#0E84B5;
|
||||
font-weight:bold;
|
||||
color: #0e84b5;
|
||||
font-weight: bold;
|
||||
}
|
||||
.nt {
|
||||
color:#062873;
|
||||
font-weight:bold;
|
||||
color: #062873;
|
||||
font-weight: bold;
|
||||
}
|
||||
.nv {
|
||||
color:#BB60D5;
|
||||
color: #bb60d5;
|
||||
}
|
||||
.ow {
|
||||
color:#007020;
|
||||
font-weight:bold;
|
||||
color: #007020;
|
||||
font-weight: bold;
|
||||
}
|
||||
.w {
|
||||
color:#BBBBBB;
|
||||
color: #bbbbbb;
|
||||
}
|
||||
.mf {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
.mh {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
.mi {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
.mo {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
.sb {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.sc {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.sd {
|
||||
color:#4070A0;
|
||||
font-style:italic;
|
||||
color: #4070a0;
|
||||
font-style: italic;
|
||||
}
|
||||
.s2 {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.se {
|
||||
color:#4070A0;
|
||||
font-weight:bold;
|
||||
color: #4070a0;
|
||||
font-weight: bold;
|
||||
}
|
||||
.sh {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.si {
|
||||
color:#70A0D0;
|
||||
font-style:italic;
|
||||
color: #70a0d0;
|
||||
font-style: italic;
|
||||
}
|
||||
.sx {
|
||||
color:#C65D09;
|
||||
color: #c65d09;
|
||||
}
|
||||
.sr {
|
||||
color:#235388;
|
||||
color: #235388;
|
||||
}
|
||||
.s1 {
|
||||
color:#4070A0;
|
||||
color: #4070a0;
|
||||
}
|
||||
.ss {
|
||||
color:#517918;
|
||||
color: #517918;
|
||||
}
|
||||
.bp {
|
||||
color:#007020;
|
||||
color: #007020;
|
||||
}
|
||||
.vc {
|
||||
color:#BB60D5;
|
||||
color: #bb60d5;
|
||||
}
|
||||
.vg {
|
||||
color:#BB60D5;
|
||||
color: #bb60d5;
|
||||
}
|
||||
.vi {
|
||||
color:#BB60D5;
|
||||
color: #bb60d5;
|
||||
}
|
||||
.il {
|
||||
color:#208050;
|
||||
color: #208050;
|
||||
}
|
||||
|
@ -1,13 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section id="content" class="body">
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</section>
|
||||
<section id="content" class="body">
|
||||
<h1>Archives for {{ SITENAME }}</h1>
|
||||
<dl>
|
||||
{% for article in dates %}
|
||||
<dt>
|
||||
{{ article.locale_date }}
|
||||
</dt>
|
||||
<dd>
|
||||
<a href='{{ article.url }}'>{{ article.title }}</a>
|
||||
</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
@ -1,17 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
|
||||
{% block content %}
|
||||
{% include 'article_infos.html' %}
|
||||
<article>
|
||||
{{ article.content }}
|
||||
|
||||
<p id="cat-tags"> category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
{% if article.tags %}
|
||||
tags:
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</article>
|
||||
{% include 'article_infos.html' %}
|
||||
<article>
|
||||
{{ article.content }}
|
||||
<p id="cat-tags">
|
||||
category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
{% if article.tags %}
|
||||
tags:
|
||||
{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a>{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
@ -1,4 +1,6 @@
|
||||
<header>
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a>
|
||||
</h1>
|
||||
{% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
|
||||
</header>
|
||||
|
@ -1,49 +1,60 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
|
||||
<head>
|
||||
<title>
|
||||
{% block title %}{{ SITENAME }}{% endblock %}
|
||||
</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
|
||||
<link href="{{ SITEURL }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
|
||||
<link rel="stylesheet"
|
||||
href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}"
|
||||
type="text/css"/>
|
||||
<link href="{{ SITEURL }}/{{ FEED_ATOM }}"
|
||||
type="application/atom+xml"
|
||||
rel="alternate"
|
||||
title="{{ SITENAME }} ATOM Feed"/>
|
||||
{% if FEED_RSS %}
|
||||
<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
|
||||
<link href="{{ SITEURL }}/{{ FEED_RSS }}"
|
||||
type="application/atom+xml"
|
||||
rel="alternate"
|
||||
title="{{ SITENAME }} RSS Feed"/>
|
||||
{% endif %}
|
||||
|
||||
<!--[if IE]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
<!--[if lte IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/>
|
||||
<script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
|
||||
<script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]-->
|
||||
<!--[if lt IE 7]>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }}</a>
|
||||
<div id="sitesubtitle">{% if SITESUBTITLE %} {{ SITESUBTITLE }}{% endif %}</div>
|
||||
</header>
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
|
||||
<footer>
|
||||
<nav>
|
||||
<ul>
|
||||
{% for page in pages %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %} ::{% endif %}</li>
|
||||
{% endfor %}
|
||||
{% if categories|length > 1 %}
|
||||
<li>:: <a href="{{ SITEURL }}/categories.html">Categories</a></li>
|
||||
{% endif %}
|
||||
{% if tags|length > 1 %}
|
||||
<li>:: <a href="{{ SITEURL }}/tags.html">Tags</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</footer>
|
||||
</body>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="{{ SITEURL }}" id="site-title">{{ SITENAME }}</a>
|
||||
<div id="sitesubtitle">
|
||||
{% if SITESUBTITLE %}{{ SITESUBTITLE }}{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
<nav>
|
||||
<ul>
|
||||
{% for page in pages %}
|
||||
<li>
|
||||
<a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>
|
||||
{% if not loop.last %}::{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if categories|length > 1 %}
|
||||
<li>
|
||||
:: <a href="{{ SITEURL }}/categories.html">Categories</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if tags|length > 1 %}
|
||||
<li>
|
||||
:: <a href="{{ SITEURL }}/tags.html">Tags</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,8 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for category, articles in categories %}
|
||||
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul>
|
||||
{% for category, articles in categories %}
|
||||
<li>
|
||||
<a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
@ -1,19 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% if articles %}
|
||||
{% for article in articles_page.object_list %}
|
||||
{% include 'article_infos.html' %}
|
||||
<article>
|
||||
{{ article.summary }}
|
||||
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
No articles.
|
||||
{% endif %}
|
||||
{% if articles %}
|
||||
{% for article in articles_page.object_list %}
|
||||
{% include 'article_infos.html' %}
|
||||
<article>
|
||||
{{ article.summary }}
|
||||
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
No articles.
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
@ -1,10 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ page.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<header>
|
||||
<h1><a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a></h1>
|
||||
</header>
|
||||
<article>
|
||||
{{ page.content }}
|
||||
</article>
|
||||
<header>
|
||||
<h1>
|
||||
<a href="{{ SITEURL }}/{{ page.slug }}" id="page-title">{{ page.title }}</a>
|
||||
</h1>
|
||||
</header>
|
||||
<article>
|
||||
{{ page.content }}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
@ -1,15 +1,15 @@
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
<p class="paginator">
|
||||
{% if articles_page.has_previous() %}
|
||||
{% if articles_page.previous_page_number() == 1 %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}.html">«</a>
|
||||
{% else %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a>
|
||||
<p class="paginator">
|
||||
{% if articles_page.has_previous() %}
|
||||
{% if articles_page.previous_page_number() == 1 %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}.html">«</a>
|
||||
{% else %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">«</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
@ -1,2 +1,11 @@
|
||||
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}</p>{% endif %}
|
||||
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a></p>{% endif %}
|
||||
{% if article.tags %}
|
||||
<p>
|
||||
tags:
|
||||
{% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if PDF_PROCESSOR %}
|
||||
<p>
|
||||
<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
@ -1,9 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<ul>
|
||||
{% for tag, articles in tags %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul>
|
||||
{% for tag, articles in tags %}
|
||||
<li>
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user