Skip to content

Commit

Permalink
header: add variables for header buttons and add C&S short url (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom authored Mar 12, 2024
1 parent d589494 commit 2b86a57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions src/_data/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ navigation:
tag: conferences
- text: Newsletters
tag: newsletter
buttons:
primary:
text: Signup
link: https://join.redbrick.dcu.ie
secondary:
text: Discord
link: https://discord.redbrick.dcu.ie
drawer: navigation
home:
hero:
Expand All @@ -25,7 +32,7 @@ home:
buttons:
primary:
text: Signup
link: https://dcuclubsandsocs.ie/society/redbrick
link: https://join.redbrick.dcu.ie
secondary:
text: Discord
link: https://discord.redbrick.dcu.ie
Expand All @@ -34,7 +41,7 @@ home:
body: Redbrick hosts events for everything tech related - from computer programming tutorials to workshops with multinational tech companies.
button:
text: Signup
link: https://dcuclubsandsocs.ie/society/redbrick
link: https://join.redbrick.dcu.ie
committee:
- name: James Hackett
position: 🪑 Chair
Expand Down
8 changes: 4 additions & 4 deletions src/_includes/global/header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
{% include "global/theme-picker.njk" %}
</template>
</is-land>
<a class="btn btn-primary" href="https://dcuclubsandsocs.ie/society/redbrick" rel="noreferrer" target="_blank">
Signup
<a class="btn btn-primary" href="{{ site.navigation.buttons.primary.link }}" rel="noreferrer" target="_blank">
{{ site.navigation.buttons.primary.text }}
</a>
<a class="btn btn-neutral" href="https://discord.redbrick.dcu.ie" rel="noreferrer" target="_blank">
Discord
<a class="btn btn-neutral" href="{{ site.navigation.buttons.secondary.link }}" rel="noreferrer" target="_blank">
{{ site.navigation.buttons.secondary.text }}
</a>
</div>
</div>
Expand Down

0 comments on commit 2b86a57

Please sign in to comment.