Skip to content

Commit

Permalink
Merge pull request #25 from nesi/agdr-link
Browse files Browse the repository at this point in the history
Add agdr-link partial. Replace github link with it.
  • Loading branch information
natnesi authored Jul 3, 2024
2 parents a2d5c13 + 0d6a5df commit 931a5e6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions overrides/partials/agdr-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<a
href="https://data.agdr.org.nz/"
title="Go To Repository"
target="_blank"
class="md-source"
style="display:flex; align-items: center; flex-direction: row;"
>
<div class="md-icon md-source__icon" >
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368"><path d="M200-40v-40q0-139 58-225.5T418-480q-102-88-160-174.5T200-880v-40h80v40q0 11 .5 20.5T282-840h396q1-10 1.5-19.5t.5-20.5v-40h80v40q0 139-58 225.5T542-480q102 88 160 174.5T760-80v40h-80v-40q0-11-.5-20.5T678-120H282q-1 10-1.5 19.5T280-80v40h-80Zm138-640h284q13-19 22.5-38t17.5-42H298q8 22 17.5 41.5T338-680Zm142 148q20-17 39-34t36-34H405q17 17 36 34t39 34Zm-75 172h150q-17-17-36-34t-39-34q-20 17-39 34t-36 34ZM298-200h364q-8-22-17.5-41.5T622-280H338q-13 19-22.5 38T298-200Z"/></svg>
</div>
<div style="padding: 0 1em 0 0;">
Go To Repository
</div>
<div class="md-icon md-source__icon"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"/></svg></div>
</a>
2 changes: 1 addition & 1 deletion overrides/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{% endif %}
{% if config.repo_url %}
<div class="md-header__source">
{% include "partials/source.html" %}
{% include "partials/agdr-link.html" %}
</div>
{% endif %}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion overrides/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<nav class="{{ class }}" aria-label="{{ lang.t('nav') }}" data-md-level="0">
{% if config.repo_url %}
<div class="md-nav__source">
{% include "partials/source.html" %}
{% include "partials/agdr-link.html" %}
</div>
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
Expand Down

0 comments on commit 931a5e6

Please sign in to comment.