* Optimize titles and descriptions * Move regexp to file level variable * wip * Add title tags and description to module and pkg index pages * Remove block_external_search_index from index.tmpl * Improve resource descriptions * Add more providers to look up map * Improve module level descriptions Clean up cleanup * Update the function.tmpl with the auto-generated disclaimer. Pass title tag and meta description for the function template as well. * Fix whitespace in the package_details template.. * Account for empty module names for package-level resources. Move logic for generating title tag and description into separate methods for Resources and Functions. * Add a test for the generated resource and function title tag. Co-authored-by: Praneet Loke <1466314+praneetloke@users.noreply.github.com>
8 lines
121 B
Cheetah
8 lines
121 B
Cheetah
{{ define "header" }}
|
|
---
|
|
title: "{{ .Title }}"
|
|
title_tag: "{{ .TitleTag }}"
|
|
meta_desc: "{{ .MetaDesc }}"
|
|
---
|
|
|
|
{{ end }}
|