Skip to content

Commit

Permalink
Fix base template for 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alainx277 committed Dec 28, 2023
1 parent f56794e commit 90ef480
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% set title = page.title | default (value=section.title) %}
{% set sec = section.title | default(value="404") %}
{% set title = page.title | default (value=sec) %}
<title>{{ title ~ " | SS3D" }}</title>
<link rel="stylesheet" type="text/css" href="{{ get_url(path="site.css") }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ get_url(path="favicon.ico") }}">
Expand Down Expand Up @@ -51,7 +52,7 @@
{% elif page.ancestors[1] %}
{% set current = get_section(path=page.ancestors[1]) | get(key="path") | safe %}
{% else %}
{% set current = page.path %}
{% set current = page.path | default(value="") %}
{% endif %}
<li><a onclick="setScroll('{{ link.url }}',parentNode.parentNode.parentNode.scrollLeft); return false;"
class="{% if link.url == current %}active{% endif %}"
Expand Down

0 comments on commit 90ef480

Please sign in to comment.