{#- Per-page SEO fields. Every page carries its own title and description. Duplicated metadata is the most common reason docs pages get collapsed together in search results, so the site description is only ever a fallback for a page that forgot one. -#} {%- if page and page.title -%} {%- set node_title = page.title -%} {%- set node_desc = page.description | default(value=config.description) -%} {%- set node_url = page.permalink -%} {%- elif section and section.title -%} {%- set node_title = section.title -%} {%- set node_desc = section.description | default(value=config.description) -%} {%- set node_url = section.permalink -%} {%- else -%} {%- set node_title = config.title -%} {%- set node_desc = config.description -%} {%- set node_url = config.base_url ~ "/" -%} {%- endif -%} {#- The landing page owns the bare site name; every other page reads "Page · aws-ssm-bridge", which keeps the distinguishing words inside the ~60 characters a results list actually shows. -#} {%- set is_home = node_url == config.base_url ~ "/" -%} {%- if is_home -%} {%- set head_title = config.title ~ " — AWS Session Manager as a Rust library" -%} {%- set og_type = "website" -%} {%- else -%} {%- set head_title = node_title ~ " · " ~ config.title -%} {%- set og_type = "article" -%} {%- endif -%} {%- set og_image = get_url(path="social-card.png") -%}