File: frontmatter.tmpl

package info (click to toggle)
libthrust 1.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,900 kB
  • sloc: ansic: 29,519; cpp: 23,989; python: 1,421; sh: 811; perl: 460; makefile: 112
file content (43 lines) | stat: -rw-r--r-- 1,160 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
{%- if exists("title") -%}
  title: {{title}}
{%- else if exists("name") -%}
  title: {{name}}
{%- endif -%}
{%- if exists("summary") -%}
  summary: {{summary}}
{%- endif -%}
{%- if exists("moduleBreadcrumbs") -%}
  {%- if length(moduleBreadcrumbs) > 0 -%}
    parent: {{ get(last(moduleBreadcrumbs), "title") }}
  {%- endif -%}
  {%- if length(moduleBreadcrumbs) > 1 -%}
    grand_parent: {{ get(index(moduleBreadcrumbs, -2), "title") }}
  {%- else if length(moduleBreadcrumbs == 1) and exists("kind") and kind == "group" -%}
    grand_parent: API
  {%- endif -%}
{%- else if exists("kind") and kind == "group" -%}
  parent: API
{%- endif -%}
{%- if exists("kind") and kind == "group" -%}
  nav_exclude: false
{%- else -%}
  nav_exclude: true
{%- endif -%}
has_children: true
has_toc: false
---

{%- if exists("title") -%}
  {%- if exists("kind") and kind in ["class", "struct", "namespace"] -%}
    # {{title(kind)}} `{{title}}`
  {%- else -%}
    # {{title}}
  {%- endif -%}
{%- else if exists("name") -%}
  {%- if exists("kind") and kind != "page" -%}
    # {{name}} {{title(kind)}} Reference
  {%- else -%}
    # {{name}}
  {%- endif -%}
{%- endif %}