Add umami analytics
This commit is contained in:
parent
03525dcb1f
commit
313577579e
2 changed files with 17 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
name: Reitanlage Oranienburg
|
name: Reitanlage Oranienburg
|
||||||
version: 1.1.0
|
version: 1.2.0
|
||||||
description: Design der Reitanlage Oranienburg
|
description: Design der Reitanlage Oranienburg
|
||||||
icon: rebel
|
icon: rebel
|
||||||
author:
|
author:
|
||||||
|
@ -15,17 +15,22 @@ license: Apache-2.0
|
||||||
form:
|
form:
|
||||||
validation: loose
|
validation: loose
|
||||||
fields:
|
fields:
|
||||||
dropdown.enabled:
|
umami.enabled:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Dropdown in Menu
|
label: Enable umami analytics
|
||||||
highlight: 1
|
highlight: 1
|
||||||
default: 1
|
default: 0
|
||||||
options:
|
options:
|
||||||
1: PLUGIN_ADMIN.ENABLED
|
1: Enabled
|
||||||
0: PLUGIN_ADMIN.DISABLED
|
0: Disabled
|
||||||
validate:
|
validate:
|
||||||
type: bool
|
type: bool
|
||||||
|
umami.id:
|
||||||
|
type: text
|
||||||
|
label: ID for umami analytics
|
||||||
|
umami.url:
|
||||||
|
type: text
|
||||||
|
label: URL to load umami script from
|
||||||
custom_logo:
|
custom_logo:
|
||||||
type: file
|
type: file
|
||||||
label: Logo
|
label: Logo
|
||||||
|
@ -33,6 +38,6 @@ form:
|
||||||
destination: 'theme://images/logo'
|
destination: 'theme://images/logo'
|
||||||
multiple: false
|
multiple: false
|
||||||
markdown: true
|
markdown: true
|
||||||
description: Will be used instead of default logo `theme://images/grav-logo.svg`
|
description: Will be used instead of default logo `theme://images/logo.svg`
|
||||||
accept:
|
accept:
|
||||||
- image/*
|
- image/*
|
||||||
|
|
|
@ -94,4 +94,8 @@
|
||||||
{{ assets.js()|raw }}
|
{{ assets.js()|raw }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% if theme_var('umami.enabled') %}
|
||||||
|
<script async defer data-website-id="{{ theme_var('umami.id') }}" src="{{ theme_var('umami.url') }}"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue