Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add links to banner #55

Merged
merged 9 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cookiecutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ banner:
- url: intro.html
title: Event Jupyter Book
new_window: false
style: btn-primary
- url: https://docs.google.com/forms/d/e/1FAIpQLSdgKaZEi8px6YHt2U2zUkAeExQ_-dGNNj4QFb7oDHXgxygieg/viewform?usp=sf_link
title: Feedback Survey
new_window: true
style: btn-success
- url: https://docs.google.com/forms/d/e/1FAIpQLScQGnGCyWBPncSfYnE0VPWwWWzZwiHZlCWubBjHWGmPzpc82w/viewform?usp=sf_link
title: Demographic Survey
new_window: true
style: btn-warning
image: https://pace.oceansciences.org/images/pace_rotator_life_water_level_2160w_800h.jpg
# The opening session of the event with UTC offset
event_countdown: "2024-08-04T08:30:00-07:00"
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.repo_directory }}/assets/css/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions {{ cookiecutter.repo_directory }}/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ <h1 class="hero-heading mb-2">
{%- if cookiecutter.banner.links %}
<div class="hero-cta">
{%- for link in cookiecutter.banner.links %}
<a class="btn btn-primary btn-lg m-2"
<a class="btn {{ link.style }} btn-lg m-2"
href="{{ link.url }}"
{{ 'target="_blank"' if link.new_window == 'True' else '' }}
{{ 'target="_blank"' if link.new_window else '' }}
>
{{ link.title }}
</a>
Expand Down
Loading