Skip to content

Commit

Permalink
Bringing in changes from gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
peteredwards committed Feb 21, 2023
1 parent 7e79494 commit f5ffc87
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ dc:
terms:
url: ""
text: ""
shorttext: ""
foi:
url: ""
text: ""
shorttext: ""
sass:
style: compressed
plugins:
Expand Down
22 changes: 17 additions & 5 deletions _includes/foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@
<li><button type="button" class="modal-trigger icon-info-circled button-icon" data-dialoghash="about" data-dialogid="about-page" aria-label="About this site"><span class="button-text">About</span></button></li>
<li><button type="button" class="modal-trigger icon-universal-access button-icon" data-dialoghash="accessibility" data-dialogid="accessibility-page" aria-label="Accessibility page"><span class="button-text">Accessibility</span></button></li>
<li><button type="button" class="modal-trigger" data-dialoghash="privacy" data-dialogid="privacy-page" aria-label="Privacy page">Privacy</button></li>
{%- if site.terms.url and site.terms.text -%}
<li><a target="external" href="{{ site.terms.url }}">{{ site.terms.text }}</span></a></li>
{%- if site.terms.url != "" and site.terms.text != "" -%}
{%- if site.terms.shorttext != "" -%}
{%- capture termstext -%}<span class="hide-med">{{ site.terms.text }}</span><span class="show-med">{{ site.terms.shorttext }}</span>{%- endcapture -%}
{%- else -%}
{%- assign termstext = site.terms.text -%}
{%- endif -%}
<li><a target="external" href="{{ site.terms.url }}">{{ termstext }}</a></li>
{%- endif -%}
{%- if site.foi.url and site.foi.text -%}
<li><a target="external" href="{{ site.foi.url }}">{{ site.foi.text }}</a></li>
{%- if site.foi.url != "" and site.foi.text != "" -%}
{%- if site.foi.shorttext != "" -%}
{%- capture foitext -%}<span class="hide-med">{{ site.foi.text }}</span><span class="show-med">{{ site.foi.shorttext }}</span>{%- endcapture -%}
{%- else -%}
{%- assign foitext = site.foitext -%}
{%- endif -%}
<li><a target="external" href="{{ site.foi.url }}">{{ foitext }}</a></li>
{%- endif -%}
<li><button type="button" class="modal-trigger" data-dialoghash="about" data-dialogid="about-page" aria-label="Copyright {{ 'now' | date: '%Y' }} University of Leeds">&copy;<span class="hide-med"> {{ "now" | date: "%Y" }}</span><span class="hide-small"> University of Leeds</span></button></li>
{%- if site.copyright != "" -%}
<li><button type="button" class="modal-trigger" data-dialoghash="about" data-dialogid="about-page" aria-label="Copyright {{ 'now' | date: '%Y' }} {{ site.copyright }}">&copy;<span class="hide-med"> {{ "now" | date: "%Y" }}</span><span class="hide-small"> {{ site.copyright }}</span></button></li>
{%- endif -%}
</ul>
</nav>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions _includes/javascript/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const spacefinder = {
/* space related config */
spaces: [],
spacesLoaded: false,
spacesurl: '{{ site.url }}/spaces.json',
imageBaseURL: '{{ site.url }}',
spacesurl: '{{ site.url }}{{ site.baseurl }}/spaces.json',
imageBaseURL: '{{ site.url }}{{ site.baseurl }}',

/* filter related config */
filters: [],
filtersLoaded: false,
filtersurl: '{{ site.url }}/filters.json'
filtersurl: '{{ site.url }}{{ site.baseurl }}/filters.json'
};

0 comments on commit f5ffc87

Please sign in to comment.