From 614054a72e41af9e77964c01b7ab0da7dc5b27fb Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Wed, 19 Jul 2023 20:36:50 +0200 Subject: make the contents completely generic --- templates/bigcards.html | 34 ---------------------------------- templates/default.html | 1 - templates/footer.html | 39 --------------------------------------- templates/head.html | 23 ++--------------------- templates/header.html | 41 +++++++++++++++++------------------------ templates/index.html | 21 --------------------- templates/list.html | 7 +++---- templates/search.html | 1 - templates/searchform.html | 11 +++-------- templates/sidebox.html | 37 ------------------------------------- templates/tag.html | 7 +++---- 11 files changed, 28 insertions(+), 194 deletions(-) delete mode 100644 templates/bigcards.html delete mode 100644 templates/footer.html delete mode 100644 templates/index.html delete mode 100644 templates/sidebox.html (limited to 'templates') diff --git a/templates/bigcards.html b/templates/bigcards.html deleted file mode 100644 index 93aa6a7..0000000 --- a/templates/bigcards.html +++ /dev/null @@ -1,34 +0,0 @@ -
- - - - -
diff --git a/templates/default.html b/templates/default.html index 2bb48e5..8acbc2b 100644 --- a/templates/default.html +++ b/templates/default.html @@ -3,6 +3,5 @@ {{> header.html}} {{{body}}} -{{> footer.html}} diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index ececa94..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,39 +0,0 @@ - - -
- -
- - - -
- - -
diff --git a/templates/head.html b/templates/head.html index 2a634a2..59bbfa0 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,32 +1,13 @@ - - {{?title}}How-To Cards: {{title}}{{/title}} + {{?title}}Page: {{title}}{{/title}} {{?htag}} Category: {{#htag}} {{?tag}} » {{tag}}{{/tag}} - {{^tag}}All cards{{/tag}} + {{^tag}}All pages{{/tag}} {{/htag}} {{/htag}} - - - - - diff --git a/templates/header.html b/templates/header.html index 9b6a0ea..8640fc6 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,26 +1,19 @@
-
-
-
-
-
-
-
-
-
LCSB How-To Cards
-
The practical and handy reference
-
-
-
-
-
-
-
-
-
+ {{?htags}} + Categories: + + {{/htags}} + + {{?toc}} + Card outline: + {{{toc}}} + {{/toc}} + + {{?timestamp}} + Last modification: {{timestamp}} + {{/timestamp}}
-
-
-
- {{> sidebox.html}} -
diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 815e65a..0000000 --- a/templates/index.html +++ /dev/null @@ -1,21 +0,0 @@ - -{{> head.html}} - - -{{> header.html}} -{{> searchform.html}} -{{> bigcards.html}} -{{{body}}} -{{> footer.html}} - - diff --git a/templates/list.html b/templates/list.html index df04ffe..5ae7db0 100644 --- a/templates/list.html +++ b/templates/list.html @@ -7,7 +7,7 @@ {{?htag}} Category listing: {{#htag}} - + {{^tag}}all{{/tag}} {{?tag}}» {{tag}}{{/tag}} @@ -16,7 +16,7 @@

See the hierarchical view of this category.

{{?subtags}}

Sub-categories

-
    +
      {{#subtags}}
    • {{#tags}} » {{.}} {{/tags}}
    • {{/subtags}} @@ -24,12 +24,11 @@ {{/subtags}} {{?pages}}

      Cards

      -
        + {{/pages}} -{{> footer.html}} diff --git a/templates/search.html b/templates/search.html index eae555c..9608e29 100644 --- a/templates/search.html +++ b/templates/search.html @@ -4,6 +4,5 @@ {{> header.html}} {{> searchform.html}} {{> searchresults.html}} -{{> footer.html}} diff --git a/templates/searchform.html b/templates/searchform.html index b462948..2b4da9d 100644 --- a/templates/searchform.html +++ b/templates/searchform.html @@ -1,8 +1,3 @@ -
        -
        - -
        -
        +
        + +
        diff --git a/templates/sidebox.html b/templates/sidebox.html deleted file mode 100644 index d7fefcd..0000000 --- a/templates/sidebox.html +++ /dev/null @@ -1,37 +0,0 @@ - diff --git a/templates/tag.html b/templates/tag.html index f17e669..cb79591 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -4,16 +4,16 @@ {{> header.html}}

        -Cards in category: +Pages in category: {{#htag}} - + {{^tag}}all{{/tag}} {{?tag}}» {{tag}}{{/tag}} {{/htag}}

        See the complete listing of all pages in this category.

        -
          +
            {{?pages}} {{#pages}}
          • {{meta.title}}
          • @@ -53,6 +53,5 @@ Cards in category: {{/subtags}} {{/subtags}}
          -{{> footer.html}} -- cgit v1.2.3