mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 17:12:35 -04:00
Adjust markup to make it easier to match in Algolia
This commit is contained in:
parent
5accec5f16
commit
ba73ce646b
@ -10,8 +10,8 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $t := debug.Timer "single.categories" }}
|
||||
{{ $tags := .GetTerms "categories" }}
|
||||
{{ with $tags }}
|
||||
{{ $categories := .GetTerms "categories" }}
|
||||
{{ with $categories }}
|
||||
<div class="mb-4 sm:mb-6 flex flex-wrap gap-2">
|
||||
{{ range . }}
|
||||
{{ $text := .LinkTitle }}
|
||||
|
@ -1,17 +1,21 @@
|
||||
{{ $documentation := site.GetPage "/documentation" }}
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb" class="flex">
|
||||
<nav aria-label="breadcrumb" class="flex breadcrumbs">
|
||||
<ol class="inline-flex items-center flex-wrap tracking-tight">
|
||||
{{ range $i, $p := .Ancestors.Reverse }}
|
||||
{{ $ancestors := .Ancestors.Reverse }}
|
||||
{{ range $i, $p := $ancestors }}
|
||||
{{/* We currently have a slightly odd structure. */}}
|
||||
{{ if eq $p site.Home }}
|
||||
{{ $p = $documentation }}
|
||||
{{ end }}
|
||||
<li class="flex items-center">
|
||||
{{ $isLast := eq $i (sub (len $ancestors) 1) }}
|
||||
<a
|
||||
href="{{ $p.RelPermalink }}"
|
||||
class="truncate text-blue-600 hover:text-blue-500"
|
||||
class="truncate text-blue-600 hover:text-blue-500 {{ if $isLast }}
|
||||
current-section
|
||||
{{ end }}"
|
||||
>{{ $p.LinkTitle }}</a
|
||||
>
|
||||
{{ if ne $ $documentation }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user