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 διαγραφές

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

@ -0,0 +1,51 @@
{{- partial "head.html" . }}
<header>
{{- partial "header.html" . }}
{{ if .Params.bannertemplate }}
{{ partial .Params.bannertemplate . }}
{{else}}
{{ partial "hellug-banner.html" . }}
{{end}}
</header>
<!-- Main View -->
<main>
<div class="master">
<!-- 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></h3>
<cite>{{- dateFormat "02/01/2006" .Date }}</aside>
{{ if lt $recentpostlimit .Date.Unix }}
<mark>ο</mark>{{- end }}
</cite>
<article>{{ .Summary | plainify | safeHTML }}
</article>
<!-- First Post End -->
{{- else }}
<h4><a href="{{.Permalink}}">{{ .Title }}</a></h4>
<cite>{{- dateFormat "02/01/2006" .Date }}</aside>
{{ if lt $recentpostlimit .Date.Unix }}
<mark>ο</mark>
{{- end }}
</cite>
<article>
{{- .Summary }}
</article>
{{- end}}
{{- end }}
<!-- End Articles Section -->
</div>
<div class="sidebar">
<!-- Column 2 start -->
{{- partial "column2.html" . }}
<!-- Column 2 end -->
</div>
</main>
<!-- Footer Start -->
{{- partial "footer.html" . }}
<!-- Footer End -->