mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Avoid the need to parse the main version switching menu creation and handling code by moving the site constants to a separate file. Additionally move more of the element construction into the JavaScript code to make it closer to a web component and facilitate more control by a common script to be loaded by all published versions.
15 lines
380 B
Plaintext
15 lines
380 B
Plaintext
{%- comment %}handle development serving site on root{% endcomment %}
|
|
{%- if site.baseurl.size == 0 %}
|
|
const basePath = '';
|
|
{%- else %}
|
|
const basePath = '/{{ site.github.repository_name }}';
|
|
{%- endif %}
|
|
|
|
{%- if site.repository_nwo != nil %}
|
|
const repository_nwo = '{{ site.repository_nwo }}';
|
|
{%- else %}
|
|
const repository_nwo = '{{ site.github.repository_nwo }}';
|
|
{%- endif %}
|
|
|
|
|