From 84ab1709f1e4877b5afed50f5182f72f13f83b07 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Tue, 21 Apr 2026 17:30:36 +0800 Subject: Add search link to top right. --- 404.md | 6 ++---- _includes/nav.html | 4 +++- assets/css/main.css | 6 ++++++ cgi-bin/find.cgi | 39 ++++++++++++--------------------------- 4 files changed, 23 insertions(+), 32 deletions(-) diff --git a/404.md b/404.md index 9f0f990..574d680 100644 --- a/404.md +++ b/404.md @@ -1,9 +1,7 @@ --- layout: default +title: 404 permalink: /404.html --- -
-
- -## Page not found. [Go back to home...]({{ site.baseurl }}/) +Page not found. [Go back to home...]({{ site.baseurl }}/) diff --git a/_includes/nav.html b/_includes/nav.html index 7488559..aff45fe 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,7 +1,9 @@

{{ site.title }}

{% assign parts = page.url | split: '/' %} -{% if page.url != "/" %} +{% if page.url == "/" %} +

Search

+{% else %} /

{{ page.title }}

{% endif %}
diff --git a/assets/css/main.css b/assets/css/main.css index ebaf1dd..b45cabf 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -14,6 +14,12 @@ h1, h2, h3, h4, h5 { header h1 { display: inline; + overflow: hidden; + margin: 0; +} + +#search { + float: right; } pre, code { diff --git a/cgi-bin/find.cgi b/cgi-bin/find.cgi index 4091c7a..4d52e66 100644 --- a/cgi-bin/find.cgi +++ b/cgi-bin/find.cgi @@ -210,35 +210,20 @@ sub render_html { Search - - -
-
-

Search

-
- - -
- $content -
-
- +
+

Minimalist

/ +

Search

+
+
+

Search

+
+ + +
+ $content +
HTML -- cgit v1.2.3