Skip to content

Commit 1139e10

Browse files
authored
Merge pull request #31 from dasc-lab/feat/search
add additional search functionality
2 parents 436e425 + d9910ad commit 1139e10

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

layouts/404.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{- define "main" -}}
2+
<div class="FourOhFourCentered">
3+
<h1>Page not found</h1>
4+
<p>Sorry, that page isn't on this site.</p>
5+
<p class="bottom">Please use the navigation menu above, or the <a href="/search">search</a> page to find another page.</p>
6+
</div>
7+
{{- end }}

layouts/papers/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{/* <p class="d-none"> Rendered from /layouts/papers/single.html </p> */}}
44

55
<div class="my-3">
6-
<h2>{{ .Title }}</h2>
6+
<h1>{{ .Title }}</h1>
77
</div>
88

99
{{ partial "paper-card" . }}

layouts/partials/head.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<head>
22
<meta charset="utf-8">
33
<meta name="viewport" content="width=device-width, initial-scale=1">
4-
<title>{{ .Title }}</title>
4+
<title>
5+
{{- if .IsHome -}}
6+
Home | {{ .Site.Title }}
7+
{{- else if .Page.Title -}}
8+
{{ .Page.Title }} | {{ .Site.Title }}
9+
{{- else -}}
10+
{{ .Site.Title }}
11+
{{- end -}}
12+
</title>
513
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
14+
<link rel="canonical" href="{{ .Permalink }}" />
615
{{ partial "style.html" . }}
716
</head>

0 commit comments

Comments
 (0)