From d4f216c889380c59ef78a64c1c6aa869dd3c6240 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 24 Apr 2023 17:22:12 +0200 Subject: [PATCH] more flexibility hover templates --- static/css/{blog.css => blog/post.css} | 0 templates/404.html | 4 +- templates/blog/footer.html | 7 ---- templates/blog/head.html | 53 +++++--------------------- templates/blog/index.html | 4 +- templates/blog/post.html | 14 +++++-- templates/contrib.html | 4 +- templates/head.html | 47 ++++------------------- templates/icons.html | 30 +++++++++++++++ templates/index.html | 4 +- templates/networks.html | 4 +- templates/portfolio.html | 4 +- 12 files changed, 76 insertions(+), 99 deletions(-) rename static/css/{blog.css => blog/post.css} (100%) create mode 100644 templates/icons.html diff --git a/static/css/blog.css b/static/css/blog/post.css similarity index 100% rename from static/css/blog.css rename to static/css/blog/post.css diff --git a/templates/404.html b/templates/404.html index 6e3a15e..7e8b1df 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,6 +1,8 @@ - {{>head.html}} + + {{>head.html}} +

404 :/

{{>footer.html}} diff --git a/templates/blog/footer.html b/templates/blog/footer.html index 10582d4..90618dc 100644 --- a/templates/blog/footer.html +++ b/templates/blog/footer.html @@ -1,10 +1,3 @@ - -{{#data}} {{#post}} {{#metadata}} -{{#mermaid}}{{>libs/mermaid_footer.html}}{{/mermaid}} -{{#math}}{{>libs/katex_footer.html}}{{/math}} -{{#syntax_highlight}}{{>libs/hljs_footer.html}}{{/syntax_highlight}} -{{/metadata}} {{/post}} {{/data}} - diff --git a/templates/blog/head.html b/templates/blog/head.html index 720d3f3..834e023 100644 --- a/templates/blog/head.html +++ b/templates/blog/head.html @@ -1,45 +1,10 @@ - - {{page_title}}{{#page_title}} - {{/page_title}}{{app_name}} - - - - - - - +{{page_title}}{{#page_title}} - {{/page_title}}{{app_name}} + + + + + + + - - - - - - - - - - - - - - - - - - {{#data}} {{#post}} {{#metadata}} {{#math}} {{>libs/katex_head.html}} - {{/math}} {{#syntax_highlight}} {{>libs/hljs_head.html}} {{/syntax_highlight}} - {{/metadata}} {{/post}} {{/data}} - +{{>icons.html}} diff --git a/templates/blog/index.html b/templates/blog/index.html index 181deff..660113c 100644 --- a/templates/blog/index.html +++ b/templates/blog/index.html @@ -1,6 +1,8 @@ - {{>head.html}} + + {{>head.html}} + {{#data}}

Blog

diff --git a/templates/blog/post.html b/templates/blog/post.html index c0ea3e7..8bbdbd6 100644 --- a/templates/blog/post.html +++ b/templates/blog/post.html @@ -1,8 +1,11 @@ - {{>blog/head.html}} + + {{>blog/head.html}} {{#data}} {{#post}} {{#metadata}} {{#math}} + {{>libs/katex_head.html}} {{/math}} {{#syntax_highlight}} + {{>libs/hljs_head.html}} {{/syntax_highlight}} {{/metadata}} {{/post}} + - {{#data}}
{{^post}} @@ -11,6 +14,11 @@
{{&content}}
{{/post}}
- {{/data}}{{>blog/footer.html}} + {{>blog/footer.html}} {{#post}} {{#metadata}} + {{#mermaid}}{{>libs/mermaid_footer.html}}{{/mermaid}} + {{#math}}{{>libs/katex_footer.html}}{{/math}} + {{#syntax_highlight}}{{>libs/hljs_footer.html}}{{/syntax_highlight}} + {{/metadata}} {{/post}}{{/data}} + diff --git a/templates/contrib.html b/templates/contrib.html index 6d8a049..1c15051 100644 --- a/templates/contrib.html +++ b/templates/contrib.html @@ -1,6 +1,8 @@ - {{>head.html}} + + {{>head.html}} + {{#data}} {{#error}}
diff --git a/templates/head.html b/templates/head.html index e213253..bcff3b6 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,40 +1,9 @@ - - {{page_title}}{{#page_title}} - {{/page_title}}{{app_name}} - - - - - - +{{page_title}}{{#page_title}} - {{/page_title}}{{app_name}} + + + + + + - - - - - - - - - - - - - - - - - +{{>icons.html}} diff --git a/templates/icons.html b/templates/icons.html new file mode 100644 index 0000000..f53241a --- /dev/null +++ b/templates/icons.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + diff --git a/templates/index.html b/templates/index.html index 7a01291..df17199 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,6 +1,8 @@ - {{>head.html}} + + {{>head.html}} +