From e92e33b10b41875e44b640a2d05a4a3e04beade1 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Thu, 13 May 2021 16:39:10 +0100 Subject: [PATCH] Initial commit --- LICENSE | 20 +++++++++++++++++ i18n/en.yaml | 2 ++ i18n/pt.yaml | 2 ++ layouts/partials/matomo_head.html | 29 +++++++++++++++++++++++++ layouts/shortcodes/matomo_tracking.html | 6 +++++ theme.toml | 12 ++++++++++ 6 files changed, 71 insertions(+) create mode 100644 LICENSE create mode 100644 i18n/en.yaml create mode 100644 i18n/pt.yaml create mode 100644 layouts/partials/matomo_head.html create mode 100644 layouts/shortcodes/matomo_tracking.html create mode 100644 theme.toml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e4483e2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2021 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..bfa2cdc --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,2 @@ +trackingStatus: + other: Tracking Status \ No newline at end of file diff --git a/i18n/pt.yaml b/i18n/pt.yaml new file mode 100644 index 0000000..7ab14ea --- /dev/null +++ b/i18n/pt.yaml @@ -0,0 +1,2 @@ +trackingStatus: + other: Estado da monitorizaĆ§Ć£o \ No newline at end of file diff --git a/layouts/partials/matomo_head.html b/layouts/partials/matomo_head.html new file mode 100644 index 0000000..d0b2777 --- /dev/null +++ b/layouts/partials/matomo_head.html @@ -0,0 +1,29 @@ +{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }} + + + {{ if and (isset .Site.Params.matomo "noscript") (eq .Site.Params.matomo.noscript true) }} + + {{ end }} + +{{ end }} diff --git a/layouts/shortcodes/matomo_tracking.html b/layouts/shortcodes/matomo_tracking.html new file mode 100644 index 0000000..910abc1 --- /dev/null +++ b/layouts/shortcodes/matomo_tracking.html @@ -0,0 +1,6 @@ + +

{{ i18n "trackingStatus" }}

+ \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..b063850 --- /dev/null +++ b/theme.toml @@ -0,0 +1,12 @@ +name = "Hugo Matomo" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "Hugo Theme Component to extend a theme with support for Matomo web application" +homepage = "https://www.r3pek.org" +tags = ["matomo", "piwik", "analytics", "component"] +min_version = "0.41.0" +version = "0.1.0" + +[author] + name = "Carlos Mogas da Silva" + homepage = "https://www.r3pek.org" \ No newline at end of file