-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added search index for 2.15 docs Signed-off-by: Travis Beckham <[email protected]> * Tweaks Signed-off-by: Travis Beckham <[email protected]> * Added search index to robots.txt; Moved search index to root Signed-off-by: Travis Beckham <[email protected]> * Fixed deprecated .Site.IsServer Signed-off-by: Travis Beckham <[email protected]> * Removed unsused redirect output Signed-off-by: Travis Beckham <[email protected]> * Bumped Hugo version Signed-off-by: Travis Beckham <[email protected]> --------- Signed-off-by: Travis Beckham <[email protected]>
- Loading branch information
1 parent
eb40950
commit 9b214af
Showing
11 changed files
with
39 additions
and
19 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
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
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,18 @@ | ||
{{- $pages := where site.Pages "Section" "eq" "2.15" -}} | ||
[ | ||
{{- range $index, $page := $pages -}} | ||
{{- if gt $index 0 -}} , {{- end -}} | ||
{{- $ancestors := slice "linkerd.io" -}} | ||
{{- range .Ancestors.Reverse -}} | ||
{{- if .IsHome }}{{ continue }}{{ end -}} | ||
{{- $ancestors = $ancestors | append .Title -}} | ||
{{- end -}} | ||
{{- $entry := dict "uri" $page.Permalink -}} | ||
{{- $entry = merge $entry (dict "title" $page.Title) -}} | ||
{{- $entry = merge $entry (dict "ancestors" $ancestors) -}} | ||
{{- $entry = merge $entry (dict "content" ($page.Plain | htmlUnescape | truncate 3000)) -}} | ||
{{- $entry = merge $entry (dict "description" $page.Description) -}} | ||
{{- $entry = merge $entry (dict "keywords" $page.Keywords) -}} | ||
{{- $entry | jsonify -}} | ||
{{- 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
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,4 @@ | ||
User-agent: * | ||
|
||
Disallow: https://slack.linkerd.io/ | ||
Disallow: /search.json |
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
This file was deleted.
Oops, something went wrong.
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