-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivities.html
More file actions
32 lines (32 loc) Β· 1.48 KB
/
Copy pathactivities.html
File metadata and controls
32 lines (32 loc) Β· 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
layout: master
title: Strava Activities
---
<h1>Activities</h1>
<p>Here's a list of my recent activities from <a href="https://www.strava.com">Strava</a>.</p>
{% assign sorted_activities = site.activities | sort: 'date' | reverse %}
{% for activity in sorted_activities %}
<ul class="activities__list">
<li>
<span class="text-muted">{{ activity.date | date_to_string }}</span>
<a href="{{ activity.url }}">{% if activity.activity_type == "Run" %}π
{% elsif activity.activity_type == "Walk" %}πΆ
{% elsif activity.activity_type == "Ride" %}π΄
{% elsif activity.activity_type == "Swim" %}π
{% elsif activity.activity_type == "Hike" %}π₯Ύ
{% elsif activity.activity_type == "Workout" %}πͺ
{% elsif activity.activity_type == "WeightTraining" %}ποΈ
{% elsif activity.activity_type == "Yoga" %}π§
{% else %}π
{% endif %}
{{ activity.activity_type }}</a> -
{% if activity.activity_type == "Run" or activity.activity_type == "Walk" %}
{{ activity.distance_km }} km β’ {{ activity.moving_time_formatted }} β’ {{ activity.pace_min_per_km }}/km
{% elsif activity.activity_type == "Workout" or activity.activity_type == "WeightTraining" or activity.activity_type == "Yoga" %}
{{ activity.moving_time_formatted }}
{% else %}
{{ activity.distance_km }} km β’ {{ activity.moving_time_formatted }}
{% endif %}
</li>
</ul>
{% endfor %}