adding color to md
This commit is contained in:
parent
3030d6a1b9
commit
018c6d9928
4 changed files with 9 additions and 6 deletions
|
@ -20,7 +20,8 @@ order: 20
|
|||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
location: event[:location],
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted" %>
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted",
|
||||
color: event[:color] %>
|
||||
</div>
|
||||
<!-- Render old event_preview when using subevent, for now not used
|
||||
<% else %>
|
||||
|
@ -50,7 +51,8 @@ order: 20
|
|||
article: event,
|
||||
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
||||
location: event[:location],
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted" %>
|
||||
htmlclass: event[:banner].nil? ? "" : "highlighted",
|
||||
color: event[:color] %>
|
||||
</div>
|
||||
<!-- Render old event_preview when using subevent, for now not used
|
||||
<% else %>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
title: RUST les
|
||||
image: https://zeus.ugent.be/zeuswpi/mlr3Zkbk.png
|
||||
banner: http://www.awakenedlives.com/wp-content/uploads/2013/09/Rust-banner-with-light.png
|
||||
description: Leer RUST kennen, een taal die je in de toekomst nog veel zult zien!
|
||||
created_at: 11-10-2016
|
||||
time: 26-10-2016 19:00
|
||||
location: PC lokaal Turing (1e verdiep) , S9
|
||||
locationlink: Sterre,Ghent Belgium
|
||||
color: "#003399"
|
||||
---
|
||||
|
||||
He!
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
title: Bezoek datacenter
|
||||
image: https://zeus.ugent.be/zeuswpi/_Lv_m5Ng.jpeg
|
||||
banner: http://www.foneo-datacenter.eu/images/banner_ownership_eyecatcher.jpg
|
||||
description: Zeus bezoekt het datacenter en de supercomputer in S10!
|
||||
created_at: 3-10-2016
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg <%= @htmlclass %>"
|
||||
style="background-image:url('<%= @article[:banner] %>');">
|
||||
<!--<a href="<%= @article.path %>" class="tile is-child box backgroundimg <%= @htmlclass %>"
|
||||
style="background-image:url('<%= @article[:banner] %>');">-->
|
||||
<a href="<%= @article.path %>" class="tile is-child box backgroundimg highlighted"
|
||||
style="background-color:<%= @article[:color] %>;">
|
||||
<div class="content" >
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
|
|
Loading…
Reference in a new issue