diff --git a/_config.yml b/_config.yml index 49ad1a8b..0e34ba53 100644 --- a/_config.yml +++ b/_config.yml @@ -28,8 +28,10 @@ exclude_from_localization: ["assets"] parallel_localization: false # Build settings +permalink: /:title/ markdown: kramdown -exclude: ["README.md", 'Gemfile.lock', 'Gemfile'] +exclude: ["README.md", 'Gemfile.lock', 'Gemfile', "docker-compose.yml"] +include: ["_pages"] plugins: - jekyll-feed diff --git a/_data/da/common.yml b/_data/da/common.yml index fb4c17d1..20e913a8 100644 --- a/_data/da/common.yml +++ b/_data/da/common.yml @@ -3,6 +3,9 @@ global: description: >- Totalovervågningen er kendt ulovlig, men teleselskaber og politikere er ligeglade. Nu gør vi noget ved det! #ulovligLogning + emailplaceholder: indtast din email + signup: JA! jeg vil gerne holdes opdateret. + ctatext: Hvis du vil hjælpe eller give et bidrag, kan du [trykke her](#wannahelp). langs: da: Dansk en: Engelsk diff --git a/_data/en/common.yml b/_data/en/common.yml index 51ec31c9..d85e3718 100644 --- a/_data/en/common.yml +++ b/_data/en/common.yml @@ -3,6 +3,9 @@ global: description: >- The Danish states mass surveillance has been ruled illegal, but the telcos and the politicians don't care. Now we are going to do something about it! #ulovligLogning + emailplaceholder: enter your email + signup: Yes! I want to be kept in the loop. + ctatext: If you want to help us or donate to our cause [click here](#wannahelp). langs: da: Danish en: English \ No newline at end of file diff --git a/_includes/ctascale.svg b/_includes/ctascale.svg new file mode 100644 index 00000000..2bf80c53 --- /dev/null +++ b/_includes/ctascale.svg @@ -0,0 +1 @@ +Giv etbidrag! diff --git a/_includes/head.html b/_includes/head.html index 31c0fbd0..831f0b50 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,6 +4,9 @@ {{ global.title }} + {% if page.redirect %} + + {% endif %} diff --git a/_layouts/centered.html b/_layouts/centered.html new file mode 100644 index 00000000..f495828a --- /dev/null +++ b/_layouts/centered.html @@ -0,0 +1,8 @@ +--- +layout: default +--- +
+
+ {{ content }} +
+
\ No newline at end of file diff --git a/_layouts/indexpage.html b/_layouts/indexpage.html index 41e58610..e604c9ab 100644 --- a/_layouts/indexpage.html +++ b/_layouts/indexpage.html @@ -1,6 +1,7 @@ --- layout: default --- +{% assign global = site.data.common.global %} {% for section in page.sections %} {% if section.id != "faq" %}
@@ -9,6 +10,17 @@ layout: default

{{ section.heading }}

{{ section.content | markdownify }} + {% if section.id == "intro" %} +

{{ global.ctatext | markdownify }}

+ {% include ctascale.svg %} + {% endif %} + {% if section.id == "wannahelp" %} + + {% endif %}
@@ -28,4 +40,4 @@ layout: default {% endif %} {% endfor %} - \ No newline at end of file + diff --git a/404.html b/_pages/404.html similarity index 96% rename from 404.html rename to _pages/404.html index c472b4ea..40097d81 100644 --- a/404.html +++ b/_pages/404.html @@ -1,5 +1,6 @@ --- layout: default +permalink: /404 ---