Merge pull request #10 from ZeusWPI/verenigingen-webpage
Fixes op de overzichtpagina
This commit is contained in:
commit
b2c08ae4a5
6 changed files with 10 additions and 15 deletions
|
@ -2,7 +2,7 @@
|
|||
titel: Temp
|
||||
naam: Temp
|
||||
tags: tem,p
|
||||
konvent: TK
|
||||
konvent: tk
|
||||
bestuur:
|
||||
- functie: Voorzitter
|
||||
naam: /tmp
|
||||
|
|
|
@ -3,7 +3,7 @@ titel: VVN
|
|||
naam: VVN
|
||||
themas:
|
||||
- wetenschap-techniek
|
||||
konvent: WVK
|
||||
konvent: wvk
|
||||
logo: placeholder.png
|
||||
contact: some_email@some_domain.com
|
||||
website: www.somewebsite.com
|
||||
|
|
|
@ -2,4 +2,7 @@
|
|||
|
||||
bundle exec nanoc
|
||||
|
||||
scp -rP 2222 output/ durfdoen@157.193.231.142:/home/durfdoen/public
|
||||
date="`date --iso-8601=seconds`"
|
||||
|
||||
scp -rP 2222 output/ "durfdoen@157.193.231.142:/home/durfdoen/builds/$date" &&
|
||||
ssh durfdoen@157.193.231.142 -p 2222 "rm /home/durfdoen/public && ln -s builds/$date /home/durfdoen/public"
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<ul>
|
||||
<% for konvent in konvents %>
|
||||
<%= "<img src=/assets/konventen/" ++ konvent.tr(" ", "_") ++ ".png alt=" ++ konvent %>
|
||||
<li> <%= link_to(konvent, "/thema/"++konvent.tr(" ", "_")) %> </li>
|
||||
<li> <%= link_to(konvent, "/konventen/"++konvent.tr(" ", "_")++".html") %> </li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Helpers for navbar partial
|
||||
module VerenigingenLists
|
||||
def current_child_of(item)
|
||||
child_of(item, @item)
|
||||
end
|
||||
|
||||
def child_of(parent, child)
|
||||
children_of(parent).include?(child)
|
||||
end
|
||||
|
||||
# Helpers for verenigingen
|
||||
module VerenigingenHelper
|
||||
# Returns every navigable item
|
||||
# A navigable item contains the :navigable attribute
|
||||
# Optionally contains an order attribute, determining the order in the navbar
|
||||
|
|
|
@ -3,5 +3,5 @@ use_helper Nanoc::Helpers::Rendering
|
|||
use_helper Nanoc::Helpers::ChildParent
|
||||
|
||||
use_helper NavigationHelper
|
||||
use_helper VerenigingenLists
|
||||
use_helper VerenigingenHelper
|
||||
use_helper FontAwesomeHelper
|
Loading…
Reference in a new issue