Skip to content

Add a button to link to Gysela-X++ on GitLab#20

Merged
EmilyBourne merged 3 commits intomainfrom
ebourne_gitlab_button
Feb 6, 2026
Merged

Add a button to link to Gysela-X++ on GitLab#20
EmilyBourne merged 3 commits intomainfrom
ebourne_gitlab_button

Conversation

@EmilyBourne
Copy link
Copy Markdown
Member

@EmilyBourne EmilyBourne commented Feb 6, 2026

This modification produces the following updated hero banner:
image

Comment on lines +51 to +69
{{/* Second call-to-action link */}}
{{ if $page.Params.cta_gyselax.url }}
{{ $pack := or $page.Params.cta.icon_pack "fas" }}
{{ $pack_prefix := $pack }}
{{ if in (slice "fab" "fas" "far" "fal") $pack }}
{{ $pack_prefix = "fa" }}
{{ end }}
{{ $link := $page.Params.cta_gyselax.url }}
{{ $scheme := (urls.Parse $link).Scheme }}
{{ $target := "" }}
{{ if not $scheme }}
{{ $link = $link | relLangURL }}
{{ else if in (slice "http" "https") $scheme }}
{{ $target = "target=\"_blank\" rel=\"noopener\"" }}
{{ end }}
<p class="cta-gyselax-btns">
<a href="{{ $link | safeURL }}" {{ $target | safeHTMLAttr }} class="btn {{if $bg.text_color_light}}btn-light{{else}}btn-primary{{end}} btn-lg mb-3 mb-md-1">{{ if $page.Params.cta_gyselax.icon }}<i class="{{ $pack }} {{ $pack_prefix }}-{{ $page.Params.cta_gyselax.icon }} pr-1" aria-hidden="true"></i>{{end}}{{ $page.Params.cta_gyselax.label | markdownify | emojify | safeHTML }}</a>
</p>
{{ end }}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new code in this file

@EmilyBourne EmilyBourne requested a review from obrejank February 6, 2026 14:25
@EmilyBourne EmilyBourne marked this pull request as ready for review February 6, 2026 14:43
@EmilyBourne EmilyBourne merged commit 9404483 into main Feb 6, 2026
1 check passed
@EmilyBourne EmilyBourne deleted the ebourne_gitlab_button branch February 6, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants