2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

clean up pages structure

This commit is contained in:
Frederik Ring 2019-12-13 11:08:08 +01:00
parent 4eeb0d70cc
commit ffd299a26b
11 changed files with 23 additions and 80 deletions

View File

@ -1,10 +1,8 @@
Title: Page not found | Offen
title: Page not found | Offen
description: This link isnt working.
save_as: 404.html
href: /404.html
no_stats: true
exclude_from_sitemap: true
sm_image_url: /theme/images/offen-logo-social-media.jpg
![Page not Found](/theme/images/content-404.webp){:class="image-text-600-338"}

View File

@ -1,8 +1,6 @@
Title: About | Offen
title: About | Offen
description: Who we are, who supports us and how you can can get in touch.
save_as: about/index.html
href: /about/
sm_image_url: /theme/images/offen-logo-social-media.jpg
slug: about
## About

View File

@ -1,4 +1,4 @@
Title: Laying the foundation for fair web analytics | Offen
title: Laying the foundation for fair web analytics | Offen
description: Our milestone 1 achievements include extensible architecture, a localization option and an improved server structure.
save_as: blog/laying-foundation-for-fair-web-analytics/index.html
href: /blog/laying-foundation-for-fair-web-analytics/

View File

@ -1,18 +0,0 @@
Title: Fair analytics blog | Offen
description: Developing Offen. A free and open source analytics software for websites and web applications that allows respectful handling of data.
save_as: blog/index.html
href: /blog/
exclude_from_sitemap: true
sm_image_url: /theme/images/offen-logo-social-media.jpg
## Fair analytics blog
### Developing Offen. A free and open source analytics software for websites and web applications that allows respectful handling of data.
---
12 Dec 2019
[![Milestone 1 - Laying the foundation for fair web analytics](/theme/images/offen-blog-0010-milestone1.jpg){:class="image-text-600-322"}](/blog/laying-foundation-for-fair-web-analytics/)
## [Episode One — Laying the foundation for fair web analytics](/blog/laying-foundation-for-fair-web-analytics/)

View File

@ -1,9 +1,7 @@
Title: Deep dive | Offen
title: Deep dive | Offen
description: What do users know about their data? How can they access it? Do operators benefit from a careful handling of user data? Does Offen work in accordance with GDPR?
save_as: deep-dive/index.html
href: /deep-dive/
slug: deep-dive
sitemap_priority: 0.7
sm_image_url: /theme/images/offen-logo-social-media.jpg
## Deep dive

View File

@ -1,10 +1,8 @@
Title: Transparent web analytics for everyone | Offen
title: Transparent web analytics for everyone | Offen
description: Offen is a free and open source analytics software for websites and web applications. Users can access their data while the operators treat it with respect.
save_as: index.html
href: /
template: index
sitemap_priority: 1.0
sm_image_url: /theme/images/offen-logo-social-media.jpg
## Summary

View File

@ -1,9 +1,7 @@
Title: Legal Notice | Offen
title: Legal Notice | Offen
description: Information in accordance with Section 5 TMG
save_as: legal-notice/index.html
href: /legal-notice/
slug: legal-notice
exclude_from_sitemap: true
sm_image_url: /theme/images/offen-logo-social-media.jpg
## Legal Notice

View File

@ -1,30 +0,0 @@
Title: Opt-out | Offen
description: Prevent Offen from aggregating the actions you have taken on participating websites.
save_as: opt-out/index.html
exclude_from_sitemap: true
sm_image_url: /theme/images/offen-logo-social-media.jpg
## You are opted out
This will prevent Offen from aggregating the actions you have taken on participating websites.
Operators now cannot draw any conclusions from your actions via Offen. At the same time, however, they *cannot create a better experience* for you and other users.
<script>
var vault = document.createElement('iframe')
vault.style.display = 'none'
vault.setAttribute('width', '0')
vault.setAttribute('height', '0')
vault.setAttribute('frameBorder', '0')
vault.setAttribute('scrolling', 'no')
vault.addEventListener('load', function (e) {
vault.contentWindow.postMessage({
type: 'OPTOUT',
payload: {
status: true
}
}, '*')
})
vault.src = 'https://vault-alpha.offen.dev'
document.body.append(vault)
</script>

View File

@ -37,6 +37,7 @@ TAGS_SAVE_AS = None
# keep this for access to page variable
DIRECT_TEMPLATES = ['sitemap']
SITEMAP_SAVE_AS = 'sitemap.xml'
PAGE_SAVE_AS = '{slug}/index.html'
PLUGIN_PATHS = ['./plugins']
PLUGINS = ['decorate_content', 'assets']

View File

@ -13,11 +13,11 @@
<meta property="og:title" content="{{ page.title }}">
<meta property="og:description" content="{{ page.description }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ SITEURL }}{{ page.href or page.url or page.save_as }}">
<meta property="og:url" content="{{ SITEURL }}/{{ page.save_as | replace('index.html', '') }}">
<meta property="og:image" content="{{ SITEURL }}{{ page.sm_image_url }}">
<meta name="twitter:image:alt" content="Offen logo">
<meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="{{ SITEURL }}{{ page.href or page.url or page.save_as }}">
<link rel="canonical" href="{{ SITEURL }}/{{ page.save_as | replace('index.html', '') }}">
<link rel="shortcut icon" type="image/x-icon" href="/theme/images/favicon.ico">
{% assets filters="libsass,postcss,cssmin", output="css/style.min.css", "css/normalize.css", "css/fonts.css", "css/style.scss" %}
<link rel="stylesheet" href="/{{ ASSET_URL }}">

View File

@ -3,7 +3,7 @@
{% for page in pages %}
{% if not page.exclude_from_sitemap %}
<url>
<loc>{{ SITEURL }}{{ page.href }}</loc>
<loc>{{ SITEURL }}/{{ page.save_as | replace('index.html', '') }}</loc>
<priority>{{ page.sitemap_priority or 0.5 }}</priority>
</url>
{% endif %}