Skip to content

Commit 47f4fca

Browse files
author
haarer
committed
test sitevar logic
1 parent d9227a5 commit 47f4fca

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

src/_includes/dev-viewpoint.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,9 @@ The Table shows the realization of exposed concepts.
179179
{% endfor %}
180180
];
181181
</script>
182-
{%- assign basePath = "" %}
183-
{%- if site.plugin_script_base_path %}
184-
{%- assign basePath = site.plugin_script_base_path %}
185-
{%- elsif site.baseurl and site.baseurl.size > 0 %}
186-
{%- assign basePath = site.baseurl %}
187-
{%- endif %}
182+
188183
{%- assign cacheBuster = site.time | date: "%Y%m%d%H%M%S" %}
189-
<script src="{{ basePath }}/assets/js/examplegallery.js?v={{ cacheBuster }}"></script>
184+
<script src="{{ site.baseurl }}/assets/js/examplegallery.js?v={{ cacheBuster }}"></script>
190185

191186
{% else %}
192187
<p>No examples available.</p>

src/_includes/header_custom.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
{%- assign basePath = "" %}
66
{%- endif %}
77
{%- assign cacheBuster = site.time | date: "%Y%m%d%H%M%S" %}
8-
<script src="{{ basePath }}/assets/js/site_constants.js?v={{ cacheBuster }}"></script>
8+
<script src="{{ site.baseurl }}/assets/js/site_constants.js?v={{ cacheBuster }}"></script>
99
<div id="plugin-version-menu" class="site-footer"></div>
10-
<script src="{{ basePath }}/assets/js/plugin_versions_menu.js?v={{ cacheBuster }}"></script>
11-
<script src="{{ basePath }}/assets/js/annotations.js?v={{ cacheBuster }}"></script>
10+
<script src="{{ site.baseurl }}/assets/js/plugin_versions_menu.js?v={{ cacheBuster }}"></script>
11+
<script src="{{ site.baseurl }}/assets/js/annotations.js?v={{ cacheBuster }}"></script>
1212
<div style="flex: 0 1 200px"><A href="https://gfse.org"><img src="{{ basePath }}/assets/images/gfse-logo.png" alt="GfSE-Logo" style="height:100%"/></A></div>
1313

src/_includes/viewpoint.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
| --- | --- | --- |
2222
|{{ domainlink }}|{{ aspectlink }}|{{ maturityimage }}{{ maturitylink }}|
2323

24+
Test:
25+
26+
Site.BaseURL = {{ site.baseurl }}
27+
28+
basePath = {{ basePath }}
2429

2530
## Example
2631
{% assign examples = md_examples |concat: rhy_examples |concat: ea_examples %}
@@ -59,14 +64,9 @@
5964
{% endfor %}
6065
];
6166
</script>
62-
{%- assign basePath = "" %}
63-
{%- if site.plugin_script_base_path %}
64-
{%- assign basePath = site.plugin_script_base_path %}
65-
{%- elsif site.baseurl and site.baseurl.size > 0 %}
66-
{%- assign basePath = site.baseurl %}
67-
{%- endif %}
67+
6868
{%- assign cacheBuster = site.time | date: "%Y%m%d%H%M%S" %}
69-
<script src="{{ basePath }}/assets/js/examplegallery.js?v={{ cacheBuster }}"></script>
69+
<script src="{{ site.baseurl }}/assets/js/examplegallery.js?v={{ cacheBuster }}"></script>
7070

7171
{% else %}
7272
<p>No examples available.</p>

0 commit comments

Comments
 (0)