This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 2ce4ad9  minor tweaks
2ce4ad9 is described below

commit 2ce4ad96cf87a9da65f632d440c8ec4175d96c17
Author: Paul King <[email protected]>
AuthorDate: Wed Feb 19 17:10:51 2025 +1000

    minor tweaks
---
 site/src/site/assets/js/matomo.js              | 31 ++++++++++++++++++++++++++
 site/src/site/blog/groovy-text-similarity.adoc |  8 +++----
 site/src/site/layouts/page.groovy              |  1 +
 3 files changed, 36 insertions(+), 4 deletions(-)

diff --git a/site/src/site/assets/js/matomo.js 
b/site/src/site/assets/js/matomo.js
new file mode 100644
index 0000000..b635575
--- /dev/null
+++ b/site/src/site/assets/js/matomo.js
@@ -0,0 +1,31 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+var _paq = window._paq = window._paq || [];
+/* tracker methods like "setCustomDimension" should be called before 
"trackPageView" */
+_paq.push(["setDoNotTrack", true]);
+_paq.push(["disableCookies"]);
+_paq.push(['trackPageView']);
+_paq.push(['enableLinkTracking']);
+(function() {
+  var u="https://analytics.apache.org/";;
+  _paq.push(['setTrackerUrl', u+'matomo.php']);
+  _paq.push(['setSiteId', '73']);
+  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);
+})();
\ No newline at end of file
diff --git a/site/src/site/blog/groovy-text-similarity.adoc 
b/site/src/site/blog/groovy-text-similarity.adoc
index 4656146..ca4bf2e 100644
--- a/site/src/site/blog/groovy-text-similarity.adoc
+++ b/site/src/site/blog/groovy-text-similarity.adoc
@@ -13,10 +13,10 @@ Paul King <paulk-asert|PMC_Member>; James King 
<jakingy|Contributor>
 > We won't (directly) even tell you how many letters are in the word,
 > but we'll give hints like:
 >
-> * How close your guess _sounds_ like the hidden word.
-> * How close your guess is to the _meaning_ of the hidden word.
-> * Instead of correct and misplaced letters, we'll give you some _distance
-> and similarity measures_ which will give you clues about how many
+> * How close your guess *_sounds_* like the hidden word.
+> * How close your guess is to the *_meaning_* of the hidden word.
+> * Instead of correct and misplaced letters, we'll give you some *_distance
+> and similarity measures_* which will give you clues about how many
 > correct letters you have, whether you have the correct letters in order,
 > and so forth.
 
diff --git a/site/src/site/layouts/page.groovy 
b/site/src/site/layouts/page.groovy
index dad29e6..92f9ef8 100644
--- a/site/src/site/layouts/page.groovy
+++ b/site/src/site/layouts/page.groovy
@@ -26,6 +26,7 @@ head {
     }
     title(pageTitle)
     link(href: relative("img/favicon.ico"), type: "image/x-ico", rel: "icon")
+    script(src: relative('js/matomo.js')) { }
     def styles = extraStyles ?: []
     ['bootstrap.css', 'font-awesome.min.css', 'style.css', *styles].each {
         link rel: 'stylesheet', type: 'text/css', href:

Reply via email to