Skip to content

Commit

Permalink
Only show banner on home
Browse files Browse the repository at this point in the history
  • Loading branch information
cazinc committed Mar 14, 2024
1 parent f17a2e0 commit 495d13f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions themes/doi-theme/layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<header>
{{ if eq .RelPermalink "/" }}

{{ partial "home/banner.html" . }}

{{ end }}

<div class="row">
<div class="col logo">
<a href="{{ .Site.BaseURL }}"><img class="header-logo" src="/images/logos/header_logo_cropped.svg" /></a>
Expand Down
2 changes: 1 addition & 1 deletion themes/doi-theme/layouts/partials/home/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ .text | markdownify }}

{{ if .linktext }}
<a href="{{ .linkurl }}">{{ .linktext }}</a> <i class="fa-solid fa-arrow-right-long hover-move-right"></i>
<a href="{{ .linkurl }}">{{ .linktext | markdownify }}</a> <i class="fa-solid fa-arrow-right-long hover-move-right"></i>
{{ end }}
</p>
</section>
Expand Down

0 comments on commit 495d13f

Please sign in to comment.