aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/head.html
diff options
context:
space:
mode:
authorJieiku2022-08-23 13:41:41 -0700
committerJieiku2022-08-23 13:41:41 -0700
commitc7b914505b6505b013610cc71e3b50d68c4a5473 (patch)
treed2abebfa75cedd1b7351b51f9d5c909834e8d05d /templates/macros/head.html
parent6e6c0cbbb5d6136788d35ee5a354d36079c3475a (diff)
downloadabridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.gz
abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.bz2
abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.zip
Optimizations, Update Readme YellowLabTools
Diffstat (limited to 'templates/macros/head.html')
-rw-r--r--templates/macros/head.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/macros/head.html b/templates/macros/head.html
index c3b217c..92b2bb5 100644
--- a/templates/macros/head.html
+++ b/templates/macros/head.html
@@ -1,5 +1,5 @@
{#- Theme Switcher Button to toggle between dark/light #}
-{%- macro theme() %}
+{%- macro theme(config) %}
{%- if config.extra.js_theme %}
{%- if config.extra.js_themeButton or config.extra.js_bundle %}
<script src="{{ get_url(path=config.extra.js_theme, trailing_slash=false) | safe }}"{%- if config.extra.integrity %} integrity="sha384-{{ get_file_hash(path=config.extra.js_theme, sha_type=384, base64=true) | safe }}"{%- endif %}></script>
@@ -7,7 +7,7 @@
{%- endif %}
{%- endmacro %}
-{%- macro stylesheets() %}
+{%- macro stylesheets(config) %}
{%- if config.extra.stylesheets %}{%- for i in config.extra.stylesheets %}
<link rel="stylesheet" href="{{ get_url(path=i, trailing_slash=false, cachebust=true) | safe }}" />
@@ -15,7 +15,7 @@
{%- endmacro %}
-{%- macro stylesheets_preload() %}
+{%- macro stylesheets_preload(config) %}
{%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
{%- if i.url is matching("^http[s]?://") %}
@@ -43,7 +43,7 @@
-{%- macro feed() %}
+{%- macro feed(config) %}
{%- if config.generate_feed %}
<link rel="alternate" type="{% if config.feed_filename is containing('atom') %}application/atom+xml{% else %}application/rss+xml{% endif %}" title="Atom/RSS Feed" href="{{ get_url(path=config.feed_filename, trailing_slash=false) | safe }}" />
{%- endif %}
@@ -51,7 +51,7 @@
-{%- macro js() %}
+{%- macro js(config) %}
{%- set preStyle = false %}
@@ -228,7 +228,7 @@
-{%- macro favicons() %}
+{%- macro favicons(config) %}
{%- if config.extra.favicon_theme_color %}
<meta name="theme-color" content="{{ config.extra.favicon_theme_color }}" />
{%- endif %}
@@ -260,7 +260,7 @@
-{%- macro security() %}
+{%- macro security(config) %}
{%- if config.extra.security_header_referrer %}
<meta name="referrer" content="{{ config.extra.security_header_referrer | safe }}" />
{%- endif %}
@@ -275,7 +275,7 @@
{#- page_images: using for the blog single template page -#}
{#- page_section: the blog single template page have to pass the parameter -#}
{#- is_404: using for the 404.html template -#}
-{%- macro seo( title="",title_addition="",description="",type="website",is_home=false,is_404=false,is_page=false,page_images="",page_section="",created_time="2021-07-04T07:07:00-07:00", updated_time="2021-07-04T07:07:00-07:00" ) %}
+{%- macro seo( config, title="", title_addition="", description="", type="website", is_home=false, is_404=false, is_page=false, page_images="", page_section="", created_time="2021-07-04T07:07:00-07:00", updated_time="2021-07-04T07:07:00-07:00" ) %}
{%- if is_404 -%}
<meta name="robots" content="noindex, follow" />
{%- else -%}