Fix missing goatcounter data attribute
This commit is contained in:
@ -96,6 +96,12 @@ $$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$$
|
|||||||
|
|
||||||
$$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$$
|
$$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$$
|
||||||
|
|
||||||
|
```latex
|
||||||
|
$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$
|
||||||
|
```
|
||||||
|
|
||||||
|
$\relax f(x) = \int_{-\infty}^\infty\hat{f}(\xi)\,e^{2 \pi i \xi x}\,d\xi$
|
||||||
|
|
||||||
### Shortcodes
|
### Shortcodes
|
||||||
|
|
||||||
Duckquill provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks. They can be used on all pages.
|
Duckquill provides a few useful [shortcodes](https://www.getzola.org/documentation/content/shortcodes/) that simplify some tasks. They can be used on all pages.
|
||||||
@ -587,7 +593,7 @@ Blah blah <q>Inline Quote</q> hmm.
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
let colorPicker;
|
let colorPicker;
|
||||||
const defaultColor = window.getComputedStyle(document.documentElement).getPropertyValue("--primary-color");
|
const defaultColor = window.getComputedStyle(document.documentElement).getPropertyValue("--primary-color");
|
||||||
console.log(defaultColor);
|
console.log("Default Color: " + defaultColor);
|
||||||
|
|
||||||
window.addEventListener("load", startup, false);
|
window.addEventListener("load", startup, false);
|
||||||
|
|
||||||
@ -611,10 +617,10 @@ Blah blah <q>Inline Quote</q> hmm.
|
|||||||
}
|
}
|
||||||
|
|
||||||
function update(event) {
|
function update(event) {
|
||||||
|
console.log("Primary Color: " + event.target.value);
|
||||||
|
console.log("Primary Color Alpha: " + hexToRGB(event.target.value, 0.2));
|
||||||
document.documentElement.style.setProperty('--primary-color', event.target.value);
|
document.documentElement.style.setProperty('--primary-color', event.target.value);
|
||||||
console.log(event.target.value);
|
|
||||||
document.documentElement.style.setProperty('--primary-color-alpha', hexToRGB(event.target.value, 0.2));
|
document.documentElement.style.setProperty('--primary-color-alpha', hexToRGB(event.target.value, 0.2));
|
||||||
console.log(hexToRGB(event.target.value, 0.2));
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<!-- End -->
|
<!-- End -->
|
||||||
|
@ -131,7 +131,7 @@
|
|||||||
|
|
||||||
{%- if scripts | length > 0 %}
|
{%- if scripts | length > 0 %}
|
||||||
{%- for script in scripts %}
|
{%- for script in scripts %}
|
||||||
<script type="text/javascript" src="{{ get_url(path=script) | safe }}"></script>
|
<script type="text/javascript" {% if script == "count.js" %}data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count"{% endif %} src="{{ get_url(path=script) | safe }}"></script>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user