Skip to content

Commit 30bbb77

Browse files
feat: make the non shortcode way a conditional so that incremental updates can happen
1 parent 15465d1 commit 30bbb77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layouts/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{{ define "main" }}
2+
{{ if .HasShortcode "site-searchbar" }}
3+
{{ warnf "The homepage of the language %s is using a deprecated shortcode site-searchbar. Please remove the shortcode. No other step is needed." .Lang }}
4+
{{ else }}
25
<div class="col-sm-6 col-md-6 col-lg-6 mx-auto py-3">
36
{{partial "search-input" .}}
47
</div>
8+
{{ end }}
59
{{ .Content }}
610
<section id="cncf">
711
<div class="main-section">

0 commit comments

Comments
 (0)