refactoring of code to support themes and new hellug theme
Κάποιοι έλεγχοι απέτυχαν
Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit
Κάποιοι έλεγχοι απέτυχαν
Hellug Projects/Hellug/www/pipeline/head There was a failure building this commit
Αυτό το commit περιλαμβάνεται σε:
γονέας
781ede797c
commit
acfecc9a4d
119 αρχεία άλλαξαν με 3973 προσθήκες και 7 διαγραφές
42
themes/hellug-minimal-2/layouts/index.html
Κανονικό αρχείο
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 }}
|
||||
Nέο {{ 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 -->
|
||||
|
Φόρτωση…
Προσθήκη πίνακα
Προσθήκη υπερσυνδέσμου
Παράθεση σε νέο ζήτημα