Allow loading additional scripts (hopefully people won't do anything horrible with this)
This commit is contained in:
@ -42,12 +42,17 @@ date_format = "%d %B %Y"
|
|||||||
issues_url = "https://codeberg.org/daudix/duckquill/issues"
|
issues_url = "https://codeberg.org/daudix/duckquill/issues"
|
||||||
# URL to website's source code
|
# URL to website's source code
|
||||||
source_url = "https://codeberg.org/daudix/duckquill"
|
source_url = "https://codeberg.org/daudix/duckquill"
|
||||||
# Additional stylesheets; expects it to be in the "./static/" directory.
|
# Additional CSS stylesheets; expects them to be in the "./static/" directory.
|
||||||
# If you are using Sass it will be generated there automatically.
|
# If you are using Sass it will be generated there automatically.
|
||||||
# stylesheets = [
|
# stylesheets = [
|
||||||
# "YOUR_STYLE.css",
|
# "YOUR_STYLE.css",
|
||||||
# "ALSO_YOUR_STYLE.css"
|
# "ALSO_YOUR_STYLE.css"
|
||||||
# ]
|
# ]
|
||||||
|
# Additional JavaScript scripts; expects them to be in the "./static/" directory.
|
||||||
|
# scripts = [
|
||||||
|
# "YOUR_SCRIPT.js",
|
||||||
|
# "ALSO_YOUR_SCRIPT.js"
|
||||||
|
# ]
|
||||||
# Whether to display "copy code" button on all code blocks
|
# Whether to display "copy code" button on all code blocks
|
||||||
# that have the language set.
|
# that have the language set.
|
||||||
# See https://www.getzola.org/documentation/content/syntax-highlighting/
|
# See https://www.getzola.org/documentation/content/syntax-highlighting/
|
||||||
|
@ -33,13 +33,19 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
{% if config.extra.goatcounter %}
|
||||||
|
<script data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count" async src="//gc.zgo.at/count.js"></script>
|
||||||
|
<noscript><img src="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count?p={{ current_path | default(value='/') | safe }}"></noscript>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if config.extra.show_copy_button %}
|
{% if config.extra.show_copy_button %}
|
||||||
<script src="{{ get_url(path='copy-button.js') }}"></script>
|
<script src="{{ get_url(path='copy-button.js') }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if config.extra.goatcounter %}
|
{% if config.extra.scripts %}
|
||||||
<script data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count" async src="//gc.zgo.at/count.js"></script>
|
{% for script in config.extra.scripts %}
|
||||||
<noscript><img src="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count?p={{ current_path | default(value='/') | safe }}"></noscript>
|
<script src="{{ get_url(path=script) }}"></script>
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if config.extra.comments %}
|
{% if config.extra.comments %}
|
||||||
|
Reference in New Issue
Block a user