Skip to content

Commit f2be118

Browse files
authored
Merge pull request #60 from ELIXIR-Belgium/no-.html
Moving to urls without `.html` suffix
2 parents 24d8204 + 66b06eb commit f2be118

File tree

9 files changed

+42
-42
lines changed

9 files changed

+42
-42
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defaults:
4141
sidebar: main
4242
-
4343
scope:
44-
path: "*/*/TEMPLATE_*.md"
44+
path: "pages/example_pages/TEMPLATE_general_page.md"
4545
type: "pages"
4646
values:
4747
permalink: /:basename:output_ext

_data/footer.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ columns:
1111
width: 3
1212
children:
1313
- url_text: Contributors
14-
url: /contributors.html
14+
url: /contributors
1515
- url_text: Institutes, projects and funders
16-
url: /support.html
16+
url: /support
1717
- type: links
1818
width: 3
1919
children:
2020
- url_text: About
21-
url: /about.html
21+
url: /about
2222
- url_text: Contact
23-
url: /contact.html
23+
url: /contact
2424
- url_text: Accessibility
25-
url: /accessibility.html
25+
url: /accessibility
2626
- url_text: Privacy
27-
url: /privacy.html
27+
url: /privacy
2828
- type: image
2929
image_width: 100px
3030
width: 1

_data/sidebars/main.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
# title: About
22
# version: 2.0
3-
# title_url: /events.html
3+
# title_url: /events
44
subitems:
55
- title: About
66
subitems:
77
- title: About this theme
8-
url: /about.html
8+
url: /about
99
- title: Accessibility
10-
url: /accessibility.html
10+
url: /accessibility
1111
- title: Documentation
1212
subitems:
1313
- title: Markdown cheat sheet
14-
url: /markdown_cheat_sheet.html
14+
url: /markdown_cheat_sheet
1515
- title: Navigation structures
16-
url: /navigation_structures.html
16+
url: /navigation_structures
1717
- title: Page mechanics
18-
url: /page_mechanics.html
18+
url: /page_mechanics
1919
- title: Example pages
2020
subitems:
2121
- title: Contributor page
22-
url: /contributors.html
22+
url: /contributors
2323
- title: Events
24-
url: /events.html
24+
url: /events
2525
- title: News page
26-
url: /news.html
26+
url: /news
2727
- title: Logo page
28-
url: /logo_page.html
28+
url: /logo_page
2929
- title: Section overview
30-
url: /overview_tiles.html
30+
url: /overview_tiles
3131
subitems:
3232
- title: General page
33-
url: /general_page.html
33+
url: /general_page
3434
- title: General page 2
35-
url: /general_page_2.html
35+
url: /general_page_2
3636
- title: General page 3
37-
url: /general_page_3.html
37+
url: /general_page_3
3838
- title: General page 4
39-
url: /general_page_4.html
39+
url: /general_page_4
4040
- title: All resources
41-
url: /all_resources.html
41+
url: /all_resources
4242
- title: All trainings
43-
url: /all_trainings.html
43+
url: /all_trainings
4444
- title: Website overview
45-
url: /website_overview.html
45+
url: /website_overview
4646
- title: 404 page not found
47-
url: /404.html
47+
url: /404
4848

_data/topnav.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
## if you want to list an external url, use external_url instead of url. the theme will apply a different link base.
33
subitems:
44
- title: Home
5-
url: /index.html
5+
url: /index
66
- title: About
7-
url: /about.html
7+
url: /about
88
- title: Example dropdown
99
subitems:
1010
- title: Events
11-
url: /events.html
11+
url: /events
1212
- title: News
13-
url: /news.html
13+
url: /news
1414
- hr: true
1515
- title: Contributors
16-
url: /contributors.html
16+
url: /contributors
1717

_includes/cookie-popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- START Bootstrap-Cookie-Alert -->
33
<div class="alert text-center cookiealert rounded-0" role="alert">
44
We use cookies to ensure you get the best experience on our website. Read our
5-
<a class="fw-bold" href="{{ '/privacy.html' | relative_url}}">privacy policy</a> to find out more.
5+
<a class="fw-bold" href="{{ '/privacy' | relative_url}}">privacy policy</a> to find out more.
66
<button type="button" id="acceptcookies" class="btn btn-primary ms-2">
77
Got it!
88
</button>

_includes/events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
3333
{%- endfor %}
3434
</ul>
3535
{%- if include.caption == "true" %}
36-
<small>An overview of all our events can be fount on the <a href="/events.html">events page</a>.</small>
36+
<small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
3737
{%- endif %}
3838
</div>
3939
<script>

_includes/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ <h2>Whats new?</h2>
3131
{%- endfor %}
3232
</ul>
3333
{%- if include.caption == "true" %}
34-
<small>For more news please visit our <a href="/news.html">news page</a>.</small>
34+
<small>For more news please visit our <a href="/news">news page</a>.</small>
3535
{%- endif %}
3636
</div>

_includes/sidebar.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{%- assign sidebar = site.data.sidebars[page.sidebar] %}
2-
{%- capture reusing -%}{%- if page.url == "/reusing.html" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
3-
{%- capture preserving -%}{%- if page.url == "/preserving.html" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
4-
{%- capture analysing -%}{%- if page.url == "/analysing.html" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
5-
{%- capture processing -%}{%- if page.url == "/processing.html" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
6-
{%- capture planning -%}{%- if page.url == "/planning.html" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
7-
{%- capture collecting -%}{%- if page.url == "/collecting.html" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
8-
{%- capture sharing -%}{%- if page.url == "/sharing.html" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
2+
{%- capture reusing -%}{%- if page.url == "/reusing" -%}st0{%- else -%}st10{%- endif -%}{%- endcapture -%}
3+
{%- capture preserving -%}{%- if page.url == "/preserving" -%}st2{%- else -%}st12{%- endif -%}{%- endcapture -%}
4+
{%- capture analysing -%}{%- if page.url == "/analysing" -%}st3{%- else -%}st13{%- endif -%}{%- endcapture -%}
5+
{%- capture processing -%}{%- if page.url == "/processing" -%}st4{%- else -%}st14{%- endif -%}{%- endcapture -%}
6+
{%- capture planning -%}{%- if page.url == "/planning" -%}st5{%- else -%}st15{%- endif -%}{%- endcapture -%}
7+
{%- capture collecting -%}{%- if page.url == "/collecting" -%}st6{%- else -%}st16{%- endif -%}{%- endcapture -%}
8+
{%- capture sharing -%}{%- if page.url == "/sharing" -%}st7{%- else -%}st17{%- endif -%}{%- endcapture -%}
99
<button class="btn text-start d-lg-none collapsed sidebar-collapse w-100 mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#side-nav" aria-controls="side-nav" aria-expanded="true" aria-label="Toggle navigation">
1010
{{ page.sidebar | capitalize | replace: "_", " " }} menu <i title="navbar-toggler" class="fa fa-bars ms-2"></i>
1111
</button>

_includes/topnav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
55
<nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
66
<div class="container">
7-
<a class="navbar-brand" href="{{ 'index.html' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
7+
<a class="navbar-brand" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
88
<button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
99
<i title="navbar-toggler" class="fa fa-bars"></i>
1010
</button>

0 commit comments

Comments
 (0)