Skip to content

Commit

Permalink
update urls to respect baseurl in origin links (#27)
Browse files Browse the repository at this point in the history
* update urls to respect baseurl in origin links

* fixing failing specs
  • Loading branch information
HassanAkbar authored Apr 1, 2024
1 parent 82e0121 commit e63958c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/localized-concept.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h3 class="warning">Translated term missing in this language.</h3>
{%- endfor -%}
]
{% else %}
ORIGIN: <a href="/registers/#language-{{ lang }}">{{ site.data.info.languages[lang].register-name }}</a>
ORIGIN: <a href="{{ '/registers' | relative_url }}/#language-{{ lang }}">{{ site.data.info.languages[lang].register-name }}</a>
(last updated: {{ site.data.info.languages[lang].date-of-last-change }})
{% endif %}
</p>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h1 class="title">

<div class="powered-by">
<span class="powered-by-text">Powered by</span>
<a href="{{ site.powered_by.url }}" class="powered-by-logo"><img src="{{ site.powered_by.logo_path }}" alt="{{ site.powered_by.title }}"/></a>
<a href="{{ site.powered_by.url }}" class="powered-by-logo"><img src="{{ site.powered_by.logo_path | relative_url }}" alt="{{ site.powered_by.title }}"/></a>
</div>

<p class="legal">
Expand Down
15 changes: 12 additions & 3 deletions spec/unit/jekyll/geolexica/glossary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@
"sources" => [
{
"origin" => {
"link" => "https://www.iso.org/standard/32620.html"
"link" => "https://www.iso.org/standard/32620.html",
"ref" => "ISO/IEC 19501"
},
"type" => "authoritative"
}
"status" => "restyle",
"type" => "authoritative",
},
{
"origin" => {
"ref" => "ISO/TS 19103:2005 ,4.2.3"
},
"status" => "identical",
"type" => "lineage",
},
],
"terms" => [
{
Expand Down

0 comments on commit e63958c

Please sign in to comment.