Skip to content

Commit 1f3718b

Browse files
ErikBjare0xbrayo
authored andcommitted
fix: improved JSON-LD generation from site data
1 parent 46e0e3a commit 1f3718b

File tree

4 files changed

+35
-108
lines changed

4 files changed

+35
-108
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
title: ActivityWatch - Open-source time tracker
22
title_short: ActivityWatch
33
title_image: /img/media/banners/banner-social.png
4-
54
description: > # this means to ignore newlines until "baseurl:"
65
The best free and open-source automated time tracker. Cross-platform, extensible, local/privacy-first.
6+
abstract: >
7+
ActivityWatch is an open-source, privacy-focused, cross-platform automated time tracker.
8+
It helps you keep track of what you do on your computer, and is great for developers, designers, writers, students, or anyone who spends their day on a computer.
79
baseurl: "" # the subpath of your site, e.g. /blog
810
url: "https://activitywatch.net" # the base hostname & protocol for your site
911
twitter_username: ActivityWatchIt

_data/ratings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
alternativeto:
2+
average: 4.7
3+
count: 124
4+
last_updated: 2024-07-09

_includes/schema-index.html

Lines changed: 27 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,21 @@
33
{
44
"@context": "https://schema.org",
55
"@type": "SoftwareApplication",
6-
"name": "ActivityWatch",
7-
"url": "https://activitywatch.net/",
8-
"description": "The best free and open-source automated time tracker: cross-platform, extensible, and privacy-focused. Ideal for freelancers and designed with ADHD users in mind.",
9-
"disambiguatingDescription": "This app is designed for personal task and time management. It helps users efficiently organize their tasks and manage their time effectively. With features tailored to enhance productivity and streamline workflow, it ensures that users can stay on top of their schedules and prioritize their responsibilities with ease.",
10-
"keywords": ["time management", "task management", "software", "free auto time tracker", "free freelancer time tracking software"],
11-
"abstract": "A collection of trackers that monitor and log key activities on your computer, such as detecting if you are AFK or identifying the active window. A system for storing the data collected by these trackers. A flexible data format that meets most logging requirements. An ecosystem of tools that allows users to customize and extend the software to suit their needs.",
12-
"alternativeHeadline": "A free automated time tracker designed to monitor your activity and screen time. This tool helps you keep an accurate record of how you spend your time on your computer, providing insights into your productivity and screen usage patterns. It's an essential tool for improving time management and boosting efficiency.",
13-
"about": "ActivityWatch is a bundle of software that tracks your computer activity. You are, by default, the sole owner of your data. It also offers an ecosystem of software to work around it, including ways to collect more data and do different kinds of analysis. We created ActivityWatch completely free and open source so anyone can use, improve and extend it.",
6+
"name": "{{ site.title_short }}",
7+
"url": "{{ site.url }}",
8+
"description": "{{ site.description }}",
9+
"disambiguatingDescription": "{{ site.abstract }}",
10+
"keywords": ["time tracker", "time tracking", "software", "app", "screen time", "free", "open source", "automatic", "self-hosted"],
11+
"abstract": "{{ site.abstract }}",
12+
"about": "ActivityWatch is a bundle of software that tracks your computer activity and respects your privacy. It offers an ecosystem of software to work around it, including ways to collect more data and do different kinds of analysis. We created ActivityWatch completely free and open source so anyone can use, improve and extend it.",
1413
"applicationCategory": "https://en.wikipedia.org/wiki/Time-tracking_software",
1514
"applicationSubCategory": ["DesktopApplication", "MobileApplication", "WebApplication"],
1615
"aggregateRating": {
1716
"@type": "AggregateRating",
18-
"ratingValue": "4.7",
19-
"reviewCount": "124"
17+
"ratingValue": "{{ site.data.ratings.alternativeto.average }}",
18+
"reviewCount": "{{ site.data.ratings.alternativeto.count }}"
2019
},
21-
"softwareVersion": "0.13.1",
20+
"softwareVersion": "{{ site.data.downloads.version }}",
2221
"datePublished": "2024-06-12",
2322
"dateCreated": "2016-06-10",
2423
"downloadUrl": "https://activitywatch.net/downloads/",
@@ -36,7 +35,15 @@
3635
],
3736
"audience": {
3837
"@type": "Audience",
39-
"audienceType": ["Business Professionals", "Freelancers", "Small Business", "ADHD individuals"]
38+
"audienceType": [
39+
"Students",
40+
"Professionals",
41+
"Software Developers",
42+
"Freelancers",
43+
"Small Business",
44+
"ADHD individuals"
45+
"Researchers",
46+
]
4047
},
4148
"typicalAgeRange": "all ages",
4249
"operatingSystem": ["Windows", "macOS", "Linux", "Android"],
@@ -46,106 +53,20 @@
4653
"target": [
4754
"https://activitywatch.net/downloads/",
4855
"android-app:https://play.google.com/store/apps/details?id=net.activitywatch.android",
56+
{% for platform in site.data.downloads.platforms %}
57+
{% for asset in platform.assets %}
4958
{
5059
"@type": "EntryPoint",
51-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-v0.13.1-windows-x86_64-setup.exe",
52-
"actionApplication": {
53-
"@type": "SoftwareApplication",
54-
"@id": "activitywatch-windows-setup",
55-
"name": "ActivityWatch Windows Setup",
56-
"operatingSystem": "Windows"
57-
}
58-
},
59-
{
60-
"@type": "EntryPoint",
61-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-v0.13.1-windows-x86_64.zip",
62-
"actionApplication": {
63-
"@type": "SoftwareApplication",
64-
"@id": "activitywatch-windows-zip",
65-
"name": "ActivityWatch Windows Zip",
66-
"operatingSystem": "Windows"
67-
}
68-
},
69-
{
70-
"@type": "EntryPoint",
71-
"urlTemplate": "https://chocolatey.org/packages/activitywatch",
72-
"actionApplication": {
73-
"@type": "SoftwareApplication",
74-
"@id": "activitywatch-chocolatey",
75-
"name": "ActivityWatch Chocolatey",
76-
"operatingSystem": "Windows"
77-
}
78-
},
79-
{
80-
"@type": "EntryPoint",
81-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-v0.13.1-macos-x86_64.dmg",
82-
"actionApplication": {
83-
"@type": "SoftwareApplication",
84-
"@id": "activitywatch-macos-dmg",
85-
"name": "ActivityWatch macOS DMG",
86-
"operatingSystem": "macOS"
87-
}
88-
},
89-
{
90-
"@type": "EntryPoint",
91-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-v0.13.1-macos-x86_64.zip",
92-
"actionApplication": {
93-
"@type": "SoftwareApplication",
94-
"@id": "activitywatch-macos-zip",
95-
"name": "ActivityWatch macOS Zip",
96-
"operatingSystem": "macOS"
97-
}
98-
},
99-
{
100-
"@type": "EntryPoint",
101-
"urlTemplate": "https://formulae.brew.sh/cask/activitywatch",
102-
"actionApplication": {
103-
"@type": "SoftwareApplication",
104-
"@id": "activitywatch-homebrew",
105-
"name": "ActivityWatch Homebrew",
106-
"operatingSystem": "macOS"
107-
}
108-
},
109-
{
110-
"@type": "EntryPoint",
111-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-v0.13.1-linux-x86_64.zip",
112-
"actionApplication": {
113-
"@type": "SoftwareApplication",
114-
"@id": "activitywatch-linux-zip",
115-
"name": "ActivityWatch Linux Zip",
116-
"operatingSystem": "Linux"
117-
}
118-
},
119-
{
120-
"@type": "EntryPoint",
121-
"urlTemplate": "https://github.com/ActivityWatch/activitywatch/releases/download/v0.13.1/activitywatch-linux-x86_64.AppImage",
122-
"actionApplication": {
123-
"@type": "SoftwareApplication",
124-
"@id": "activitywatch-linux-appimage",
125-
"name": "ActivityWatch Linux AppImage",
126-
"operatingSystem": "Linux"
127-
}
128-
},
129-
{
130-
"@type": "EntryPoint",
131-
"urlTemplate": "https://aur.archlinux.org/packages/activitywatch-bin/",
132-
"actionApplication": {
133-
"@type": "SoftwareApplication",
134-
"@id": "activitywatch-arch-linux",
135-
"name": "ActivityWatch Arch Linux",
136-
"operatingSystem": "Linux"
137-
}
138-
},
139-
{
140-
"@type": "EntryPoint",
141-
"urlTemplate": "https://search.nixos.org/packages?query=activitywatch&show=activitywatch",
60+
"urlTemplate": "{{ asset.url }}",
14261
"actionApplication": {
14362
"@type": "SoftwareApplication",
144-
"@id": "activitywatch-nixos",
145-
"name": "ActivityWatch NixOS",
146-
"operatingSystem": "Linux"
63+
"@id": "activitywatch-{{ site.data.downloads.version }}-{{ platform.name | downcase }}-{{ asset.title | replace: ".", "" | downcase }}",
64+
"name": "ActivityWatch {{ site.data.downloads.version }} {{ platform.name }} {{ asset.title }}",
65+
"operatingSystem": "{{ platform.name }}"
14766
}
14867
},
68+
{% endfor %}
69+
{% endfor %}
14970
{
15071
"@type": "EntryPoint",
15172
"urlTemplate": "https://chrome.google.com/webstore/detail/nglaklhklhcoonedhgnpgddginnjdadi/",

stats.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ div.row.text-center
7979
h6 AlternativeTo
8080
p
8181
a(href="https://alternativeto.net/software/activitywatch/about/")
82-
img(src="https://img.shields.io/badge/rating-4.7%2F5%20(124)-green")
82+
img(src="https://img.shields.io/badge/rating-{{ site.data.ratings.alternativeto.average }}%2F5%20({{ site.data.ratings.alternativeto.count }})-green")
8383

8484
div.col-sm-3
8585
h6 Play Store

0 commit comments

Comments
 (0)