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/layouts/categorized_list.html | 98 ++++++++++++++++++++-------- templates/layouts/deep_categorized_list.html | 54 +++++++++++++++ templates/layouts/index.html | 67 ------------------- templates/layouts/list.html | 96 +++++++++++++++++++-------- 4 files changed, 192 insertions(+), 123 deletions(-) create mode 100644 templates/layouts/deep_categorized_list.html delete mode 100644 templates/layouts/index.html (limited to 'templates/layouts') 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$

-
- $for(it.pages.all)$ - - $if(pages.all.list_read_indicators)$ -
- $endif$ - $if(pages.all.icon)$ - - - - $endif$ -
- $it.title$ -
- $if(it.date)$ - - $endif$ -
- $endfor$ -
+ $if(it.list_grid)$ +
+ $for(it.pages.all)$ + + $if(pages.all.list_read_indicators)$ +
+ $endif$ + $if(pages.all.icon)$ + + + + $endif$ +
+ $if(it.date)$ + + $it.title$ + $else$ + $it.title$ + $endif$ +
+ $if(list_icon)$ + + + + $endif$ +
+ $endfor$ +
+ $else$ +
+ $for(it.pages.all)$ + + $if(pages.all.list_read_indicators)$ +
+ $endif$ + $if(pages.all.icon)$ + + + + $endif$ +
+ $it.title$ +
+ $if(it.date)$ + + $endif$ + $if(list_icon)$ + + + + $endif$ +
+ $endfor$ +
+ $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$
- + $if(list_grid)$ + + $else$ + + $endif$
-- cgit v1.2.3-54-g00ecf