Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup ruby
uses: ruby/setup-ruby@v1
- name: Install Zola
uses: taiki-e/install-action@v2
with:
bundler-cache: true
- name: Install ruby dependencies
run: bundle install
- name: Bulid with middleman
run: bundle exec middleman build
tool: zola@0.22.1

- name: Build with Zola
run: zola build
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ paths = "safe"

[extra]
keywords = ["flatpak", "linux", "apps", "sandboxing", "xdg-app"]
matomo_url = "https://webstats.gnome.org/"
matomo_site_id = 13
18 changes: 18 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,26 @@
{% if config.generate_feeds %}
<link rel="alternate" type="application/atom+xml" title="Flatpak Press" href="{{ get_url(path='press/atom.xml') }}">
{% endif %}

{% if config.extra.matomo_url and config.extra.matomo_site_id %}
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u = {{ config.extra.matomo_url | json_encode | safe }};
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '{{ config.extra.matomo_site_id }}']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
})();
</script>
{% endif %}
</head>
<body>
{% if config.extra.matomo_url and config.extra.matomo_site_id %}
<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="{{ config.extra.matomo_url }}matomo.php?idsite={{ config.extra.matomo_site_id }}&amp;rec=1" style="border:0" alt="" /></p></noscript>
{% endif %}
<div class="hero{% block hero_class %}{% endblock %}">
<section class="header">
<h2 id="logo" aria-hidden="true">
Expand Down
Loading