Skip to content

Commit fdfce19

Browse files
committed
Tweak
1 parent 33f8a02 commit fdfce19

4 files changed

Lines changed: 2 additions & 10 deletions

File tree

models/project.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ label = Name
1111
type = string
1212
size = large
1313

14-
[fields.date]
15-
label = Date
16-
type = date
17-
width = 1/4
18-
1914
[fields.type]
2015
label = Project type
2116
type = string

models/projects.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ protected = yes
66

77
[children]
88
model = project
9-
order_by = -date, name
9+
order_by = name

templates/project.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{% extends "layout.html" %}
2-
{% block title %}{{ this.name }} ({{ this.date.year }}){% endblock %}
2+
{% block title %}{{ this.name }}{% endblock %}
33
{% block body %}
44
<h1>{{ this.name }}</h1>
55
<dl>
6-
<dt>Date
7-
<dd>{{ this.date|dateformat }}
86
{% if this.website %}
97
<dt>Website
108
<dd><a href="{{ this.website }}">{{ this.website.host }}</a>

templates/projects.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ <h1>Projects</h1>
1010
<img src="{{ image.thumbnail(320)|url }}" alt="">
1111
{% endif %}
1212
<h2><a href="{{ project|url }}">{{ project.name }}</a>
13-
<em>({{ project.date.year }})</em></h2>
1413
<p><strong>{{ project.type }}</strong></p>
1514
</div>
1615
{% endfor %}

0 commit comments

Comments
 (0)