refactoring of code to support themes and new hellug theme
Κάποιοι έλεγχοι απέτυχαν
Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit

Αυτό το commit περιλαμβάνεται σε:
infl00p 2022-10-27 18:05:10 +03:00
γονέας 781ede797c
commit acfecc9a4d
119 αρχεία άλλαξαν με 3973 προσθήκες και 7 διαγραφές

9
themes/hellug-minimal-2/layouts/404.html Κανονικό αρχείο

@ -0,0 +1,9 @@
{{ partial "head.html" . }}
<div>
<img src="/media/sad-tux.png">
<h2>404 Η σελίδα δε βρέθηκε - Page not found</h2>
<p>Αν βρεθήκατε εδώ αφού ακολουθήσατε κάποιο σύνδεσμο παρακαλούμε επικοινωνήστε με τους διαχειριστές της ιστοσελίδας μέσω του <a href="https://forum.hellug.gr">forum</a> του Hellug και ενημερώστε μας για το περιεχόμενο που λείπει</p>
<p>If you came here by following a link please contact the site admins within the <a href="https://forum.hellug.gr">forum</a> of Hellug to inform us of the missing content</p>
<h1><a href="{{ "" | relURL }}">Αρχική - Home</a></h1>
</div>

41
themes/hellug-minimal-2/layouts/_default/events.html Κανονικό αρχείο

@ -0,0 +1,41 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial .Params.bannertemplate . }}
</div>
<div id="column1">
{{ partial "breadcrump.html"}}
<h1 class="title">{{ .Title }}</h1>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span><hr>
<ul class="list-inline">
{{ if .Params.eventdate }}
<li class="list-inline-item"><b>📅</b> {{ dateFormat "Monday" .Params.eventdate }}</li>
{{ end }}
{{ if .Params.eventdate }}
<li class="list-inline-item"><b></b> {{ dateFormat "15:04" .Params.eventdate }}</li>
{{ end }}
{{ if .Params.eventlocation }}
<li class="list-inline-item"><b>🏛</b> {{ .Params.eventlocation }}</li>
{{ end }}
</ul>
<div id="content-area">
{{.Content}}
</div></div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

@ -0,0 +1,8 @@
!{{ .Title }}
{{ .RawContent }}
{{ range .Pages.ByPublishDate.Reverse }}
0{{ .Title }} {{ replace .RelPermalink "/gopher" "" 1}} hellug.gr 70
{{ end }}

91
themes/hellug-minimal-2/layouts/_default/list.html Κανονικό αρχείο

@ -0,0 +1,91 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ if .Params.bannertemplate }}
{{ partial .Params.bannertemplate . }}
{{else}}
{{ partial "hellug-banner.html" . }}
{{end}}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 5 }}
{{ $articlenum := len .Pages }}
{{ $counter := 0 }}
{{ $recentpostlimit := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $recentpostlimit .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
<!-- First Post End -->
{{else}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $recentpostlimit .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
{{ end }}
<!-- End Articles Section -->
{{ if gt $articlenum $articlelimit }}
<!-- Older Articles Summary -->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Παλαιότερα άρθρα</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span> </li>
{{ end }}
</ul>
</div>
</div>
<!-- End Older Articles -->
{{ end }}
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

@ -0,0 +1,40 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial .Params.bannertemplate . }}
</div>
<div id="column1">
{{ partial "breadcrump.html"}}
<h1 class="title">{{ .Title }}</h1>
<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">
{{.Content}}
</div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

30
themes/hellug-minimal-2/layouts/_default/news.html Κανονικό αρχείο

@ -0,0 +1,30 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial .Params.bannertemplate . }}
</div>
<div id="column1">
{{ partial "breadcrump.html"}}
<h1 class="title">{{ .Title }}</h1>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span><hr>
<div id="content-area">
{{.Content}}
</div></div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

30
themes/hellug-minimal-2/layouts/_default/pages.gmi Κανονικό αρχείο

@ -0,0 +1,30 @@
# {{ .Title }}{{ $scratch := newScratch }}
{{ $content := .RawContent -}}
{{ $content := $content | replaceRE `</tr>` "\n" -}}
{{ $content := $content | replaceRE `<br/??>` "\n" -}}
{{ $content := $content | replaceRE `<br??/??>` "\n" -}}
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
{{ $content := $content | plainify -}}
{{ $content := $content | replaceRE `#### ` "### " -}}
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
{{ $content := $content | replaceRE `\[\^(.+?)\]:?` "" -}}
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
{{ $content := $content | replaceRE "([^`])<.*?>([^`])" "$1$2" -}}
{{ $content := $content | replaceRE `\n\n!\[.*\]\((.+?) \"(.+?)\"\)` "\n\n=> $1 Image: $2" -}}
{{ $content := $content | replaceRE `\n\n!\[.*]\((.+?)\)` "\n\n=> $1 Embedded Image: $1" -}}
{{ $links := findRE `\n=> ` $content }}{{ $scratch.Set "ref" (add (len $links) 1) }}
{{ $refs := findRE `\[.+?\]\(.+?\)` $content }}
{{ $scratch.Set "content" $content }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $contentInLoop := $scratch.Get "content" }}{{ $url := (printf "%s #%d" . $ref) }}{{ $contentInLoop := replace $contentInLoop . $url -}}{{ $scratch.Set "content" $contentInLoop }}{{ $scratch.Set "ref" (add $ref 1) }}{{ end }}{{ $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}}
{{ $content | safeHTML }}
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}
## Παραπομπές
{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}
---{{end}}
=> / Αρχική
=> https://www.hellug.gr{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} Έκδοση HTML - Web Page

35
themes/hellug-minimal-2/layouts/_default/pages.html Κανονικό αρχείο

@ -0,0 +1,35 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
{{ if .Params.bannertemplate }}
{{ partial .Params.bannertemplate . }}
{{else}}
{{ partial "hellug-banner.html" . }}
{{end}}
<div id="column1">
<div style="padding-left:10px;">
<div class="section">
{{ partial "breadcrump.html"}}
<h1 class="title">{{ .Title }}</h1>
<hr>
<div id="content-area">
{{.Content}}
</div>
</div>
</div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

33
themes/hellug-minimal-2/layouts/_default/single.gmi Κανονικό αρχείο

@ -0,0 +1,33 @@
# {{ .Title }} - {{ dateFormat "02/01/2006" .Date }}{{ $scratch := newScratch }}
{{ $content := .RawContent -}}
{{ $content := $content | replaceRE "<br/??>" "\n" -}}
{{ $content := $content | replaceRE "<br??/??>" "\n" -}}
{{ $content := $content | replaceRE "<tr>" "\n" -}}
{{ $content := $content | replaceRE `<a .*href="(.+?)".*>(.+?)</a>` "[$2]($1)" -}}
{{ $content := $content | plainify -}}
{{ $content := $content | replaceRE `#### ` "### " -}}
{{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}}
{{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}}
{{ $content := $content | replaceRE `\[\^(.+?)\]:?` "" -}}
{{ $content := $content | replaceRE `\sgemini://(\S*)` " [gemini://$1](gemini://$1)" -}}
{{ $content := $content | replaceRE `([^"])<.*?>([^"])` "$1$2" -}}
{{ $content := $content | replaceRE `\n\n!\[.*\]\((.+?) \"(.+?)\"\)` "\n\n=> $1 Image: $2" -}}
{{ $content := $content | replaceRE `\n\n!\[.*]\((.+?)\)` "\n\n=> $1 Embedded Image: $1" -}}
{{ $links := findRE "\n=> " $content }}{{ $scratch.Set "ref" (add (len $links) 1) }}
{{ $refs := findRE `\[.+?\]\(.+?\)` $content }}
{{ $scratch.Set "content" $content }}{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $contentInLoop := $scratch.Get "content" }}{{ $url := (printf "%s #%d" . $ref) }}{{ $contentInLoop := replace $contentInLoop . $url -}}{{ $scratch.Set "content" $contentInLoop }}{{ $scratch.Set "ref" (add $ref 1) }}{{ end }}{{ $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}}
{{ $content | safeHTML }}
---
{{ $scratch.Set "ref" (add (len $links) 1) }}{{ if $refs }}
## Παραπομπές
{{ range $refs }}{{ $ref := $scratch.Get "ref" }}{{ $url := (printf "%s #%d" . $ref) }}
=> {{ $url | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$2 [$3] $1 ($2)" -}}
{{ $scratch.Set "ref" (add $ref 1) }}{{ end}}---{{end}}
{{ if .Next }}=> {{ replace .Next.RelPermalink "/gemini" "" 1}} ← Νεότερο: {{ dateFormat "02/01/2006" .Next.Date }} - {{ .Next.Title }}{{ end }}
{{ if .Prev -}}=> {{ replace .Prev.RelPermalink "/gemini" "" 1}} → Παλαιότερο: {{ dateFormat "02/01/2006" .Prev.Date }} - {{ .Prev.Title }}{{- end }}
=> / Αρχική
=> https://www.hellug.gr{{ replace (replace .RelPermalink "/gemini" "" 1) "index.gmi" "" }} Έκδοση HTML - Web Page

@ -0,0 +1,4 @@
# {{ .Title }}
{{ .Date.Format (.Site.Params.dateform | default "January 2006") }}
{{ .RawContent }}

23
themes/hellug-minimal-2/layouts/_default/single.html Κανονικό αρχείο

@ -0,0 +1,23 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial .Params.bannertemplate . }}
</div>
<div id="column1">
{{.Content}}
</div></div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

87
themes/hellug-minimal-2/layouts/_default/terms.html Κανονικό αρχείο

@ -0,0 +1,87 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial "hellug-banner.html" . }}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 5 }}
{{ $articlenum := len .Pages }}
{{ $counter := 0 }}
{{ $lastyear := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
<!-- First Post End -->
{{else}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
{{ end }}
<!-- End Articles Section -->
<!-- Older Articles Summary -->
{{ if gt $articlenum $articlelimit }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Παλαιότερα άρθρα</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span> </li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
<!-- End Older Articles -->
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

36
themes/hellug-minimal-2/layouts/_default/tests.html Κανονικό αρχείο

@ -0,0 +1,36 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
{{ if .Params.bannertemplate }}
{{ partial .Params.bannertemplate . }}
{{else}}
{{ partial "hellug-banner.html" . }}
{{end}}
<div id="column1">
<div style="padding-left:10px;">
<div class="section">
{{ partial "breadcrump.html"}}
<h1 class="title">{{ .Title }}</h1>
<hr>
<div id="content-area">
{{.Content}}
</div>
</div>
</div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

@ -0,0 +1,87 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial "hellug-banner.html" . }}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 5 }}
{{ $articlenum := len .Pages }}
{{ $counter := 0 }}
{{ $lastyear := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
<!-- First Post End -->
{{else}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
{{ end }}
<!-- End Articles Section -->
<!-- Older Articles Summary -->
{{ if gt $articlenum $articlelimit }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Παλαιότερα άρθρα</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span> </li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
<!-- End Older Articles -->
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

@ -0,0 +1,87 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial "hellug-banner.html" . }}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 5 }}
{{ $articlenum := len .Pages }}
{{ $counter := 0 }}
{{ $lastyear := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
<!-- First Post End -->
{{else}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
{{ end }}
<!-- End Articles Section -->
<!-- Older Articles Summary -->
{{ if gt $articlenum $articlelimit }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Παλαιότερα άρθρα</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span> </li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
<!-- End Older Articles -->
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

87
themes/hellug-minimal-2/layouts/draseis/list.html Κανονικό αρχείο

@ -0,0 +1,87 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ partial "hellug-banner.html" . }}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 5 }}
{{ $articlenum := len .Pages }}
{{ $counter := 0 }}
{{ $lastyear := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
<!-- First Post End -->
{{else}}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
{{ end }}
<!-- End Articles Section -->
<!-- Older Articles Summary -->
{{ if gt $articlenum $articlelimit }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Παλαιότερα άρθρα</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
<span class="article-date">{{ dateFormat "02/01/2006" .Date }}</span> </li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
<!-- End Older Articles -->
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

67
themes/hellug-minimal-2/layouts/draseis/terms.html Κανονικό αρχείο

@ -0,0 +1,67 @@
{{ partial "head.html" . }}
<!-- Header Start -->
{{ partial "header.html" . }}
<!-- Header End -->
<div class="pagewrap">
<div align="center" style="margin:4px;">
{{ if .Params.bannertemplate }}
{{ partial .Params.bannertemplate . }}
{{else}}
{{ partial "hellug-banner.html" . }}
{{end}}
</div>
<div id="column1">
{{.Content}}
<!-- Articles Section -->
<div class="well well-lg">
{{ $articlelimit := 10 }}
{{ $articlenum := len .Pages }}
{{ $lastyear := (sub now.Unix 31536000 ) }}
{{ range first $articlelimit .Pages }}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><a href="{{.Permalink}}">{{ .Title }}</a>
{{ if lt $lastyear .Date.Unix }}
<span class="label label-default">ο</span></h3>
{{ end }}
</div>
<div class="panel-body">
{{ .Summary }}
<p><a href="{{.Permalink}}" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-zoom-in"></span>Περισσότερα...</a>
</p>
</div>
</div>
{{ end }}
<!-- End Articles Section -->
{{ if gt $articlenum $articlelimit }}
<!-- Older Articles Summary -->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Άλλες Κατηγορίες</a>
</div>
<div class="panel-body">
<ul>
{{ range after 10 .Pages }}
<li><a href="{{.Permalink}}">{{ .Title }}</a>
{{ end }}
</ul>
</div>
</div>
<!-- End Older Articles -->
{{ end }}
</div></div>
</div>
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
</div>
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

42
themes/hellug-minimal-2/layouts/index.html Κανονικό αρχείο

@ -0,0 +1,42 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
<!-- Main View -->
{{.Content}}
<!-- Articles Section -->
{{ $counter := 0 }}
{{ $pages := .Site.RegularPages }}
{{ $recentpostlimit := (sub now.Unix 2592000 ) }}
{{ range first 5 $pages }}
{{ $counter = add $counter 1 }}
{{ if eq $counter 1 }}
<!-- First Post -->
<h3>
<a href="{{.Permalink}}">{{ .Title }}</a> {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }}Nέο
{{ end }}
</h3>
<p>{{ .Summary | plainify | safeHTML }}</p>
<!-- First Post End -->
{{ else }}
<h3><a href="{{.Permalink}}">{{ .Title }}</a>
{{ dateFormat "02/01/2006" .Date }}
{{ if lt $recentpostlimit .Date.Unix }}
ο {{ end }}</h3>
<p>{{ .Summary }}</p>
{{ end}}
{{ end }}
<!-- End Articles Section -->
<!-- Column 2 start -->
{{ partial "column2.html" . }}
<!-- Column 2 end -->
<!-- Footer Start -->
{{ partial "footer.html" . }}
<!-- Footer End -->

@ -0,0 +1,7 @@
<!-- <div class="breadcrumb">
<a href="../../../../index.html">Αρχική</a>
<a href="https://www.hellug.gr/c/draseis">Δράσεις</a>
<a href="../../../../c/draseis/news">Νέα</a>
</div>
-->

@ -0,0 +1,18 @@
<!-- Carousel -->
<div id="this-carousel-id" class="carousel slide"><!-- class of slide for animation -->
<div class="carousel-inner">
<div class="item active"><!-- class of active since it's the first item -->
<img src="media/carousel1.png" >
<div class="carousel-caption">
</div>
</div>
</div><!-- /.carousel-inner -->
<!-- Next and Previous controls below
href values must reference the id for this carousel -->
<a class="carousel-control left" href="index.html#this-carousel-id" data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="index.html#this-carousel-id" data-slide="next">&rsaquo;</a>
</div><!-- /.carousel -->

@ -0,0 +1,71 @@
<div id="column2">
<div class="well well-lg" align="center">
<div class="list-group">
<span class="list-group-item active">HEL.L.U.G Meetups!</span>
{{ $counter := 0 }}
{{ range first 3 (index .Site.Taxonomies.draseis "meetups") }}
{{ if .Params.meetupdate }}
{{ $meetuptime := time .Params.meetupdate }}
{{ $meetuptimeunix := add $meetuptime.Unix 86400 }}
{{ if ge $meetuptimeunix now.Unix }}
{{ $counter = add $counter 1 }}
<a class="list-group-item" href="{{ .Permalink}}">
<span class="label label-default">ο</span>
{{ dateFormat "02/01/2006" $meetuptime }} - {{ .Params.meetuplocation }}
</a>
{{ end }}
{{ end }}
{{ end }}
{{ if eq $counter 0 }}
<a class="list-group-item">Δεν υπάρχουν</a>
{{ end }}
</div>
<div class="list-group">
<span class="list-group-item active"> Εκδηλώσεις </span>
{{ $counter = 0 }}
{{ $newlimit := (sub now.Unix 604800 ) }}
{{ range first 5 (index .Site.Taxonomies.draseis "event") }}
{{ if .Params.eventdate }}
{{ $eventtime := time .Params.eventdate }}
{{ if ge $eventtime.Unix now.Unix }}
{{ $counter = add $counter 1 }}
<a class="list-group-item" href="{{ .Permalink }}">
{{ if lt .Date.Unix $newlimit }}
<span class="label label-default">ο</span>
{{ end }}
{{ dateFormat "02/01/2006" $eventtime }} - {{ .Title }}
</a>
{{ end }}
{{ end }}
{{ end }}
{{ if eq $counter 0 }}
<a class="list-group-item">Δεν υπάρχουν</a>
{{ end }}
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">HEL.L.U.G. Sites</h3>
</div>
<div class="panel-body" align="left">
<ul class="nav">
{{ range .Site.Data.sidebar.links.hellug }}
<li class="nav-item"><a href={{ .url }}><button type="button" class="btn btn-link">{{ .name }}</button></a></li>
{{ end }}
</ul>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Ακολουθήστε τον HEL.L.U.G.</h3>
</div>
<div class="panel-body" align="left">
<div class="btn-group">
<a href="https://twitter.com/hellug"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px; margin-bottom:4px;"><img src="/media/Twitter.png">Twitter</button></a>
<a href="http://www.linkedin.com/groups/HELLUG-108292/about"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px; margin-bottom:4px;"><img src="/media/LinkedIn.png">LinkedIn</button></a>
<a href="https://www.facebook.com/groups/hellug/"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px;margin-bottom:4px;"><img src="/media/Facebook.png">Facebook</button></a>
</div>
</div>
</div>
</div>

50
themes/hellug-minimal-2/layouts/partials/footer.html Κανονικό αρχείο

@ -0,0 +1,50 @@
<div>
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li><div>{{ .Name }}</div>
<ul>
{{ range .Children }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
</li>
{{ else }}
<li>
<div>{{ .Name }}</div>
</a>
</li>
{{ end }}
{{ end }}
<li><div>Σύνδεσμοι</div>
<ul>
{{ range .Site.Data.main.links.hellug }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
</li>
</ul>
</div>
<div>
<a href="/credits">Credits Ιστοσελίδας</a>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.hellug.gr/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</div>
</body>
</html>

17
themes/hellug-minimal-2/layouts/partials/head.html Κανονικό αρχείο

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="">
<title>{{ .Title }} | HELLUG </title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="description" content="Hellug Homepage" />
<meta name="keywords" content="Hellug" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/css/hellug.css" rel="stylesheet" />
<script src="/static/js/bootstrap.min.js"></script>
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
</head>
<body>

@ -0,0 +1,7 @@
<a href="/">Home</a>
<!-- menu items -->
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a tabindex="-1" href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
<!-- menu items end -->

@ -0,0 +1 @@
<img src="/media/hellug.png">

1
themes/hellug-minimal-2/layouts/partials/rss.html Κανονικό αρχείο

@ -0,0 +1 @@
{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}

11
themes/hellug-minimal-2/theme.toml Κανονικό αρχείο

@ -0,0 +1,11 @@
name = "hellug-minimal"
license = "GPL-2"
description = "hellug minimal/compatible UI."
homepage = "https://dev.hellug.gr"
tags = ["blog","simple","responsive","minimal","tags","personal","clean","shortcodes"]
features = ["blog", "Clean and minimal", "Responsive", "Syntax highlighting",]
min_version = "0.41"
[author]
name = "Hellug Devs"
homepage = "https://dev.hellug.gr"