From c20ea9f6922557db29061a5d53c067ab20c734b9 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 13 Nov 2021 18:03:55 +0100 Subject: Improved list generation, remove index template --- templates/base.html | 4 +- templates/layouts/categorized_list.html | 98 ++++++++++++++++++++-------- templates/layouts/deep_categorized_list.html | 54 +++++++++++++++ templates/layouts/index.html | 67 ------------------- templates/layouts/list.html | 96 +++++++++++++++++++-------- 5 files changed, 194 insertions(+), 125 deletions(-) create mode 100644 templates/layouts/deep_categorized_list.html delete mode 100644 templates/layouts/index.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index e736864..ede7941 100644 --- a/templates/base.html +++ b/templates/base.html @@ -63,8 +63,8 @@
- $if(namespace.root.is_index)$ -${layouts/index()} + $if(layout.is_deep_categorized_list)$ +${layouts/deep_categorized_list()} $elseif(layout.is_categorized_list)$ ${layouts/categorized_list()} $elseif(layout.is_list)$ diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index a3af43c..ad510ae 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -11,36 +11,76 @@ $body$

$it.title$

- + $if(it.list_grid)$ + + $else$ + + $endif$ $endif$ $endfor$ - - diff --git a/templates/layouts/deep_categorized_list.html b/templates/layouts/deep_categorized_list.html new file mode 100644 index 0000000..eec16c9 --- /dev/null +++ b/templates/layouts/deep_categorized_list.html @@ -0,0 +1,54 @@ +
+ + + +
+ + diff --git a/templates/layouts/index.html b/templates/layouts/index.html deleted file mode 100644 index 1eca10f..0000000 --- a/templates/layouts/index.html +++ /dev/null @@ -1,67 +0,0 @@ -
- - -
-

- Profiles -

-
- $for(profiles)$ - $if(it.featured)$ - $if(it.url)$ - - $else$ - - $endif$ - $endif$ - $endfor$ -
- -

- $pages.by_id.projects.title$ -

-
- $for(pages.by_id.projects.pages.all)$ - $for(it.pages.all)$ - - $if(pages.by_id.projects.pages.all.icon)$ - - - - $endif$ -
- $pages.by_id.projects.pages.all.title$ - $it.title$ -
- - - -
- $endfor$ - $endfor$ -
-
-
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 2ef02ab..b4647a1 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -6,33 +6,75 @@ $body$ -- cgit v1.2.3-54-g00ecf