diff options
Diffstat (limited to 'project/templates/tags/compsci.xhtml')
-rw-r--r-- | project/templates/tags/compsci.xhtml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/project/templates/tags/compsci.xhtml b/project/templates/tags/compsci.xhtml new file mode 100644 index 0000000..7a269ef --- /dev/null +++ b/project/templates/tags/compsci.xhtml @@ -0,0 +1,32 @@ + +{%- extends "base.xhtml" -%} + + + +{%- block title -%}Compsci Tag{%- endblock -%} + + + +{%- block style %} + <link href="/css/index.css" rel="stylesheet" /> +{% endblock -%} + + + +{%- block content %} +<h4>Tag: Compsci</h4> + +<ul class="index"> + {%- for item in articles -%} + {%- if 'compsci' in item.taglist -%} + {%- if item.updated -%}{%- set postclass = "update" -%}{%- else -%}{%- set postclass = "post" -%}{%- endif -%} + {%- if item.updated -%}{%- set postverb = "Updated" -%}{%- else -%}{%- set postverb = "Posted" -%}{%- endif %} + <li><a href="{{ item.anchor }}">{{ item.title }}</a><br /> + <span class="taglist">{{ item.taglist | join(", ") }}</span><br /> + <span class="{{ postclass }}">({{ postverb }} {{ item.postdate }})</span></li> + {%- endif -%} + {%- endfor %} +</ul> +{% endblock -%} + + |