Skip to content

Commit

Permalink
Make titles on the homepage clickable issue 584
Browse files Browse the repository at this point in the history
  • Loading branch information
Z03-L committed Nov 21, 2023
1 parent d35acf3 commit 6bb8159
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions content/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="tile is-child">
<div class="block has-text-centered">
<span class="title is-2-responsive underline--magical">
<a href="https://zeus.ugent.be/events/<%= current_academic_year %>" target="_blank" style="color: black; text-decoration: none;">
<a href="https://zeus.ugent.be/events/<%= current_academic_year %>" style="color: black; text-decoration: none;">
Upcoming Events
</a>
</span>
Expand All @@ -46,7 +46,7 @@
<div class="tile is-child">
<div class="block has-text-centered">
<span class="title is-2-responsive underline--magical">
<a href="https://gamification.zeus.gent" target="_blank" style="color: black; text-decoration: none;">
<a href="https://gamification.zeus.gent" style="color: black; text-decoration: none;">
Top Coders
</a>
</span>
Expand All @@ -69,7 +69,7 @@

<div class="block has-text-centered">
<span class="title is-2-responsive underline--magical">
<a href="https://zeus.ugent.be/events/<%= current_academic_year %>" target="_blank" style="color: black; text-decoration: none;">
<a href="https://zeus.ugent.be/events/<%= current_academic_year %>" style="color: black; text-decoration: none;">
Previous Events
</a>
</span>
Expand All @@ -85,7 +85,7 @@
<div class="tile is-child">
<div class='content has-text-centered box'>
<h2>
<a href="https://zeus.ugent.be/about/about/" target="_blank" style="color: black; text-decoration: none;">
<a href="https://zeus.ugent.be/about/about/" style="color: black; text-decoration: none;">
About Zeus WPI
</a>
</h2>
Expand All @@ -99,7 +99,7 @@
</div>
<div class="block has-text-centered">
<span class="title is-2-responsive underline--magical">
<a href="https://zeus.ugent.be/blog/<%= current_academic_year %>" target="_blank" style="color: black; text-decoration: none;">
<a href="https://zeus.ugent.be/blog/<%= current_academic_year %>" style="color: black; text-decoration: none;">
Blogpost
</a>
</span>
Expand Down
4 changes: 2 additions & 2 deletions lib/helpers/blog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def figure(img_url, caption, alt = nil, img_class: nil)
end

def current_academic_year
year = Time.current.year
month = Time.current.month
year = Time.now.year
month = Time.now.month
start_year = month < 9 ? year - 1 : year
"#{start_year % 100}-#{(start_year + 1) % 100}"
end
Expand Down

0 comments on commit 6bb8159

Please sign in to comment.