|
9 | 9 | {% include menu.html %}
|
10 | 10 | <main id="content" class="main page-content" aria-label="Content">
|
11 | 11 | <article>
|
12 |
| - <header class="hero-banner hero-banner--auto-height"> |
13 |
| - <div class="wrapper"> |
14 |
| - <div class="hero-banner__content" data-animate-in="up"> |
15 |
| - <h1 class="h0 mt-0 mb-3 text-black">{{ page.title }}</h1> |
16 |
| - <p class="p-lg">{{ page.subtitle }}</p> |
17 |
| - </div> |
18 |
| - </div> |
19 |
| - </header> |
| 12 | + {% include page_header.html %} |
| 13 | + <div class="wrapper py-4 mb-4 rte long-form"> |
| 14 | + {{ content }} |
20 | 15 |
|
21 |
| - <div class="wrapper mt-6 pt-6 pt-md-4 pb-4"> |
22 |
| - <nav aria-label="breadcrumb"> |
23 |
| - <ol class="breadcrumb"> |
24 |
| - {% assign category_name = "" %} |
25 |
| - {% assign subcategory_name = "" %} |
| 16 | + <p> <b>Contributer(s): </b>{{ page.author }}</p> |
26 | 17 |
|
27 |
| - {% for category in site.menu %} |
28 |
| - {% if category.name == page.category %} |
29 |
| - {% assign category_name = category.name %} |
30 |
| - {% if category.subcategory %} |
31 |
| - {% for subcategory in category.subcategory %} |
32 |
| - {% if subcategory.name == page.subcategory %} |
33 |
| - {% assign subcategory_name = subcategory.name %} |
34 |
| - {% endif %} |
35 |
| - {% endfor %} |
| 18 | + <div class="navigation-buttons" style="display: flex; justify-content: space-between;"> |
| 19 | + {% if page.previous == "index" %} |
| 20 | + <a class="btn btn-secondary" href="index.html">Go back to the list of articles</a> |
| 21 | + {% else %} |
| 22 | + {% for site_page in site.html_pages %} |
| 23 | + {% if site_page.name != "index.md" %} |
| 24 | + {% assign full_previous_page_path = "/" | append: page.category | append: '/' | append: page.subcategory | append: '/' | append: page.previous | append: '.html' %} |
| 25 | + {% if full_previous_page_path == site_page.url %} |
| 26 | + <a class="btn btn-secondary" href="{{ page.previous }}.html">Go back to: {{ site_page.title }}</a> |
| 27 | + {% endif %} |
36 | 28 | {% endif %}
|
37 |
| - {% endif %} |
38 |
| - {% endfor %} |
39 |
| - |
40 |
| - <li class="breadcrumb-item"><a href="/{{ page.category }}">{{ page.category }}</a></li> |
41 |
| - <li class="breadcrumb-item"><a href="/{{ page.category }}/{{ page.subcategory }}">{{ page.subcategory }}</a></li> |
42 |
| - <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li> |
43 |
| - </ol> |
44 |
| - </nav> |
45 |
| - <div class="skill-level"> |
46 |
| - <p> |
47 |
| - <b>Intended audience:</b> |
48 |
| - <span>{{ page.audience }}</span> |
49 |
| - </p> |
50 |
| - </div> |
51 |
| - </div> |
52 |
| - <div class="wrapper-thin-alt py-6 mb-6 rte long-form"> |
53 |
| - {{ content }} |
| 29 | + {% endfor %} |
| 30 | + {% endif %} |
| 31 | + |
| 32 | + {% if page.next == "index" %} |
| 33 | + <a class="btn btn-secondary" href="index.html">Go back to the list of articles</a> |
| 34 | + {% else %} |
| 35 | + {% for site_page in site.html_pages %} |
| 36 | + {% if site_page.name != "index.md" %} |
| 37 | + {% assign full_next_page_path = "/" | append: page.category | append: '/' | append: page.subcategory | append: '/' | append: page.next | append: '.html' %} |
| 38 | + {% if full_next_page_path == site_page.url %} |
| 39 | + <a class="btn btn-secondary" href="{{ page.next }}.html">Proceed to: {{ site_page.title }}</a> |
| 40 | + {% endif %} |
| 41 | + {% endif %} |
| 42 | + {% endfor %} |
| 43 | + {% endif %} |
54 | 44 |
|
55 |
| - <p> <b>Contributer(s): </b>{{ page.author }}</p> |
56 |
| - <div class="navigation-buttons"> |
57 |
| - {% if page.previous %} |
58 |
| - <a class="btn btn-secondary" href="{{ page.previous }}.html">Go back to: article name</a> |
59 |
| - {% endif %} |
60 |
| - {% if page.next %} |
61 |
| - {# if we hit the end of a section, proceed to the index of the next section #} |
62 |
| - <a class="btn btn-secondary" href="{{ page.next }}html">Proceed to: article name</a> |
63 |
| - {% endif %} |
64 |
| - </div> |
| 45 | + |
65 | 46 |
|
| 47 | + </div> |
| 48 | + |
66 | 49 | </div>
|
67 | 50 | {% include footer.html %}
|
68 | 51 |
|
|
0 commit comments