mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-28 18:59:50 +02:00
make this translatable
wow why does inserting liquid variables directly into inline js even work, that is horrifying and highly convenient
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
<meta name="msapplication-config" content="{{ base_path }}/images/browserconfig.xml?v=PYEmwKvQAx">
|
||||
<meta name="theme-color" content="#2E3440">
|
||||
|
||||
|
||||
{% assign split_path = page.path | split: "/" %}
|
||||
{% assign locale = split_path[1] %}
|
||||
{% if locale == 'en_US' %}
|
||||
{% assign locale_var = '/' %}
|
||||
{% else %}
|
||||
{% assign locale_var = locale | prepend:'/' | append:'/' %}
|
||||
{% endif %}
|
||||
{% assign top = site.data.navigation[locale].top %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
|
||||
<script>
|
||||
@@ -34,7 +44,7 @@ window.cookieconsent.initialise({
|
||||
"position": "top",
|
||||
"static": true,
|
||||
"content": {
|
||||
"message": "This website uses cookies to display the current guide progress on the sidebar."
|
||||
"message": "{{ top[0].title }}"
|
||||
}
|
||||
})});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user