summaryrefslogtreecommitdiff
path: root/project/templates
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2021-02-05 11:21:30 +1100
committerJed Barber <jjbarber@y7mail.com>2021-02-05 11:21:30 +1100
commit9fd72ae4c4b852b94a2f3fdc760de81206a44857 (patch)
treefdcc9180ad6eed5fc89c212795abd6080996846e /project/templates
parent22467d65f5454dd6b1719aafee50850a5ae96bf3 (diff)
Tagging system created
Diffstat (limited to 'project/templates')
-rw-r--r--project/templates/base.html1
-rw-r--r--project/templates/index.html36
-rw-r--r--project/templates/tags.html34
-rw-r--r--project/templates/tags/application.html34
-rw-r--r--project/templates/tags/binding.html34
-rw-r--r--project/templates/tags/copyright.html34
-rw-r--r--project/templates/tags/esoteric.html34
-rw-r--r--project/templates/tags/gaming.html34
-rw-r--r--project/templates/tags/languages.html34
-rw-r--r--project/templates/tags/legal.html34
-rw-r--r--project/templates/tags/library.html34
-rw-r--r--project/templates/tags/mathematics.html34
-rw-r--r--project/templates/tags/politics.html34
-rw-r--r--project/templates/tags/programming.html34
-rw-r--r--project/templates/tags/videogames.html34
15 files changed, 450 insertions, 29 deletions
diff --git a/project/templates/base.html b/project/templates/base.html
index 979305c..8b117d1 100644
--- a/project/templates/base.html
+++ b/project/templates/base.html
@@ -16,6 +16,7 @@
<ul>
<li><a href="/">Index</a></li>
<li><a href="/about.html">About</a></li>
+ <li><a href="/tags.html">Tags</a></li>
<li><a href="/cgit">Git</a></li>
<li><a href="/links.html">Links</a></li>
</ul>
diff --git a/project/templates/index.html b/project/templates/index.html
index 3a66532..ba5e849 100644
--- a/project/templates/index.html
+++ b/project/templates/index.html
@@ -16,35 +16,13 @@
{% block content %}
<ul class="index">
- <li><a href="/packrat.html">Packrat Parser Combinator Library</a><br>
- <span class="post">(Posted 2/2/2021)</span></li>
-
- <li><a href="/integral.html">Area Under the Curve of a Complex Integral</a><br>
- <span class="post">(Posted 29/12/2018)</span></li>
-
- <li><a href="/steelman.html">D, Parasail, Pascal, and Rust vs The Steelman</a><br>
- <span class="post">(Posted 29/10/2017)</span></li>
-
- <li><a href="/sokoban.html">Sokoban Clone</a><br>
- <span class="post">(Posted 8/8/2017)</span></li>
-
- <li><a href="/sunset.html">Sunset License</a><br>
- <span class="post">(Posted 29/6/2017)</span></li>
-
- <li><a href="/fltkada.html">FLTK Ada Binding</a><br>
- <span class="update">(Updated 21/5/2018)</span></li>
-
- <li><a href="/stvcount.html">Single Transferable Vote Counter</a><br>
- <span class="post">(Posted 19/2/2017)</span></li>
-
- <li><a href="/adapad.html">Adapad</a><br>
- <span class="update">(Updated 8/5/2017)</span></li>
-
- <li><a href="/grasp.html">Grasp Interpreter</a><br>
- <span class="post">(Posted 1/1/2017)</span></li>
-
- <li><a href="/thue2a.html">Thue Version 2a</a><br>
- <span class="post">(Posted 1/1/2017)</span></li>
+ {%- for item in articles -%}
+ {%- 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>
+ {%- endfor %}
</ul>
{% endblock %}
diff --git a/project/templates/tags.html b/project/templates/tags.html
new file mode 100644
index 0000000..a3edfcc
--- /dev/null
+++ b/project/templates/tags.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Tags{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/tags.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tags</h4>
+
+<ul>
+ {%- for tag in tags -%}
+ {%- set total = 0 -%}
+ {%- for item in articles -%}
+ {%- if tag in item.taglist -%}{%- set total = total + 1 -%}{%- endif -%}
+ {%- if item == articles | last %}
+ <li><a href="/tags/{{ tag }}.html">{{ tag }} ({{ total }})</a></li>
+ {%- endif -%}
+ {%- endfor -%}
+ {%- endfor %}
+</ul>
+
+{% endblock %}
+
+
diff --git a/project/templates/tags/application.html b/project/templates/tags/application.html
new file mode 100644
index 0000000..489ff13
--- /dev/null
+++ b/project/templates/tags/application.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Application Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Application</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'application' 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 %}
+
+
diff --git a/project/templates/tags/binding.html b/project/templates/tags/binding.html
new file mode 100644
index 0000000..92a63b0
--- /dev/null
+++ b/project/templates/tags/binding.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Binding Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Binding</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'binding' 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 %}
+
+
diff --git a/project/templates/tags/copyright.html b/project/templates/tags/copyright.html
new file mode 100644
index 0000000..1296aae
--- /dev/null
+++ b/project/templates/tags/copyright.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Copyright Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Copyright</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'copyright' 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 %}
+
+
diff --git a/project/templates/tags/esoteric.html b/project/templates/tags/esoteric.html
new file mode 100644
index 0000000..253f7cc
--- /dev/null
+++ b/project/templates/tags/esoteric.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Esoteric Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Esoteric</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'esoteric' 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 %}
+
+
diff --git a/project/templates/tags/gaming.html b/project/templates/tags/gaming.html
new file mode 100644
index 0000000..4520655
--- /dev/null
+++ b/project/templates/tags/gaming.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Gaming Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Gaming</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'gaming' 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 %}
+
+
diff --git a/project/templates/tags/languages.html b/project/templates/tags/languages.html
new file mode 100644
index 0000000..3c101b9
--- /dev/null
+++ b/project/templates/tags/languages.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Languages Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Languages</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'languages' 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 %}
+
+
diff --git a/project/templates/tags/legal.html b/project/templates/tags/legal.html
new file mode 100644
index 0000000..14143aa
--- /dev/null
+++ b/project/templates/tags/legal.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Legal Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Legal</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'legal' 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 %}
+
+
diff --git a/project/templates/tags/library.html b/project/templates/tags/library.html
new file mode 100644
index 0000000..86fd920
--- /dev/null
+++ b/project/templates/tags/library.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Library Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Library</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'library' 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 %}
+
+
diff --git a/project/templates/tags/mathematics.html b/project/templates/tags/mathematics.html
new file mode 100644
index 0000000..d99af34
--- /dev/null
+++ b/project/templates/tags/mathematics.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Mathematics Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Mathematics</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'mathematics' 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 %}
+
+
diff --git a/project/templates/tags/politics.html b/project/templates/tags/politics.html
new file mode 100644
index 0000000..e7d0790
--- /dev/null
+++ b/project/templates/tags/politics.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Politics Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Politics</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'politics' 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 %}
+
+
diff --git a/project/templates/tags/programming.html b/project/templates/tags/programming.html
new file mode 100644
index 0000000..cfd79df
--- /dev/null
+++ b/project/templates/tags/programming.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Programming Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Programming</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'programming' 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 %}
+
+
diff --git a/project/templates/tags/videogames.html b/project/templates/tags/videogames.html
new file mode 100644
index 0000000..898e1fb
--- /dev/null
+++ b/project/templates/tags/videogames.html
@@ -0,0 +1,34 @@
+
+{% extends "base.html" %}
+
+
+
+{% block title %}Videogames Tag{% endblock %}
+
+
+
+{% block style %}
+ <link href="/css/index.css" rel="stylesheet">
+{% endblock %}
+
+
+
+{% block content %}
+
+<h4>Tag: Videogames</h4>
+
+<ul class="index">
+ {%- for item in articles -%}
+ {%- if 'videogames' 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 %}
+
+