Skip to content

Commit

Permalink
fix:fixed search error
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfa committed Feb 13, 2025
1 parent ea3c030 commit 93659d2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ echo "theme = 'hera'" >> config.toml

## Release Note

### 0.0.10

- fixed search error

### 0.0.9

- fixed some ui error
Expand Down
4 changes: 4 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ echo "theme = 'hera'" >> hugo.toml

## 更新日志

### 0.0.10

- 修复搜索问题

### 0.0.9

- 修复一些样式错误
Expand Down
6 changes: 4 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</a>
<div class="site--info__content">
<h1 class="site--title">{{ $.Site.Title }}</h1>
<div class="site--description"></div>
<div class="site--description">{{ .Site.Params.SiteDescription }}</div>
</div>
</div>
{{ partial "navigation.html" . }}
Expand All @@ -53,8 +53,9 @@ <h1 class="site--title">{{ $.Site.Title }}</h1>
</div>
</div>
<div class="content">
{{ if $.Site.Params.search }}
<div class="search--area">
<form role="search" method="get" class="search-form" action="/search">
<form role="search" method="get" class="search-form" action="{{ site.Home.Permalink }}search">
<label class="search-label">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
<path fill="currentColor" fill-rule="evenodd"
Expand All @@ -67,6 +68,7 @@ <h1 class="site--title">{{ $.Site.Title }}</h1>
<input type="submit" class="search-submit" value="Search">
</form>
</div>
{{ end }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
</div>
Expand Down

0 comments on commit 93659d2

Please sign in to comment.