Repository navigation
fix(docs): Cap Kanvas releases in llms.txt and remove stray "View as Markdown" links #1276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,147 @@ | ||||||
| {{- /* | ||||||
| llms.txt — Hugo Module by GetHugoThemes | ||||||
| https://github.com/gethugothemes/hugo-modules/llms-txt | ||||||
|
|
||||||
| Generates /llms.txt following the llmstxt.org specification. | ||||||
| Grouped by Hugo sections. Respects params.llms.generate_llms_txt, include, and exclude. | ||||||
| */ -}} | ||||||
|
|
||||||
| {{- define "partials/llms_is_valid_page.html" -}} | ||||||
| {{- $url := .url -}} | ||||||
| {{- $includeList := .includeList -}} | ||||||
| {{- $excludeList := .excludeList -}} | ||||||
| {{- $isIncluded := false -}} | ||||||
| {{- if eq (len $includeList) 0 }}{{ $isIncluded = true }}{{ else -}} | ||||||
| {{- range $includeList -}} | ||||||
| {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isIncluded = true }}{{ end -}} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '1,32p' layouts/index.llms
sed -n '1,32p' layouts/index.llmsfull
sed -n '270,286p' CONTRIBUTING.md
sed -n '358,380p' hugo.tomlRepository: layer5io/docs Length of output: 5327 🏁 Script executed: #!/bin/bash
set -u
base=743fa0563d9dc47c647275ddf35c599713dfcd38
head=027267a3173a06779e79ab2db675781efc361500
printf '%s\n' '--- PR diff for templates/config/docs ---'
git diff --unified=5 "$base" "$head" -- layouts/index.llms layouts/index.llmsfull hugo.toml CONTRIBUTING.md
printf '%s\n' '--- llms pattern definitions, uses, and documentation references ---'
rg -n -F -- 'llms_is_valid_page' layouts/index.llms
rg -n -i -- 'llms|include|exclude|/\*\*|/\*' README.md CONTRIBUTING.md hugo.toml layouts content 2>/dev/null | head -180
printf '%s\n' '--- content/config candidates for sibling paths ---'
rg --files content | rg '(^|/)(docs[^/]*|tags[^/]*|categories[^/]*)($|/)|(^|/)([^/]*archive[^/]*)($|/)'
rg -n -- '(^|[[:space:]])(permalinks|taxonomies|outputs|aliases)[[:space:]]*=|tags-archive|docs-archive|/tags/' hugo.toml config content 2>/dev/null | head -120Repository: layer5io/docs Length of output: 45655 🤖 get_repo_knowledge executed:
Length of output: 13169 🌐 Web query:
💡 Result: 🏁 Script executed: #!/bin/bash
printf '%s\n' '--- Active standard output/config and exact matcher ---'
nl -ba hugo.toml | sed -n '96,107p;369,380p'
nl -ba layouts/index.llms | sed -n '8,31p;54,106p;121,140p'
printf '%s\n' '--- Top-level content sections and explicit URL/alias overrides ---'
find content -mindepth 1 -maxdepth 3 -type d | sort | sed -n '1,100p'
rg -n --glob '*.md' --glob '*.yaml' --glob '*.yml' --glob '*.toml' '(^|[[:space:]])(url|permalink|aliases):|tags-archive|docs-archive|/tags[^/]' content config hugo.toml 2>/dev/null | head -120
printf '%s\n' '--- PR addition status for standard matcher ---'
git diff --unified=0 743fa0563d9dc47c647275ddf35c599713dfcd38 027267a3173a06779e79ab2db675781efc361500 -- layouts/index.llms | sed -n '1,42p'Repository: layer5io/docs Length of output: 17922 Require a path boundary for With an Suggested fix- {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isIncluded = true }}{{ end -}}
+ {{- if strings.HasSuffix . "/**" }}{{ $dir := strings.TrimSuffix "/" (strings.TrimSuffix "/**" .) }}{{ if or (eq $url $dir) (strings.HasPrefix $url (printf "%s/" $dir)) }}{{ $isIncluded = true }}{{ end -}}
...
- {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isExcluded = true }}{{ end -}}
+ {{- if strings.HasSuffix . "/**" }}{{ $dir := strings.TrimSuffix "/" (strings.TrimSuffix "/**" .) }}{{ if or (eq $url $dir) (strings.HasPrefix $url (printf "%s/" $dir)) }}{{ $isExcluded = true }}{{ end -}}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| {{- else if strings.HasSuffix . "/*" }}{{ $dir := strings.TrimSuffix "*" . }}{{ if and (strings.HasPrefix $url $dir) (ne $url $dir) (not (strings.Contains (strings.TrimSuffix "/" (strings.TrimPrefix $dir $url)) "/")) }}{{ $isIncluded = true }}{{ end -}} | ||||||
| {{- else }}{{ if eq $url . }}{{ $isIncluded = true }}{{ end -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
| {{- $isExcluded := false -}} | ||||||
| {{- range $excludeList -}} | ||||||
| {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isExcluded = true }}{{ end -}} | ||||||
| {{- else if strings.HasSuffix . "/*" }}{{ $dir := strings.TrimSuffix "*" . }}{{ if and (strings.HasPrefix $url $dir) (ne $url $dir) (not (strings.Contains (strings.TrimSuffix "/" (strings.TrimPrefix $dir $url)) "/")) }}{{ $isExcluded = true }}{{ end -}} | ||||||
| {{- else }}{{ if eq $url . }}{{ $isExcluded = true }}{{ end -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
| {{- return (and $isIncluded (not $isExcluded)) -}} | ||||||
| {{- end -}} | ||||||
|
|
||||||
| {{- $llms := site.Params.llms | default dict -}} | ||||||
| {{- if ne ($llms.generate_llms_txt | default true) false -}} | ||||||
| {{- $rawExcludeList := $llms.exclude | default slice -}} | ||||||
| {{- $includeList := $llms.include | default slice -}} | ||||||
|
|
||||||
| {{- /* Clean Exclude List (Include takes precedence for exact matches) */ -}} | ||||||
| {{- $excludeList := slice -}} | ||||||
| {{- range $rawExcludeList -}} | ||||||
| {{- if not (in $includeList .) -}} | ||||||
| {{- $excludeList = $excludeList | append . -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
|
|
||||||
| {{- /* Local override: keep only the newest N pages under each section in params.llms.limit_sections */ -}} | ||||||
| {{- range $path, $n := $llms.limit_sections | default dict -}} | ||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||
| {{- with site.GetPage $path -}} | ||||||
| {{- range after $n .RegularPagesRecursive.ByDate.Reverse -}} | ||||||
| {{- $excludeList = $excludeList | append .RelPermalink -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
| {{- end -}} | ||||||
|
|
||||||
| # {{ site.Title }} | ||||||
|
|
||||||
| > {{ site.Params.metadata.description | default site.Params.description | default site.Title }} | ||||||
|
|
||||||
| ## Pages | ||||||
|
|
||||||
| {{- /* Home page */ -}} | ||||||
| {{- $home := site.Home }} | ||||||
| {{- $showHome := partial "llms_is_valid_page.html" (dict "url" $home.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $showHome }} | ||||||
| {{- $homeUrl := $home.Permalink -}} | ||||||
| {{- with $home.OutputFormats.Get "md" }}{{- $homeUrl = .Permalink -}}{{- end }} | ||||||
| - [{{ $home.Title | default "Home" }}]({{ $homeUrl }}){{ with $home.Params.description }}: {{ . }}{{ end }} | ||||||
| {{- end }} | ||||||
|
|
||||||
| {{- /* Standalone section pages (top-level sections with no pages at any depth) */ -}} | ||||||
| {{- range site.Home.Sections }} | ||||||
| {{- if not .RegularPagesRecursive }} | ||||||
| {{- if and .Title .Permalink }} | ||||||
| {{- $show := partial "llms_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $show }} | ||||||
| {{- $url := .Permalink -}} | ||||||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||||||
| - [{{ .Title }}]({{ $url }}){{ with .Params.description }}: {{ . }}{{ end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
|
|
||||||
| {{- /* Root-level regular pages: About, Contact, etc. */ -}} | ||||||
| {{- range site.Home.RegularPages }} | ||||||
| {{- $show := partial "llms_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $show }} | ||||||
| {{- $url := .Permalink -}} | ||||||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||||||
| - [{{ .Title }}]({{ $url }}){{ with .Params.description | default (.Summary | plainify | truncate 120) }}: {{ . }}{{ end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
|
|
||||||
| {{- /* Content sections: Blog, Docs, etc. — top-level only, all nested pages included */ -}} | ||||||
| {{- range site.Home.Sections }} | ||||||
| {{- if .RegularPagesRecursive }} | ||||||
| {{- $section := . }} | ||||||
| {{- $validPages := where .RegularPagesRecursive ".Permalink" "ne" "" }} | ||||||
| {{- $filteredPages := slice }} | ||||||
| {{- range $validPages }} | ||||||
| {{- $page := . }} | ||||||
| {{- $show := partial "llms_is_valid_page.html" (dict "url" $page.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $show }}{{- $filteredPages = $filteredPages | append $page }}{{- end }} | ||||||
| {{- end }} | ||||||
| {{- if $filteredPages }} | ||||||
|
|
||||||
| ## {{ $section.Title }} | ||||||
| {{- $sectionUrl := $section.Permalink -}} | ||||||
| {{- with $section.OutputFormats.Get "md" }}{{- $sectionUrl = .Permalink -}}{{- end }} | ||||||
| - [{{ $section.Title }}]({{ $sectionUrl }}){{ with $section.Params.description }}: {{ . }}{{ end }} | ||||||
| {{ range $filteredPages }} | ||||||
| {{- if .Title }} | ||||||
| {{- $url := .Permalink -}} | ||||||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||||||
| - [{{ .Title }}]({{ $url }}){{ with .Params.description | default (.Summary | plainify | truncate 120) }}: {{ . }}{{ end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
|
|
||||||
| {{- /* Taxonomy pages */ -}} | ||||||
| {{- range $taxonomyName, $taxonomy := site.Taxonomies }} | ||||||
| {{- $taxPage := site.GetPage $taxonomyName }} | ||||||
| {{- if $taxPage }} | ||||||
| {{- $showTax := partial "llms_is_valid_page.html" (dict "url" $taxPage.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $showTax }} | ||||||
|
|
||||||
| ## {{ $taxPage.Title | default ($taxonomyName | humanize) }} | ||||||
| {{- $taxUrl := $taxPage.Permalink -}} | ||||||
| {{- with $taxPage.OutputFormats.Get "md" }}{{- $taxUrl = .Permalink -}}{{- end }} | ||||||
| - [{{ $taxPage.Title | default ($taxonomyName | humanize) }}]({{ $taxUrl }}){{ with $taxPage.Params.description }}: {{ . }}{{ end }} | ||||||
| {{- range $termName, $weightedPages := $taxonomy }} | ||||||
| {{- $termPage := site.GetPage (printf "%s/%s" $taxonomyName $termName) }} | ||||||
| {{- if $termPage }} | ||||||
| {{- $showTerm := partial "llms_is_valid_page.html" (dict "url" $termPage.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||||||
| {{- if $showTerm }} | ||||||
| {{- $url := $termPage.Permalink -}} | ||||||
| {{- with $termPage.OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||||||
| - [{{ $termPage.Title | default $termName }}]({{ $url }}){{ with $termPage.Params.description }}: {{ . }}{{ end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
| {{- end }} | ||||||
|
|
||||||
| {{- end -}} | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,194 @@ | ||
| {{- /* | ||
| llms-full.txt — Hugo Module by GetHugoThemes | ||
| https://github.com/gethugothemes/hugo-modules/llms-txt | ||
|
|
||
| Generates /llms-full.txt — the full-content companion to llms.txt. | ||
| Respects params.llms.generate_llms_full_txt, include, and exclude settings. | ||
| */ -}} | ||
|
|
||
| {{- define "partials/llms_full_is_valid_page.html" -}} | ||
| {{- $url := .url -}} | ||
| {{- $includeList := .includeList -}} | ||
| {{- $excludeList := .excludeList -}} | ||
| {{- $isIncluded := false -}} | ||
| {{- if eq (len $includeList) 0 }}{{ $isIncluded = true }}{{ else -}} | ||
| {{- range $includeList -}} | ||
| {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isIncluded = true }}{{ end -}} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Keep When a rule is Also applies to: 24-24 🤖 Prompt for AI Agents |
||
| {{- else if strings.HasSuffix . "/*" }}{{ $dir := strings.TrimSuffix "*" . }}{{ if and (strings.HasPrefix $url $dir) (ne $url $dir) (not (strings.Contains (strings.TrimSuffix "/" (strings.TrimPrefix $dir $url)) "/")) }}{{ $isIncluded = true }}{{ end -}} | ||
| {{- else }}{{ if eq $url . }}{{ $isIncluded = true }}{{ end -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
| {{- $isExcluded := false -}} | ||
| {{- range $excludeList -}} | ||
| {{- if strings.HasSuffix . "/**" }}{{ if strings.HasPrefix $url (strings.TrimSuffix "/**" .) }}{{ $isExcluded = true }}{{ end -}} | ||
| {{- else if strings.HasSuffix . "/*" }}{{ $dir := strings.TrimSuffix "*" . }}{{ if and (strings.HasPrefix $url $dir) (ne $url $dir) (not (strings.Contains (strings.TrimSuffix "/" (strings.TrimPrefix $dir $url)) "/")) }}{{ $isExcluded = true }}{{ end -}} | ||
| {{- else }}{{ if eq $url . }}{{ $isExcluded = true }}{{ end -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
| {{- return (and $isIncluded (not $isExcluded)) -}} | ||
| {{- end -}} | ||
|
|
||
| {{- $llms := site.Params.llms | default dict -}} | ||
| {{- if ne ($llms.generate_llms_full_txt | default true) false -}} | ||
| {{- $rawExcludeList := $llms.exclude | default slice -}} | ||
| {{- $includeList := $llms.include | default slice -}} | ||
|
|
||
| {{- /* Clean Exclude List (Include takes precedence for exact matches) */ -}} | ||
| {{- $excludeList := slice -}} | ||
| {{- range $rawExcludeList -}} | ||
| {{- if not (in $includeList .) -}} | ||
| {{- $excludeList = $excludeList | append . -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
|
|
||
| {{- /* Local override: keep only the newest N pages under each section in params.llms.limit_sections */ -}} | ||
| {{- range $path, $n := $llms.limit_sections | default dict -}} | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| {{- with site.GetPage $path -}} | ||
| {{- range after $n .RegularPagesRecursive.ByDate.Reverse -}} | ||
| {{- $excludeList = $excludeList | append .RelPermalink -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
|
|
||
| # {{ site.Title }} | ||
|
|
||
| > {{ site.Params.metadata.description | default site.Params.description | default site.Title }} | ||
|
|
||
| {{- /* Home Page */ -}} | ||
| {{- $home := site.Home }} | ||
| {{- $showHome := partial "llms_full_is_valid_page.html" (dict "url" $home.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $showHome }} | ||
| {{- $homeUrl := $home.Permalink -}} | ||
| {{- with $home.OutputFormats.Get "md" }}{{- $homeUrl = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ $home.Title | default "Home" }}" | ||
| url: {{ $homeUrl }} | ||
| {{ with $home.Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if $home.RawContent }}{{ $home.RawContent }}{{ else }}{{ $home.Params.description }}{{ end }} | ||
| {{- end }} | ||
|
|
||
| {{- /* Standalone section pages (top-level sections with no pages at any depth) */ -}} | ||
| {{- range site.Home.Sections }} | ||
| {{- if not .RegularPagesRecursive }} | ||
| {{- if and .Title .Permalink }} | ||
| {{- $show := partial "llms_full_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $show }} | ||
| {{- $url := .Permalink -}} | ||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ .Title }}" | ||
| url: {{ $url }} | ||
| {{ with .Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if .RawContent }}{{ .RawContent }}{{ else }}{{ .Params.description }}{{ end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| {{- /* Root-level regular pages: About, Contact, etc. */ -}} | ||
| {{- range site.Home.RegularPages }} | ||
| {{- $show := partial "llms_full_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $show }} | ||
| {{- $url := .Permalink -}} | ||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ .Title }}" | ||
| url: {{ $url }} | ||
| {{ with .Date }}date: "{{ .Format "2006-01-02" }}" | ||
| {{ end -}} | ||
| {{ with .Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if .RawContent }}{{ .RawContent }}{{ else }}{{ .Summary | plainify }}{{ end }} | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| {{- /* Content sections: Blog, Docs, etc. — top-level only, all nested pages included */ -}} | ||
| {{- range site.Home.Sections }} | ||
| {{- if .RegularPagesRecursive }} | ||
|
|
||
| {{- /* Section index page content block */ -}} | ||
| {{- $showSection := partial "llms_full_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $showSection }} | ||
| {{- $sectionUrl := .Permalink -}} | ||
| {{- with .OutputFormats.Get "md" }}{{- $sectionUrl = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ .Title }}" | ||
| url: {{ $sectionUrl }} | ||
| {{ with .Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if .RawContent }}{{ .RawContent }}{{ else }}{{ .Params.description }}{{ end }} | ||
| {{- end }} | ||
|
|
||
| {{- /* All nested pages recursively */ -}} | ||
| {{- range where .RegularPagesRecursive ".Permalink" "ne" "" }} | ||
| {{- if .Title }} | ||
| {{- $show := partial "llms_full_is_valid_page.html" (dict "url" .RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $show }} | ||
| {{- $url := .Permalink -}} | ||
| {{- with .OutputFormats.Get "md" }}{{- $url = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ .Title }}" | ||
| url: {{ $url }} | ||
| {{ with .Date }}date: "{{ .Format "2006-01-02" }}" | ||
| {{ end -}} | ||
| {{ with .Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if .RawContent }}{{ .RawContent }}{{ else }}{{ .Summary | plainify }}{{ end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| {{- /* Taxonomy list and term pages */ -}} | ||
| {{- range $taxonomyName, $taxonomy := site.Taxonomies }} | ||
| {{- $taxPage := site.GetPage $taxonomyName }} | ||
| {{- if $taxPage }} | ||
| {{- $showTax := partial "llms_full_is_valid_page.html" (dict "url" $taxPage.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $showTax }} | ||
| {{- $taxUrl := $taxPage.Permalink -}} | ||
| {{- with $taxPage.OutputFormats.Get "md" }}{{- $taxUrl = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ $taxPage.Title | default ($taxonomyName | humanize) }}" | ||
| url: {{ $taxUrl }} | ||
| {{ with $taxPage.Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if $taxPage.RawContent }}{{ $taxPage.RawContent }}{{ else }}{{ $taxPage.Params.description }}{{ end }} | ||
| {{- range $termName, $weightedPages := $taxonomy }} | ||
| {{- $termPage := site.GetPage (printf "%s/%s" $taxonomyName $termName) }} | ||
| {{- if $termPage }} | ||
| {{- $showTerm := partial "llms_full_is_valid_page.html" (dict "url" $termPage.RelPermalink "includeList" $includeList "excludeList" $excludeList) }} | ||
| {{- if $showTerm }} | ||
| {{- $termUrl := $termPage.Permalink -}} | ||
| {{- with $termPage.OutputFormats.Get "md" }}{{- $termUrl = .Permalink -}}{{- end }} | ||
|
|
||
| -------------------------------------------------------------------------------- | ||
| title: "{{ $termPage.Title | default $termName }}" | ||
| url: {{ $termUrl }} | ||
| {{ with $termPage.Params.description }}description: {{ . }} | ||
| {{ end -}} | ||
| -------------------------------------------------------------------------------- | ||
| {{ if $termPage.RawContent }}{{ $termPage.RawContent }}{{ else }}{{ $termPage.Params.description }}{{ end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
|
|
||
| {{- end -}} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good!