forked from endoflife-date/endoflife.date
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.html
21 lines (16 loc) · 686 Bytes
/
variables.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{%- assign api = site.data.openapi -%}
{%- capture title -%}
{%- if page.title -%}
{{- page.title | append: ' - ' -}}
{%- endif -%}
{{- api.info.title -}}
{%- endcapture -%}
{%- assign description = api.info.description | xml_escape -%}
{%- assign url = page.url | prepend: site.baseurl | prepend: site.url -%}
{%- assign image = '/assets/img/image.png' | prepend: site.baseurl | prepend: site.url -%}
{%- assign collections = '' -%}
{%- for path in api.paths -%}
{%- assign path_parts = path[0] | split: '/' -%}
{%- assign collections = collections | append: path_parts[1] | append: ',' -%}
{%- endfor -%}
{%- assign collections = collections | split: ',' | uniq -%}