-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvariables.liquid
More file actions
26 lines (22 loc) · 1.08 KB
/
variables.liquid
File metadata and controls
26 lines (22 loc) · 1.08 KB
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
{%- comment %} variables {% endcomment -%}
{%- assign version = theme_alias | split: "@" | last -%}
{%- assign docs = site.github -%}
{%- assign rest = docs.public_repositories | where: "html_url", docs.repository_url | first -%}
{%- assign rest_created_at = rest.created_at | default: site.time -%}
{%- assign rest_updated_at = rest.updated_at | default: site.time -%}
{%- comment %} defaults {% endcomment -%}
{%- assign direction = site.direction | default: "auto" -%}
{%- assign lang = site.lang | default: "en" -%}
{%- assign author = docs.owner.name | default: docs.owner_name -%}
{%- capture generator -%}
{%- if site.remote_theme -%}
{{- theme_alias | split: "@" | first -}}
{%- else -%}
{{- theme_alias | split: "@" | first | split: "/" | last -}}
{%- endif -%}
{%- endcapture -%}
{%- comment %} schema {% endcomment -%}
{%- assign schema_date = page.date | default: rest_created_at | date_to_xmlschema -%}
{%- assign schema_modi = site.time | date_to_xmlschema -%}
{%- assign schema_surl = page.url | absolute_url | xml_escape -%}
{%- assign base = site.baseurl -%}