|
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | {% capture title %}{% if page.title %}{{ page.title | escape }} || {{ site.title | escape}}{% else %}{{ site.title | escape }}{% endif %}{% endcapture %} |
6 | | - {% capture description %}{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}{% endcapture %} |
| 6 | + {% capture type %}{% if page.type == "OB" %}out-and-back{% elsif page.type == "Loop" %}loop{% elsif page.type == "P2P" %}point-to-point{% endif %}{% endcapture %} |
| 7 | + {% if page.distance_mi %} |
| 8 | + {% if page.start_neighborhood == page.end_neighborhood %} |
| 9 | + {% if page.start_neighborhood == 'non-Seattle' %} |
| 10 | + {% capture description %}{{ page.distance_mi }} mile {{type}} running/walking route with {{page.ascent_m}}m of elevation gain{% endcapture %} |
| 11 | + {% elsif page.type == "OB" or page.type == "P2P" %} |
| 12 | + {% capture description %}{{ page.distance_mi }} mile {{type}} running/walking route visiting {% for neighborhood in page.neighborhoods limit:3 %}{{neighborhood}}{% unless forloop.last%}, {%endunless%}{%endfor%}.{% endcapture %} |
| 13 | + {% else %} |
| 14 | + {% capture description %}{{ page.distance_mi }} mile {{type}} running/walking route near {{page.start_neighborhood }}{% endcapture %} |
| 15 | + {% endif %} |
| 16 | + {% else %} |
| 17 | + {% capture description %}{{ page.distance_mi }} mile {{type}} running/walking route from {{page.start_neighborhood}} to {{page.end_neighborhood}} via {% for neighborhood in page.neighborhoods limit:3 %}{{neighborhood}}{% unless forloop.last%}, {%endunless%}{%endfor%}.{% endcapture %} |
| 18 | + {% endif %} |
| 19 | + {% else %} |
| 20 | + {% capture description %}{{ page.excerpt | default: page.description | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}{% endcapture %} |
| 21 | + {% endif %} |
7 | 22 | {% capture url %}{{ page.url | absolute_url }}{% endcapture %} |
8 | 23 | <title>{{ title }}</title> |
9 | 24 | <link rel="canonical" href="{{ site.url }}{{ page.url }}" /> |
|
54 | 69 | <body> |
55 | 70 |
|
56 | 71 | <header class="container"> |
57 | | - <a href="/" class="text-body"> |
58 | | - <img src='{{ site.baseurl }}/img/rcc-logo.png' width='150' alt='RCC Logo' class="float-end"> |
59 | | - <h1>Race Condition Running</h1> |
| 72 | + <a href="/" class="text-body d-flex flex-wrap align-content-end justify-content-between"> |
| 73 | + <h2 class="align-self-center">Race Condition Running</h2> |
| 74 | + <img src='{{ site.baseurl }}/img/rcc-logo.png' width='150' alt='RCC Logo'> |
60 | 75 | </a> |
61 | 76 | </header> |
62 | 77 |
|
63 | 78 | <nav class="navbar navbar-expand-sm mb-4 container" role="navigation"> |
64 | 79 | <div class="container"> |
65 | 80 | <ul class="navbar-nav justify-content-between"> |
66 | | - <li class="nav-item"><a href="{{ site.baseurl }}/"{% if page.url == "/" %} class="active"{% endif %}>Schedule</a></li> |
67 | | - <li class="nav-item"><a href="{{ site.baseurl }}/routes/"{% if page.url == "/routes/" %} class="active"{% endif %}>Routes</a></li> |
68 | | - <li class="nav-item"><a href="{{ site.baseurl }}/brunch-reviews/"{% if page.url == "/brunch-reviews/" %} class="active"{% endif %}>Brunch Reviews</a></li> |
| 81 | + <li class="nav-item"><a href="{% link index.html %}"{% if page.url == "/" %} class="active"{% endif %}>Schedule</a></li> |
| 82 | + <li class="nav-item"><a href="{% link pages/routes.html %}"{% if page.url == "/routes/" %} class="active"{% endif %}>Routes</a></li> |
| 83 | + <li class="nav-item"><a href="{% link pages/brunch-reviews.html %}"{% if page.url == "/brunch-reviews/" %} class="active"{% endif %}>Brunch Reviews</a></li> |
69 | 84 | <li class="nav-item dropdown"> |
70 | | - <a href="{{ site.baseurl }}/events" id="eventsDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Events</a> |
| 85 | + <a href="{% link pages/events.html %}" id="eventsDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Events</a> |
71 | 86 | <ul class="dropdown-menu" aria-labelledby="eventsDropdown"> |
72 | 87 | <li> |
73 | | - <a class="dropdown-item text-start" href="{{ site.baseurl }}/light-rail-relay-24/">Light Rail Relay '24</a> |
| 88 | + <a class="dropdown-item text-start" href="{% link pages/light-rail-relay-24.html %}">Light Rail Relay '24</a> |
74 | 89 | <ul class="list-inline d-flex gap-2 dropdown-item"> |
75 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/light-rail-relay-23/">23</a></li> |
76 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/light-rail-relay-22/">22</a></li> |
77 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/light-rail-relay-21/">21</a></li> |
| 90 | + <li><a class="link-secondary" href="{% link pages/light-rail-relay-23.html %}">23</a></li> |
| 91 | + <li><a class="link-secondary" href="{% link pages/light-rail-relay-22.html %}">22</a></li> |
| 92 | + <li><a class="link-secondary" href="{% link pages/light-rail-relay-21.html %}">21</a></li> |
78 | 93 | </ul> |
79 | 94 | </li> |
80 | 95 |
|
81 | 96 | <li> |
82 | | - <a class="dropdown-item text-start" href="{{ site.baseurl }}/drumheller-marathon-25/">Drumheller Marathon '25</a> |
| 97 | + <a class="dropdown-item text-start" href="{% link pages/drumheller-marathon-25.html %}">Drumheller Marathon '25</a> |
83 | 98 | <ul class="list-inline d-flex gap-2 dropdown-item"> |
84 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/drumheller-marathon-24/">24</a></li> |
85 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/drumheller-half-23/">23</a></li> |
86 | | - <li><a class="link-secondary" href="{{ site.baseurl }}/drumheller-half-22/">22</a></li> |
| 99 | + <li><a class="link-secondary" href="{% link pages/drumheller-marathon-24.html %}">24</a></li> |
| 100 | + <li><a class="link-secondary" href="{% link pages/drumheller-half-23.html %}">23</a></li> |
| 101 | + <li><a class="link-secondary" href="{% link pages/drumheller-half-22.html %}">22</a></li> |
87 | 102 | </ul> |
88 | 103 | </li> |
89 | 104 |
|
90 | 105 | <li><a class="dropdown-item text-start {% if page.url == "{{ site.baseurl }}/quarantine-relay/" %} active{% endif %}" href="{{ site.baseurl }}/quarantine-relay/">Quarantine Relay</a></li> |
91 | 106 | </ul> |
92 | 107 | </li> |
93 | | - <li class="nav-item"><a href="{{ site.baseurl }}/lore/"{% if page.url == "/lore/" %} class="active"{% endif %}>Lore</a></li> |
| 108 | + <li class="nav-item"><a href="{% link pages/lore.html %}"{% if page.url == "/lore/" %} class="active"{% endif %}>Lore</a></li> |
94 | 109 | </ul> |
95 | 110 | </div> |
96 | 111 | </nav> |
|
0 commit comments