more meetups layouts and fixed content-area
Αυτό το commit περιλαμβάνεται σε:
γονέας
21fa87934a
commit
e76cacf96c
6 αρχεία άλλαξαν με 36 προσθήκες και 13 διαγραφές
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: "Hellug Meetups 2019"
|
title: "Hellug Meetups 2019"
|
||||||
layout: "news"
|
layout: "meetups"
|
||||||
bannertemplate: "hellug-banner.html"
|
bannertemplate: "hellug-banner.html"
|
||||||
date: 2019-05-31
|
date: 2019-05-31
|
||||||
category_title: Δράσεις
|
category_title: Δράσεις
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{{ $articlelimit := 5 }}
|
{{ $articlelimit := 5 }}
|
||||||
{{ $articlenum := len .Pages }}
|
{{ $articlenum := len .Pages }}
|
||||||
{{ $counter := 0 }}
|
{{ $counter := 0 }}
|
||||||
{{ $lastyear := (sub now.Unix 31536000 ) }}
|
{{ $recentpostlimit := (sub now.Unix 31536000 ) }}
|
||||||
{{ range first $articlelimit .Pages }}
|
{{ range first $articlelimit .Pages }}
|
||||||
{{ $counter = add $counter 1 }}
|
{{ $counter = add $counter 1 }}
|
||||||
{{ if eq $counter 1 }}
|
{{ if eq $counter 1 }}
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
||||||
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
||||||
{{ if lt $lastyear .Date.Unix }}
|
{{ if lt $recentpostlimit .Date.Unix }}
|
||||||
<span class="label label-default">Nέο</span></h3>
|
<span class="label label-default">Nέο</span></h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
||||||
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
||||||
{{ if lt $lastyear .Date.Unix }}
|
{{ if lt $recentpostlimit .Date.Unix }}
|
||||||
<span class="label label-default">Nέο</span></h3>
|
<span class="label label-default">Nέο</span></h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,13 +13,23 @@
|
||||||
|
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span><hr>
|
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span><hr>
|
||||||
|
<ul class="list-inline">
|
||||||
|
{{ if .Params.meetupdate }}
|
||||||
|
<li class="list-inline-item"><b>📅</b> {{ dateFormat "Monday" .Params.meetupdate }}</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Params.meetupdate }}
|
||||||
|
<li class="list-inline-item"><b>⏰</b> {{ dateFormat "15:04" .Params.meetupdate }}</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Params.meetuplocation }}
|
||||||
|
<li class="list-inline-item"><b>🏛</b> {{ .Params.meetuplocation }}</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
<div id="content-area">
|
<div id="content-area">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{.Content}}
|
{{.Content}}
|
||||||
|
|
||||||
</div></div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Column 2 start -->
|
<!-- Column 2 start -->
|
||||||
{{ partial "column2.html" . }}
|
{{ partial "column2.html" . }}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="well well-lg">
|
<div class="well well-lg">
|
||||||
{{ $counter := 0 }}
|
{{ $counter := 0 }}
|
||||||
|
|
||||||
{{ $lastyear := (sub now.Unix 31536000 ) }}
|
{{ $recentpostlimit := (sub now.Unix 2592000 ) }}
|
||||||
{{ range first 5 .Pages }}
|
{{ range first 5 .Pages }}
|
||||||
{{ $counter = add $counter 1 }}
|
{{ $counter = add $counter 1 }}
|
||||||
{{ if eq $counter 1 }}
|
{{ if eq $counter 1 }}
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
||||||
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
||||||
{{ if lt $lastyear .Date.Unix }}
|
{{ if lt $recentpostlimit .Date.Unix }}
|
||||||
<span class="label label-default">Nέο</span></h3>
|
<span class="label label-default">Nέο</span></h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
|
||||||
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
|
||||||
{{ if lt $lastyear .Date.Unix }}
|
{{ if lt $recentpostlimit .Date.Unix }}
|
||||||
<span class="label label-default">Nέο</span></h3>
|
<span class="label label-default">Nέο</span></h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
{{ range first 1 (index .Site.Taxonomies.draseis "meetups") }}
|
{{ range first 1 (index .Site.Taxonomies.draseis "meetups") }}
|
||||||
{{ if .Params.meetupdate }}
|
{{ if .Params.meetupdate }}
|
||||||
{{ $meetuptime := time .Params.meetupdate }}
|
{{ $meetuptime := time .Params.meetupdate }}
|
||||||
{{ if ge $meetuptime.Unix now.Unix }}
|
{{ $meetuptimeunix := add $meetuptime.Unix 86400 }}
|
||||||
|
{{ if ge $meetuptimeunix now.Unix }}
|
||||||
{{ $counter = add $counter 1 }}
|
{{ $counter = add $counter 1 }}
|
||||||
<a class="list-group-item" href="{{ .Permalink}}">
|
<a class="list-group-item" href="{{ .Permalink}}">
|
||||||
<span class="label label-default">Nέο</span>
|
<span class="label label-default">Nέο</span>
|
||||||
|
@ -23,12 +24,18 @@
|
||||||
<span class="list-group-item active"> Εκδηλώσεις </span>
|
<span class="list-group-item active"> Εκδηλώσεις </span>
|
||||||
|
|
||||||
{{ $counter = 0 }}
|
{{ $counter = 0 }}
|
||||||
|
{{ $newlimit := (sub now.Unix 604800 ) }}
|
||||||
{{ range first 5 (index .Site.Taxonomies.draseis "events") }}
|
{{ range first 5 (index .Site.Taxonomies.draseis "events") }}
|
||||||
{{ if .Params.eventdate }}
|
{{ if .Params.eventdate }}
|
||||||
{{ $eventtime := time .Params.eventdate }}
|
{{ $eventtime := time .Params.eventdate }}
|
||||||
{{ if ge $eventtime.Unix now.Unix }}
|
{{ if ge $eventtime.Unix now.Unix }}
|
||||||
{{ $counter = add $counter 1 }}
|
{{ $counter = add $counter 1 }}
|
||||||
<a class="list-group-item" href="{{ .Permalink }}">{{ dateFormat "02/01/2006" $eventtime }} - {{ .Title }}</a>
|
<a class="list-group-item" href="{{ .Permalink }}">
|
||||||
|
{{ if lt .Date.Unix $newlimit }}
|
||||||
|
<span class="label label-default">Nέο</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ dateFormat "02/01/2006" $eventtime }} - {{ .Title }}
|
||||||
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
float:left;
|
float:left;
|
||||||
min-width:400px;
|
min-width:400px;
|
||||||
width:70%;
|
width:70%;
|
||||||
|
|
||||||
}
|
}
|
||||||
#column2
|
#column2
|
||||||
{
|
{
|
||||||
|
@ -95,6 +94,13 @@ div.footer ul.site-map ul li {
|
||||||
text-shadow:;
|
text-shadow:;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content-area
|
||||||
|
{
|
||||||
|
margin-left: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
span.article-date {
|
span.article-date {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα