forked from fabi1cazenave/qwerty-lafayette
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(website): 404 page * style(website): eats leading and trailing whitespace in title tags
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ define "headtitle" -}} | ||
{{ printf "%s | %s" "404" site.Title }} | ||
{{- end }} | ||
|
||
{{ define "title" }}Il semblerait qu’il y ait un quack… 🦆{{ end }} | ||
|
||
{{ define "main" }} | ||
<p> | ||
La page n’existe pas, mais vous pouvez retourner à <a href="{{ "" | relURL }}">l’accueil</a>. | ||
</p> | ||
|
||
<script> | ||
document.documentElement.classList.add("quack"); | ||
</script> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" dir="{{ or site.Language.LanguageDirection `ltr` }}"> | ||
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}" | ||
dir="{{ or site.Language.LanguageDirection `ltr` }}"> | ||
|
||
<head> | ||
<title> | ||
{{- block "headtitle" . -}} | ||
{{- if .IsHome -}} | ||
{{ site.Title }} | ||
{{- else -}} | ||
{{ printf "%s | %s" .Title site.Title }} | ||
{{- end -}} | ||
{{- end -}} | ||
</title> | ||
|
||
{{ partial "head.html" . }} | ||
</head> | ||
|
||
<body> | ||
<header> | ||
{{ partial "header.html" . }} | ||
<h1> | ||
{{- block "title" . -}} | ||
{{ .Title }} | ||
{{- end -}} | ||
</h1> | ||
</header> | ||
|
||
<main> | ||
{{ block "main" . }}{{ end }} | ||
</main> | ||
|
||
<footer> | ||
{{ partial "footer.html" . }} | ||
</footer> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,3 @@ | |
</nav> | ||
|
||
{{ partial "menu.html" (dict "menuID" "main" "page" .) }} | ||
|
||
<h1>{{ .Title }}</h1> |