Skip to content

Commit

Permalink
add gpx download to schedule
Browse files Browse the repository at this point in the history
Not sure about using the watch emoji, but can iterate on design!
  • Loading branch information
ztatlock committed May 25, 2024
1 parent 8f82fb9 commit 2a63bbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions _bin/route-db.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def main():
f.write(f" end: \"{route['end']}\"\n")
f.write(f" type: \"{route['type']}\"\n")
f.write(f" map: \"{route['map']}\"\n")
f.write(f" gpx: \"/routes/gpx/{route['id']}.gpx\"\n")
if route['deprecated']:
f.write(f" deprecated: true\n")
f.write('\n')
Expand Down
3 changes: 3 additions & 0 deletions _includes/schedule_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
{{ route.name }}
{% if route.map %}</a>{% endif %}
{% if route.dist %}&nbsp; (<span title="{{ route.dist | times: 1.609 | round: 1}}km">{{ route.dist | round: 1}})</span>{% endif %}
{% if route.gpx %}
&nbsp; <a href="{{ route.gpx }}" class="gpx-link" title="Download GPX">&#8986;</a>
{% endif %}
</td>
</tr>
{% if plan.notes %}
Expand Down

0 comments on commit 2a63bbc

Please sign in to comment.