Skip to content

Commit

Permalink
Merge branch 'develop' into contact-and-national-portal-updates-
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 authored Nov 23, 2023
2 parents 7b86152 + d62c9e2 commit 4900713
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: HUGO_ENV_ARG=${{ github.ref_name == 'main' && 'production' || github.event_name == 'release' && 'production' || 'development' }}
build-args: HUGO_ENV_ARG=${{ github.event_name == 'release' && format('{0}-{1}', 'production', github.ref_name)
|| github.ref_name == 'main' && format('{0}-{1}', 'production', github.sha)
|| format('{0}-{1}', 'development', github.sha) }}
18 changes: 15 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<footer class="container border-top mt-5 mb-5">
<footer class="container border-top mt-5 mb-2">
<div class="row border-bottom">

<!-- About section -->
Expand All @@ -9,7 +9,6 @@ <h2 class="small text-uppercase text-black-50">{{ if eq $.Site.Language.Language
{{ range .Site.Menus.footer_about }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Name }}</a></li>
{{ end }}
<li><a href="https://github.com/ScilifelabDataCentre/covid-portal/tree/develop">{{ if eq $.Site.Language.LanguageName "Svenska" }}Webbplatskod{{ else }}Website code{{ end }} (Github)</a></li>
</ul>
</div>

Expand All @@ -18,7 +17,7 @@ <h2 class="small text-uppercase text-black-50">{{ if eq $.Site.Language.Language
<div class="col-md px-5 px-md-2">
<h2 class="small text-uppercase text-black-50">Other sections</h2>
<ul class="list-unstyled">
<li><a href="/resources/">Resources</a></li>
<li><a href="/resources/">Pandemic Preparedness</a></li>
<li><a href="/pathogens/">Emerging Pathogens</a></li>
{{ range .Site.Menus.research_menu }}
<li><a href="{{ .Page.RelPermalink }}">{{ .Name }}</a></li>
Expand All @@ -44,6 +43,7 @@ <h2 class="small text-uppercase text-black-50">
<li><a href="/sv/biobanks/">Provsamlingsregistret</a></li>
{{ end }}
</ul>
{{ if eq $.Site.Language.LanguageName "Svenska" }}</div><div class="col-md px-5 px-md-2">{{ end }}
<h2 class="small text-uppercase text-black-50">{{ if eq $.Site.Language.LanguageName "Svenska" }}Följ
oss{{ else }}Connect{{ end }}</h2>
<div>
Expand All @@ -66,6 +66,18 @@ <h2 class="small text-uppercase text-black-50">{{ if eq $.Site.Language.Language
</div>

</div>

<!-- The hugo env value is passed via github action, during image building -->
{{ $env_info := split hugo.Environment "-" }}
{{ $git_sha := index $env_info 1 }}
{{ $code_version := cond (strings.HasPrefix $git_sha "v") $git_sha (substr $git_sha 0 7) }}
<div class="d-flex justify-content-center small mt-2">
<a target="_blank"
href="https://github.com/ScilifelabDataCentre/covid-portal{{ with $code_version }}/tree/{{ $code_version }}{{ end }}">
{{ if eq $.Site.Language.LanguageName "Svenska" }}Källkod finns tillgänglig på GitHub{{ else }}Website code is available on Github{{ end }}
</a>
{{ with $code_version }}<span class="ps-1 text-black-50">({{ $code_version }})</span>{{ end }}
</div>
</footer>

<!-- Bootstrap Bundle with Popper -->
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
</script>
{{ end }}

{{ if eq hugo.Environment "production" }}
{{ if strings.HasPrefix hugo.Environment "production" }}
<!-- Schema.org data -->
{{ partial "schema.html" . }}
{{ end }}
Expand Down
Binary file modified static/img/biobanks/homepage_shot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4900713

Please sign in to comment.