aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2024-06-22 18:53:30 -0700
committerJordan <me@jordan.im>2024-06-22 18:53:30 -0700
commit9339a52bf2a3a6cf360403ed856b08a313729edb (patch)
treeec895f7fdf9d960ec391f257dfd43a3587d572b5 /templates/index.html
parenta8f6c3ef6fa19e46f6ddf57177b5c6a178f77e4d (diff)
downloadcrane-9339a52bf2a3a6cf360403ed856b08a313729edb.tar.gz
crane-9339a52bf2a3a6cf360403ed856b08a313729edb.zip
templates: new design, cleanup
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html27
1 files changed, 12 insertions, 15 deletions
diff --git a/templates/index.html b/templates/index.html
index 727e727..83e6d79 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,22 +1,19 @@
{{ template "layout.html" . }}
{{ define "content" }}
+<div class="header-desc">
+<p>
+The articles in this library have been included in light of their social,
+ethical, environmental, and political significance. They provide academic
+scaffolding to movements which endeavor to challenge and dismantle oppressive
+systems of domination and exploitation, cultivate relationships of love and
+mutual care, and engage in the collective struggle for human and non-human
+liberation.
+</p>
-<div class="content">
-{{ $categoryCount := len .Papers.List }}
-{{ if gt $categoryCount 0 }}
-<div class="cat-cont">
- <div class="cat">
- {{ range $category, $paper := .Papers.List }}
- <span class="cat"><a href="#{{ $category }}">{{ $category }}</a></span>
- {{ end }}
- </div>
+{{ block "topics" . }}{{ end }}
</div>
-<p class="Pp"><a class='active' href='/admin/'>Manage</a></p>
+
{{ block "list" . }}{{ end }}
-</div>
-{{ else }}
-<p>nothing here yet,
-<a style="text-decoration:underline;" href="/admin/">create a category</a>
+<a href="/admin/">create a category</a>
to start downloading papers</p>
{{ end }}
-{{ end }}