2022-07-20 17:25:55 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
|
|
|
{% if config.extra.analytics %}
|
|
|
|
{% set feedback = config.extra.analytics.feedback %}
|
|
|
|
{% endif %}
|
2022-09-13 12:35:14 +02:00
|
|
|
{% if page.meta and page.meta.hide %}
|
2022-07-20 17:25:55 +02:00
|
|
|
{% if "feedback" in page.meta.hide %}
|
|
|
|
{% set feedback = None %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if feedback %}
|
|
|
|
<form class="md-feedback" name="feedback" hidden>
|
|
|
|
<fieldset>
|
|
|
|
<legend class="md-feedback__title">
|
|
|
|
{{ feedback.title }}
|
|
|
|
</legend>
|
|
|
|
<div class="md-feedback__inner">
|
|
|
|
<div class="md-feedback__list">
|
|
|
|
{% for rating in feedback.ratings %}
|
|
|
|
<button class="md-feedback__icon md-icon" type="submit" title="{{ rating.name }}" data-md-value="{{ rating.data }}">
|
|
|
|
{% include ".icons/" ~ rating.icon ~ ".svg" %}
|
|
|
|
</button>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="md-feedback__note">
|
|
|
|
{% for rating in feedback.ratings %}
|
|
|
|
<div data-md-value="{{ rating.data }}" hidden>
|
|
|
|
{% set url = "/" ~ page.url %}
|
2022-09-13 12:35:14 +02:00
|
|
|
{% if page.meta and page.meta.title %}
|
2022-07-20 17:25:55 +02:00
|
|
|
{% set title = page.meta.title | urlencode %}
|
|
|
|
{% else %}
|
|
|
|
{% set title = page.title | urlencode %}
|
|
|
|
{% endif %}
|
|
|
|
{% if "{}" in rating.note %}
|
|
|
|
{{ rating.note.format(url, title) }}
|
|
|
|
{% else %}
|
|
|
|
{{ rating.note.format(url = url, title = title) }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|