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
|
titel: Temp
|
||||||
naam: Temp
|
naam: Temp
|
||||||
tags: tem,p
|
tags: tem,p
|
||||||
konvent: TK
|
konvent: tk
|
||||||
bestuur:
|
bestuur:
|
||||||
- functie: Voorzitter
|
- functie: Voorzitter
|
||||||
naam: /tmp
|
naam: /tmp
|
||||||
|
|
|
@ -3,7 +3,7 @@ titel: VVN
|
||||||
naam: VVN
|
naam: VVN
|
||||||
themas:
|
themas:
|
||||||
- wetenschap-techniek
|
- wetenschap-techniek
|
||||||
konvent: WVK
|
konvent: wvk
|
||||||
logo: placeholder.png
|
logo: placeholder.png
|
||||||
contact: some_email@some_domain.com
|
contact: some_email@some_domain.com
|
||||||
website: www.somewebsite.com
|
website: www.somewebsite.com
|
||||||
|
|
|
@ -2,4 +2,7 @@
|
||||||
|
|
||||||
bundle exec nanoc
|
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>
|
<ul>
|
||||||
<% for konvent in konvents %>
|
<% for konvent in konvents %>
|
||||||
<%= "<img src=/assets/konventen/" ++ konvent.tr(" ", "_") ++ ".png alt=" ++ konvent %>
|
<%= "<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 %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Helpers for navbar partial
|
# Helpers for verenigingen
|
||||||
module VerenigingenLists
|
module VerenigingenHelper
|
||||||
def current_child_of(item)
|
|
||||||
child_of(item, @item)
|
|
||||||
end
|
|
||||||
|
|
||||||
def child_of(parent, child)
|
|
||||||
children_of(parent).include?(child)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns every navigable item
|
# Returns every navigable item
|
||||||
# A navigable item contains the :navigable attribute
|
# A navigable item contains the :navigable attribute
|
||||||
# Optionally contains an order attribute, determining the order in the navbar
|
# 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 Nanoc::Helpers::ChildParent
|
||||||
|
|
||||||
use_helper NavigationHelper
|
use_helper NavigationHelper
|
||||||
use_helper VerenigingenLists
|
use_helper VerenigingenHelper
|
||||||
use_helper FontAwesomeHelper
|
use_helper FontAwesomeHelper
|
Loading…
Reference in a new issue