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

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git


The following commit(s) were added to refs/heads/master by this push:
     new ac02a6643 Setup Scarf analytics for downloads
ac02a6643 is described below

commit ac02a6643cac1fbf770df3b2c7ef6c97d12f2cb3
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Fri Jan 12 17:23:22 2024 +0400

    Setup Scarf analytics for downloads
---
 src/main/site/data/download.yaml          | 3 +++
 src/main/site/layouts/about/download.html | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/src/main/site/data/download.yaml b/src/main/site/data/download.yaml
index 8b49e49e7..8b7e20c14 100644
--- a/src/main/site/data/download.yaml
+++ b/src/main/site/data/download.yaml
@@ -23,12 +23,15 @@
 extensions:
   - ext: ".tar.gz" # file extension
     description: "binary distribution with cross-platform Java CayenneModeler"
+    scarf: generic
 
   - ext: "-macosx.dmg"
     description: "binary distribution with Mac OS X CayenneModeler"
+    scarf: macos
 
   - ext: "-win.zip"
     description: "binary distribution with Windows CayenneModeler"
+    scarf: win
 
   - ext: "-src.tar.gz"
     description: "source code distribution"
\ No newline at end of file
diff --git a/src/main/site/layouts/about/download.html 
b/src/main/site/layouts/about/download.html
index 3548a20df..a5891d1e0 100644
--- a/src/main/site/layouts/about/download.html
+++ b/src/main/site/layouts/about/download.html
@@ -40,7 +40,11 @@
                 <ul class="list-unstyled">
                     {{- range $.Site.Data.download.extensions -}}
                     <li>
+                        {{- if .scarf -}}
+                        <a 
href="https://apachecayenne.gateway.scarf.sh/modeler-{{ .scarf }}/{{ $revision 
}}">Cayenne {{ $revision }}</a>
+                        {{- else -}}
                         <a 
href="https://www.apache.org/dyn/closer.cgi/cayenne/{{ $link }}{{ .ext 
}}">Cayenne {{ $revision }}</a>
+                        {{- end }}
                         {{ .description }}
                         (<a href="https://downloads.apache.org/cayenne/{{ 
$link }}{{ .ext }}.asc">pgp</a>,
                         <a href="https://downloads.apache.org/cayenne/{{ $link 
}}{{ .ext }}.sha512">sha512</a>)

Reply via email to