Skip to content

Commit

Permalink
fix: fix links and 404 page style (#24)
Browse files Browse the repository at this point in the history
* fix: design of 404 page

* fix: issues with loading scripts during testing on remote devices

Co-authored-by: 122173059+hugo-sid@users.noreply.github.com
  • Loading branch information
kusyka911 authored Apr 22, 2023
1 parent 4afdfcb commit 2e78155
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
8 changes: 5 additions & 3 deletions layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{{ end }}

{{ define "main"}}
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn&#39;t exist...</p>
{{ end }}
<main class="wrapper" aria-label="Content">
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn&#39;t exist...</p>
</main>
{{ end }}
6 changes: 3 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<link rel="canonical" href="{{ .Permalink }}">
{{- with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}">
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}">
{{- end -}}

{{/* Styles */}}
Expand Down Expand Up @@ -41,4 +41,4 @@
{{ template "_internal/google_analytics.html" . }}
{{- end -}}

</head>
</head>
16 changes: 8 additions & 8 deletions layouts/partials/postCard.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<article class="post-item">
<h4 class="post-item-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h4>
{{/* format date string to create an ISO 8601 string */}}
{{ $ISO_date := "2006-01-02T15:04:05Z0700" }}
<time class="post-item-meta" datetime="{{ dateFormat $ISO_date .Date }}">
{{ .Date | time.Format ":date_medium" }}
</time>
<h4 class="post-item-title">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h4>
{{/* format date string to create an ISO 8601 string */}}
{{ $ISO_date := "2006-01-02T15:04:05Z0700" }}
<time class="post-item-meta" datetime="{{ dateFormat $ISO_date .Date }}">
{{ .Date | time.Format ":date_medium" }}
</time>
</article>
2 changes: 1 addition & 1 deletion layouts/partials/scriptsBodyEnd.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ $script_main := resources.Get "js/themeSwitchnMenu.js" | minify | fingerprint }}
<script src="{{ $script_main.Permalink }}"></script>
<script src="{{ $script_main.RelPermalink }}"></script>
2 changes: 1 addition & 1 deletion layouts/partials/scriptsBodyStart.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{ $script_main := resources.Get "js/themeLoader.js" | minify | fingerprint }}
<script src="{{ $script_main.Permalink }}"></script>
<script src="{{ $script_main.RelPermalink }}"></script>

0 comments on commit 2e78155

Please sign in to comment.