diff --git a/config.toml b/config.toml index c4d6513..1494afb 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,7 @@ baseURL = "https://www.hellug.gr/" languageCode = "en-us" title = "HELLUG" +theme = "hellug-bootstrap" disableHugoGeneratorInject = true [mediaTypes."text/gemini"] @@ -53,8 +54,13 @@ page = [ "HTML", "GEMINI", "gopher"] identifier = "meli" name = "Μέλη" weight = -80 - + [[menu.main]] identifier = "linux" name = "Linux" weight = -70 + + [[menu.main]] + identifier = "contact" + name = "Επαφή" + weight = -60 diff --git a/content/pages/contact.md b/content/pages/contact.md index 8aadd84..001d5ec 100644 --- a/content/pages/contact.md +++ b/content/pages/contact.md @@ -8,7 +8,7 @@ tags: [Επικοινωνία] peri-hellug: [epikoinonia-1] menu: main: - parent: "peri-hellug" + parent: "contact" weight: 5 --- diff --git a/layouts/404.html b/layouts.old/404.html similarity index 100% rename from layouts/404.html rename to layouts.old/404.html diff --git a/layouts/_default/events.html b/layouts.old/_default/events.html similarity index 100% rename from layouts/_default/events.html rename to layouts.old/_default/events.html diff --git a/layouts/_default/list.gopher.txt b/layouts.old/_default/list.gopher.txt similarity index 100% rename from layouts/_default/list.gopher.txt rename to layouts.old/_default/list.gopher.txt diff --git a/layouts/_default/list.html b/layouts.old/_default/list.html similarity index 100% rename from layouts/_default/list.html rename to layouts.old/_default/list.html diff --git a/layouts/_default/meetups.html b/layouts.old/_default/meetups.html similarity index 100% rename from layouts/_default/meetups.html rename to layouts.old/_default/meetups.html diff --git a/layouts/_default/news.html b/layouts.old/_default/news.html similarity index 100% rename from layouts/_default/news.html rename to layouts.old/_default/news.html diff --git a/layouts/_default/pages.gmi b/layouts.old/_default/pages.gmi similarity index 100% rename from layouts/_default/pages.gmi rename to layouts.old/_default/pages.gmi diff --git a/layouts/_default/pages.html b/layouts.old/_default/pages.html similarity index 100% rename from layouts/_default/pages.html rename to layouts.old/_default/pages.html diff --git a/layouts/_default/single.gmi b/layouts.old/_default/single.gmi similarity index 100% rename from layouts/_default/single.gmi rename to layouts.old/_default/single.gmi diff --git a/layouts/_default/single.gopher.txt b/layouts.old/_default/single.gopher.txt similarity index 100% rename from layouts/_default/single.gopher.txt rename to layouts.old/_default/single.gopher.txt diff --git a/layouts/_default/single.html b/layouts.old/_default/single.html similarity index 100% rename from layouts/_default/single.html rename to layouts.old/_default/single.html diff --git a/layouts/_default/terms.html b/layouts.old/_default/terms.html similarity index 100% rename from layouts/_default/terms.html rename to layouts.old/_default/terms.html diff --git a/layouts/_default/tests.html b/layouts.old/_default/tests.html similarity index 100% rename from layouts/_default/tests.html rename to layouts.old/_default/tests.html diff --git a/layouts/draseis/draseis.event.html b/layouts.old/draseis/draseis.event.html similarity index 100% rename from layouts/draseis/draseis.event.html rename to layouts.old/draseis/draseis.event.html diff --git a/layouts/draseis/draseis.palaioteres-drastiriotites.html b/layouts.old/draseis/draseis.palaioteres-drastiriotites.html similarity index 100% rename from layouts/draseis/draseis.palaioteres-drastiriotites.html rename to layouts.old/draseis/draseis.palaioteres-drastiriotites.html diff --git a/layouts/draseis/list.html b/layouts.old/draseis/list.html similarity index 100% rename from layouts/draseis/list.html rename to layouts.old/draseis/list.html diff --git a/layouts/draseis/terms.html b/layouts.old/draseis/terms.html similarity index 100% rename from layouts/draseis/terms.html rename to layouts.old/draseis/terms.html diff --git a/layouts/index.gmi b/layouts.old/index.gmi similarity index 100% rename from layouts/index.gmi rename to layouts.old/index.gmi diff --git a/layouts/index.gopher.txt b/layouts.old/index.gopher.txt similarity index 100% rename from layouts/index.gopher.txt rename to layouts.old/index.gopher.txt diff --git a/layouts/index.html b/layouts.old/index.html similarity index 100% rename from layouts/index.html rename to layouts.old/index.html diff --git a/layouts/partials/breadcrump.html b/layouts.old/partials/breadcrump.html similarity index 100% rename from layouts/partials/breadcrump.html rename to layouts.old/partials/breadcrump.html diff --git a/layouts/partials/carousel.html b/layouts.old/partials/carousel.html similarity index 100% rename from layouts/partials/carousel.html rename to layouts.old/partials/carousel.html diff --git a/layouts/partials/column2.html b/layouts.old/partials/column2.html similarity index 98% rename from layouts/partials/column2.html rename to layouts.old/partials/column2.html index 20298c8..f139bb9 100644 --- a/layouts/partials/column2.html +++ b/layouts.old/partials/column2.html @@ -3,7 +3,7 @@
HEL.L.U.G Meetups! {{ $counter := 0 }} - {{ range first 1 (index .Site.Taxonomies.draseis "meetups") }} + {{ range first 3 (index .Site.Taxonomies.draseis "meetups") }} {{ if .Params.meetupdate }} {{ $meetuptime := time .Params.meetupdate }} {{ $meetuptimeunix := add $meetuptime.Unix 86400 }} diff --git a/layouts/partials/footer.html b/layouts.old/partials/footer.html similarity index 100% rename from layouts/partials/footer.html rename to layouts.old/partials/footer.html diff --git a/layouts/partials/head.html b/layouts.old/partials/head.html similarity index 100% rename from layouts/partials/head.html rename to layouts.old/partials/head.html diff --git a/layouts/partials/header.html b/layouts.old/partials/header.html similarity index 100% rename from layouts/partials/header.html rename to layouts.old/partials/header.html diff --git a/layouts/partials/hellug-banner.html b/layouts.old/partials/hellug-banner.html similarity index 100% rename from layouts/partials/hellug-banner.html rename to layouts.old/partials/hellug-banner.html diff --git a/layouts/partials/null.html b/layouts.old/partials/null.html similarity index 100% rename from layouts/partials/null.html rename to layouts.old/partials/null.html diff --git a/layouts/partials/rss.html b/layouts.old/partials/rss.html similarity index 100% rename from layouts/partials/rss.html rename to layouts.old/partials/rss.html diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..e49c966 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,39 @@ +{{- $pctx := . -}} +{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} +{{- $pages := slice -}} +{{- if or $.IsHome $.IsSection -}} +{{- $pages = $pctx.RegularPages -}} +{{- else -}} +{{- $pages = $pctx.Pages -}} +{{- end -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- printf "" | safeHTML }} + + + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} + {{ .Permalink }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} + Hugo -- gohugo.io{{ with .Site.LanguageCode }} + {{.}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end -}} + {{ range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/static/static/css/hellug.css b/static/static/css/hellug.css index c65aa0f..f3ebbac 100644 --- a/static/static/css/hellug.css +++ b/static/static/css/hellug.css @@ -7,12 +7,11 @@ #main { - } #footer-wrapper { - + } #fcolumn1 { @@ -23,10 +22,10 @@ #fcolumn2 { - + width:25%; } - + #fcolumn3 { float:right; @@ -98,6 +97,7 @@ div.footer ul.site-map ul li { .navbar { + font-family: arial, sans-serif; margin-bottom: 2px; } diff --git a/themes/hellug-bootstrap/LICENSE b/themes/hellug-bootstrap/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/themes/hellug-bootstrap/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/hellug-bootstrap/archetypes/default.md b/themes/hellug-bootstrap/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/hellug-bootstrap/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/hellug-bootstrap/layouts/404.html b/themes/hellug-bootstrap/layouts/404.html new file mode 100644 index 0000000..5d19475 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/404.html @@ -0,0 +1,9 @@ +{{ partial "head.html" . }} +
+ +

404 Η σελίδα δε βρέθηκε - Page not found

+

Αν βρεθήκατε εδώ αφού ακολουθήσατε κάποιο σύνδεσμο παρακαλούμε επικοινωνήστε με τους διαχειριστές της ιστοσελίδας μέσω του forum του Hellug και ενημερώστε μας για το περιεχόμενο που λείπει

+

If you came here by following a link please contact the site admins within the forum of Hellug to inform us of the missing content

+ +

Αρχική - Home

+
diff --git a/themes/hellug-bootstrap/layouts/_default/events.html b/themes/hellug-bootstrap/layouts/_default/events.html new file mode 100644 index 0000000..198b2f1 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/events.html @@ -0,0 +1,41 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
    + {{ if .Params.eventdate }} +
  • 📅 {{ dateFormat "Monday" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventdate }} +
  • {{ dateFormat "15:04" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventlocation }} +
  • 🏛 {{ .Params.eventlocation }}
  • + {{ end }} +
+
+ + + + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/list.gopher.txt b/themes/hellug-bootstrap/layouts/_default/list.gopher.txt new file mode 100644 index 0000000..4083706 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/list.gopher.txt @@ -0,0 +1,8 @@ +!{{ .Title }} + +{{ .RawContent }} + +{{ range .Pages.ByPublishDate.Reverse }} +0{{ .Title }} {{ replace .RelPermalink "/gopher" "" 1}} hellug.gr 70 +{{ end }} + diff --git a/themes/hellug-bootstrap/layouts/_default/list.html b/themes/hellug-bootstrap/layouts/_default/list.html new file mode 100644 index 0000000..e591035 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/list.html @@ -0,0 +1,91 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $recentpostlimit := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + +{{ if gt $articlenum $articlelimit }} + +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+ + +{{ end }} +
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/meetups.html b/themes/hellug-bootstrap/layouts/_default/meetups.html new file mode 100644 index 0000000..5e819d4 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/meetups.html @@ -0,0 +1,40 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+ +
+ + {{.Content}} + +
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/news.html b/themes/hellug-bootstrap/layouts/_default/news.html new file mode 100644 index 0000000..dbdad87 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/news.html @@ -0,0 +1,30 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + + + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/pages.gmi b/themes/hellug-bootstrap/layouts/_default/pages.gmi new file mode 100644 index 0000000..df70f63 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/pages.gmi @@ -0,0 +1,30 @@ +# {{ .Title }}{{ $scratch := newScratch }} +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE `` "\n" -}} +{{ $content := $content | replaceRE `
` "\n" -}} +{{ $content := $content | replaceRE `` "\n" -}} +{{ $content := $content | replaceRE `(.+?)` "[$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 diff --git a/themes/hellug-bootstrap/layouts/_default/pages.html b/themes/hellug-bootstrap/layouts/_default/pages.html new file mode 100644 index 0000000..5e074f9 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/pages.html @@ -0,0 +1,35 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} + +
+
+
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + {{.Content}} + +
+
+
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/single.gmi b/themes/hellug-bootstrap/layouts/_default/single.gmi new file mode 100644 index 0000000..9a516f5 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/single.gmi @@ -0,0 +1,33 @@ +# {{ .Title }} - {{ dateFormat "02/01/2006" .Date }}{{ $scratch := newScratch }} +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE "
" "\n" -}} +{{ $content := $content | replaceRE "" "\n" -}} +{{ $content := $content | replaceRE "" "\n" -}} +{{ $content := $content | replaceRE `(.+?)` "[$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 + diff --git a/themes/hellug-bootstrap/layouts/_default/single.gopher.txt b/themes/hellug-bootstrap/layouts/_default/single.gopher.txt new file mode 100644 index 0000000..ccb98a3 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/single.gopher.txt @@ -0,0 +1,4 @@ +# {{ .Title }} + +{{ .Date.Format (.Site.Params.dateform | default "January 2006") }} +{{ .RawContent }} diff --git a/themes/hellug-bootstrap/layouts/_default/single.html b/themes/hellug-bootstrap/layouts/_default/single.html new file mode 100644 index 0000000..12e71e6 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/single.html @@ -0,0 +1,23 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/terms.html b/themes/hellug-bootstrap/layouts/_default/terms.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/terms.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/_default/tests.html b/themes/hellug-bootstrap/layouts/_default/tests.html new file mode 100644 index 0000000..b88f530 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/_default/tests.html @@ -0,0 +1,36 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} + +
+
+
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + {{.Content}} + + +
+
+
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/draseis/draseis.event.html b/themes/hellug-bootstrap/layouts/draseis/draseis.event.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/draseis/draseis.event.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/draseis/draseis.palaioteres-drastiriotites.html b/themes/hellug-bootstrap/layouts/draseis/draseis.palaioteres-drastiriotites.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/draseis/draseis.palaioteres-drastiriotites.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/draseis/list.html b/themes/hellug-bootstrap/layouts/draseis/list.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/draseis/list.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/draseis/terms.html b/themes/hellug-bootstrap/layouts/draseis/terms.html new file mode 100644 index 0000000..e7af72a --- /dev/null +++ b/themes/hellug-bootstrap/layouts/draseis/terms.html @@ -0,0 +1,67 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 10 }} +{{ $articlenum := len .Pages }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +
+
+

{{ .Title }} + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} + + +{{ if gt $articlenum $articlelimit }} + +
+
+

Άλλες Κατηγορίες +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} + {{ end }} +
+
+
+ + +{{ end }} +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-bootstrap/layouts/index.gmi b/themes/hellug-bootstrap/layouts/index.gmi new file mode 100644 index 0000000..6719865 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/index.gmi @@ -0,0 +1,40 @@ +``` + .--. + |o_o | ██╗░░██╗███████╗██╗░░░░░██╗░░░░░██╗░░░██╗░██████╗░ + |:_/ | ██║░░██║██╔════╝██║░░░░░██║░░░░░██║░░░██║██╔════╝░ + // \ \ ███████║█████╗░░██║░░░░░██║░░░░░██║░░░██║██║░░██╗░ + (| | ) ██╔══██║██╔══╝░░██║░░░░░██║░░░░░██║░░░██║██║░░╚██╗ +/'\_ _/`\ ██║░░██║███████╗███████╗███████╗╚██████╔╝╚██████╔╝ +\___)=(___/ ╚═╝░░╚═╝╚══════╝╚══════╝╚══════╝░╚═════╝░░╚═════╝░ +``` +# Hellenic Linux User Group + +## Καλως Ήλθατε + +Η Ένωση Χρηστών και Φίλων Λίνουξ Ελλάδας σας καλωσορίζει στη κάψουλα της στη σφαίρα του πρωτοκόλλου Gemini. + +## Welcome + +This is the Gemini Capsule of the Hellenic Linux User Group. + +## Σύνδεσμοι - Links + +=> https://www.hellug.gr Hellug WebSite +=> https://forum.hellug.gr Hellug Forum +=> https://wiki.hellug.gr Hellug Wiki +=> https://dev.hellug.gr Hellug Git Repositoris + +## Σελίδες +{{ $currentPage := . }}{{ range .Site.Menus.main }}{{ if .HasChildren }} +### {{ .Name }} +{{ range .Children }} +=> {{ replace .URL "/gemini" "" 1}} {{ .Name }}{{ end }} +{{ else }} +### {{ .Name }} +{{ end }}{{ end }} + +## Νέα Άρθρα - New Posts + +{{ $counter := 0 }}{{ $pages := .Site.RegularPages }}{{ $recentpostlimit := (sub now.Unix 2592000 ) }}{{ range first 15 $pages }}{{ $counter = add $counter 1 }}{{ if eq $counter 1 }}=> {{ replace .Permalink "/gemini" "" 1 | replaceRE `(.*)www\.(.*)` "$1$2" }} {{ dateFormat "02/01/2006" .Date }} - {{ .Title }} +{{ else }}=> {{ replace .Permalink "/gemini" "" 1 | replaceRE `(.*)www\.(.*)` "$1$2"}} {{ dateFormat "02/01/2006" .Date }} - {{ .Title }} +{{ end }}{{ end }} diff --git a/themes/hellug-bootstrap/layouts/index.gopher.txt b/themes/hellug-bootstrap/layouts/index.gopher.txt new file mode 100644 index 0000000..ec125f8 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/index.gopher.txt @@ -0,0 +1,35 @@ + .--. _ _ ______ _ _ _ _ _____ + |o_o | | | | | ____| | | | | | | |/ ____| + |:_/ | | |__| | |__ | | | | | | | | | __ + // \ \ | __ | __| | | | | | | | | | |_ | + (| | ) | | | | |____| |____| |___| |__| | |__| | +/'\_ _/`\ |_| |_|______|______|______\____/ \_____| +\___)=(___/ + +Καλως Ήλθατε +Η Ένωση Ελλήνων Χρηστών και Φίλων του Λίνουξ σας καλωσορίζει στη +παρουσία της στο Gopher. + +Welcome +This is the Hellenic Linux User Group in the GopherSpace. + +Σύνδεσμοι - Links: +https://www.hellug.gr Hellug WebSite +https://forum.hellug.gr Hellug Forum +https://wiki.hellug.gr Hellug Wiki +https://dev.hellug.gr Hellug Git Repositoris + +Σελίδες: +{{ $currentPage := . }}{{ range .Site.Menus.main }}{{ if .HasChildren }} +{{ .Name }} +{{ range .Children }} +0{{ .Name }} {{ replace .URL "/gopher" "" 1}} hellug.gr 70 +{{ end }} +{{ else }} +{{ .Name }} +{{ end }}{{ end }} + +Νέα Άρθρα - New Posts: +{{ range first 15 .Site.RegularPages }} +0{{ .Title }} {{ replace .RelPermalink "/gopher" "" 1}} hellug.gr 70 +{{ end }} diff --git a/themes/hellug-bootstrap/layouts/index.html b/themes/hellug-bootstrap/layouts/index.html new file mode 100644 index 0000000..68bfa19 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/index.html @@ -0,0 +1,69 @@ +{{ partial "head.html" . }} +{{ partial "header.html" . }} + +
+
+{{ partial "carousel.html" . }} +
+ +
+ +{{.Content}} + + +
+{{ $counter := 0 }} +{{ $pages := .Site.RegularPages }} +{{ $recentpostlimit := (sub now.Unix 2592000 ) }} +{{ range first 5 $pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary | plainify | safeHTML }} + +

Περισσότερα... +

+
+
+ +{{ else }} + +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end}} + + +{{ end }} + + +
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + + diff --git a/themes/hellug-bootstrap/layouts/partials/breadcrump.html b/themes/hellug-bootstrap/layouts/partials/breadcrump.html new file mode 100644 index 0000000..b55f9ca --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/breadcrump.html @@ -0,0 +1,7 @@ + + diff --git a/themes/hellug-bootstrap/layouts/partials/carousel.html b/themes/hellug-bootstrap/layouts/partials/carousel.html new file mode 100644 index 0000000..186664f --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/carousel.html @@ -0,0 +1,18 @@ + + + + + diff --git a/themes/hellug-bootstrap/layouts/partials/column2.html b/themes/hellug-bootstrap/layouts/partials/column2.html new file mode 100644 index 0000000..f139bb9 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/column2.html @@ -0,0 +1,71 @@ +
+
+
+ HEL.L.U.G Meetups! + {{ $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 }} + + Nέο + {{ dateFormat "02/01/2006" $meetuptime }} - {{ .Params.meetuplocation }} + + {{ end }} + {{ end }} + {{ end }} + {{ if eq $counter 0 }} + Δεν υπάρχουν + {{ end }} +
+
+ Εκδηλώσεις + + {{ $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 }} + + {{ if lt .Date.Unix $newlimit }} + Nέο + {{ end }} + {{ dateFormat "02/01/2006" $eventtime }} - {{ .Title }} + + {{ end }} + {{ end }} + {{ end }} + {{ if eq $counter 0 }} + Δεν υπάρχουν + {{ end }} +
+
+
+

HEL.L.U.G. Sites

+
+
+ +
+
+
+
+

Ακολουθήστε τον HEL.L.U.G.

+
+
+ +
+
+ +
diff --git a/themes/hellug-bootstrap/layouts/partials/footer.html b/themes/hellug-bootstrap/layouts/partials/footer.html new file mode 100644 index 0000000..37032d6 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/footer.html @@ -0,0 +1,49 @@ + +
+ Credits Ιστοσελίδας + + + + +
+ + diff --git a/themes/hellug-bootstrap/layouts/partials/head.html b/themes/hellug-bootstrap/layouts/partials/head.html new file mode 100644 index 0000000..17e8f0b --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/head.html @@ -0,0 +1,20 @@ + + + + + {{ .Title }} | HELLUG + + + + + + + + + + + {{ range .AlternativeOutputFormats -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + diff --git a/themes/hellug-bootstrap/layouts/partials/header.html b/themes/hellug-bootstrap/layouts/partials/header.html new file mode 100644 index 0000000..e40943b --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/header.html @@ -0,0 +1,87 @@ + + diff --git a/themes/hellug-bootstrap/layouts/partials/hellug-banner.html b/themes/hellug-bootstrap/layouts/partials/hellug-banner.html new file mode 100644 index 0000000..c73a0b2 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/hellug-banner.html @@ -0,0 +1,3 @@ +
+ +
diff --git a/themes/hellug-bootstrap/layouts/partials/null.html b/themes/hellug-bootstrap/layouts/partials/null.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hellug-bootstrap/layouts/partials/rss.html b/themes/hellug-bootstrap/layouts/partials/rss.html new file mode 100644 index 0000000..4401bc5 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/rss.html @@ -0,0 +1 @@ +{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }} diff --git a/themes/hellug-bootstrap/theme.toml b/themes/hellug-bootstrap/theme.toml new file mode 100644 index 0000000..27f3959 --- /dev/null +++ b/themes/hellug-bootstrap/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Hellug Bootstrap" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = "" diff --git a/themes/hellug-minimal-2/layouts/404.html b/themes/hellug-minimal-2/layouts/404.html new file mode 100644 index 0000000..5d19475 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/404.html @@ -0,0 +1,9 @@ +{{ partial "head.html" . }} +
+ +

404 Η σελίδα δε βρέθηκε - Page not found

+

Αν βρεθήκατε εδώ αφού ακολουθήσατε κάποιο σύνδεσμο παρακαλούμε επικοινωνήστε με τους διαχειριστές της ιστοσελίδας μέσω του forum του Hellug και ενημερώστε μας για το περιεχόμενο που λείπει

+

If you came here by following a link please contact the site admins within the forum of Hellug to inform us of the missing content

+ +

Αρχική - Home

+
diff --git a/themes/hellug-minimal-2/layouts/_default/events.html b/themes/hellug-minimal-2/layouts/_default/events.html new file mode 100644 index 0000000..198b2f1 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/events.html @@ -0,0 +1,41 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
    + {{ if .Params.eventdate }} +
  • 📅 {{ dateFormat "Monday" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventdate }} +
  • {{ dateFormat "15:04" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventlocation }} +
  • 🏛 {{ .Params.eventlocation }}
  • + {{ end }} +
+
+ + + + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/list.gopher.txt b/themes/hellug-minimal-2/layouts/_default/list.gopher.txt new file mode 100644 index 0000000..4083706 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/list.gopher.txt @@ -0,0 +1,8 @@ +!{{ .Title }} + +{{ .RawContent }} + +{{ range .Pages.ByPublishDate.Reverse }} +0{{ .Title }} {{ replace .RelPermalink "/gopher" "" 1}} hellug.gr 70 +{{ end }} + diff --git a/themes/hellug-minimal-2/layouts/_default/list.html b/themes/hellug-minimal-2/layouts/_default/list.html new file mode 100644 index 0000000..e591035 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/list.html @@ -0,0 +1,91 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $recentpostlimit := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $recentpostlimit .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + +{{ if gt $articlenum $articlelimit }} + +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+ + +{{ end }} +
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/meetups.html b/themes/hellug-minimal-2/layouts/_default/meetups.html new file mode 100644 index 0000000..5e819d4 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/meetups.html @@ -0,0 +1,40 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
    + {{ if .Params.meetupdate }} +
  • 📅 {{ dateFormat "Monday" .Params.meetupdate }}
  • + {{ end }} + {{ if .Params.meetupdate }} +
  • {{ dateFormat "15:04" .Params.meetupdate }}
  • + {{ end }} + {{ if .Params.meetuplocation }} +
  • 🏛 {{ .Params.meetuplocation }}
  • + {{ end }} +
+
+ + {{.Content}} + +
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/news.html b/themes/hellug-minimal-2/layouts/_default/news.html new file mode 100644 index 0000000..dbdad87 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/news.html @@ -0,0 +1,30 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + + + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/pages.gmi b/themes/hellug-minimal-2/layouts/_default/pages.gmi new file mode 100644 index 0000000..df70f63 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/pages.gmi @@ -0,0 +1,30 @@ +# {{ .Title }}{{ $scratch := newScratch }} +{{ $content := .RawContent -}} +{{ $content := $content | replaceRE `` "\n" -}} +{{ $content := $content | replaceRE `
` "\n" -}} +{{ $content := $content | replaceRE `` "\n" -}} +{{ $content := $content | replaceRE `(.+?)` "[$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 diff --git a/themes/hellug-minimal-2/layouts/_default/pages.html b/themes/hellug-minimal-2/layouts/_default/pages.html new file mode 100644 index 0000000..5e074f9 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/pages.html @@ -0,0 +1,35 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} + +
+
+
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + {{.Content}} + +
+
+
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/single.gmi b/themes/hellug-minimal-2/layouts/_default/single.gmi new file mode 100644 index 0000000..9a516f5 --- /dev/null +++ b/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 "
" "\n" -}} +{{ $content := $content | replaceRE "" "\n" -}} +{{ $content := $content | replaceRE "" "\n" -}} +{{ $content := $content | replaceRE `(.+?)` "[$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 + diff --git a/themes/hellug-minimal-2/layouts/_default/single.gopher.txt b/themes/hellug-minimal-2/layouts/_default/single.gopher.txt new file mode 100644 index 0000000..ccb98a3 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/single.gopher.txt @@ -0,0 +1,4 @@ +# {{ .Title }} + +{{ .Date.Format (.Site.Params.dateform | default "January 2006") }} +{{ .RawContent }} diff --git a/themes/hellug-minimal-2/layouts/_default/single.html b/themes/hellug-minimal-2/layouts/_default/single.html new file mode 100644 index 0000000..12e71e6 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/single.html @@ -0,0 +1,23 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial .Params.bannertemplate . }} +
+ +
+ + {{.Content}} + +
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/terms.html b/themes/hellug-minimal-2/layouts/_default/terms.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/terms.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/_default/tests.html b/themes/hellug-minimal-2/layouts/_default/tests.html new file mode 100644 index 0000000..b88f530 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/_default/tests.html @@ -0,0 +1,36 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} + +
+
+
+ {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+
+ + {{.Content}} + + +
+
+
+
+ + +{{ partial "column2.html" . }} + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/draseis/draseis.event.html b/themes/hellug-minimal-2/layouts/draseis/draseis.event.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/draseis/draseis.event.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/draseis/draseis.palaioteres-drastiriotites.html b/themes/hellug-minimal-2/layouts/draseis/draseis.palaioteres-drastiriotites.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/draseis/draseis.palaioteres-drastiriotites.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/draseis/list.html b/themes/hellug-minimal-2/layouts/draseis/list.html new file mode 100644 index 0000000..a656165 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/draseis/list.html @@ -0,0 +1,87 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+{{ partial "hellug-banner.html" . }} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} + +

Περισσότερα... +

+
+
+ +{{else}} +
+
+

{{ .Title }} + + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} +{{ end }} + + + +{{ if gt $articlenum $articlelimit }} +
+
+

Παλαιότερα άρθρα +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} +
  • + {{ end }} +
+
+
+{{ end }} + + +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/draseis/terms.html b/themes/hellug-minimal-2/layouts/draseis/terms.html new file mode 100644 index 0000000..e7af72a --- /dev/null +++ b/themes/hellug-minimal-2/layouts/draseis/terms.html @@ -0,0 +1,67 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +
+
+ {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} +
+ +
+ + {{.Content}} + + +
+{{ $articlelimit := 10 }} +{{ $articlenum := len .Pages }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +
+
+

{{ .Title }} + {{ if lt $lastyear .Date.Unix }} + Nέο

+ {{ end }} +
+
+ {{ .Summary }} +

Περισσότερα... +

+
+
+{{ end }} + + +{{ if gt $articlenum $articlelimit }} + +
+
+

Άλλες Κατηγορίες +

+
+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} + {{ end }} +
+
+
+ + +{{ end }} +
+
+ + +{{ partial "column2.html" . }} + + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal-2/layouts/index.html b/themes/hellug-minimal-2/layouts/index.html new file mode 100644 index 0000000..9e02e22 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/index.html @@ -0,0 +1,42 @@ +{{ partial "head.html" . }} +{{ partial "header.html" . }} + + + +{{.Content}} + + +{{ $counter := 0 }} +{{ $pages := .Site.RegularPages }} +{{ $recentpostlimit := (sub now.Unix 2592000 ) }} +{{ range first 5 $pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + + +

+{{ .Title }} {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }}Nέο +{{ end }} +

+

{{ .Summary | plainify | safeHTML }}

+ +{{ else }} +

{{ .Title }} +{{ dateFormat "02/01/2006" .Date }} +{{ if lt $recentpostlimit .Date.Unix }} +Nέο {{ end }}

+

{{ .Summary }}

+{{ end}} + + +{{ end }} + + + + +{{ partial "column2.html" . }} + + +{{ partial "footer.html" . }} + + diff --git a/themes/hellug-minimal-2/layouts/partials/breadcrump.html b/themes/hellug-minimal-2/layouts/partials/breadcrump.html new file mode 100644 index 0000000..b55f9ca --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/breadcrump.html @@ -0,0 +1,7 @@ + + diff --git a/themes/hellug-minimal-2/layouts/partials/carousel.html b/themes/hellug-minimal-2/layouts/partials/carousel.html new file mode 100644 index 0000000..186664f --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/carousel.html @@ -0,0 +1,18 @@ + + + + + diff --git a/themes/hellug-minimal-2/layouts/partials/column2.html b/themes/hellug-minimal-2/layouts/partials/column2.html new file mode 100644 index 0000000..f139bb9 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/column2.html @@ -0,0 +1,71 @@ +
+
+
+ HEL.L.U.G Meetups! + {{ $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 }} + + Nέο + {{ dateFormat "02/01/2006" $meetuptime }} - {{ .Params.meetuplocation }} + + {{ end }} + {{ end }} + {{ end }} + {{ if eq $counter 0 }} + Δεν υπάρχουν + {{ end }} +
+
+ Εκδηλώσεις + + {{ $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 }} + + {{ if lt .Date.Unix $newlimit }} + Nέο + {{ end }} + {{ dateFormat "02/01/2006" $eventtime }} - {{ .Title }} + + {{ end }} + {{ end }} + {{ end }} + {{ if eq $counter 0 }} + Δεν υπάρχουν + {{ end }} +
+
+
+

HEL.L.U.G. Sites

+
+
+ +
+
+
+
+

Ακολουθήστε τον HEL.L.U.G.

+
+
+ +
+
+ +
diff --git a/themes/hellug-minimal-2/layouts/partials/footer.html b/themes/hellug-minimal-2/layouts/partials/footer.html new file mode 100644 index 0000000..383e7d3 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/footer.html @@ -0,0 +1,50 @@ +
+
    + {{ $currentPage := . }} + {{ range .Site.Menus.main }} + {{ if .HasChildren }} +
  • {{ .Name }}
    + +
  • + {{ else }} +
  • +
    {{ .Name }}
    + +
  • + {{ end }} + {{ end }} +
  • Σύνδεσμοι
    +
      + {{ range .Site.Data.main.links.hellug }} +
    • {{ .name }}
    • + {{ end }} +
    +
  • +
+
+ +
+Credits Ιστοσελίδας + + + +
+ + + diff --git a/themes/hellug-minimal-2/layouts/partials/head.html b/themes/hellug-minimal-2/layouts/partials/head.html new file mode 100644 index 0000000..e6a5db3 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/head.html @@ -0,0 +1,17 @@ + + + + + {{ .Title }} | HELLUG + + + + + + + + {{ range .AlternativeOutputFormats -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + diff --git a/themes/hellug-minimal-2/layouts/partials/header.html b/themes/hellug-minimal-2/layouts/partials/header.html new file mode 100644 index 0000000..7c5e12d --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/header.html @@ -0,0 +1,7 @@ +Home + +{{ $currentPage := . }} +{{ range .Site.Menus.main }} +{{ .Name }} +{{ end }} + diff --git a/themes/hellug-minimal-2/layouts/partials/hellug-banner.html b/themes/hellug-minimal-2/layouts/partials/hellug-banner.html new file mode 100644 index 0000000..2364f24 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/hellug-banner.html @@ -0,0 +1 @@ + diff --git a/themes/hellug-minimal-2/layouts/partials/null.html b/themes/hellug-minimal-2/layouts/partials/null.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hellug-minimal-2/layouts/partials/rss.html b/themes/hellug-minimal-2/layouts/partials/rss.html new file mode 100644 index 0000000..4401bc5 --- /dev/null +++ b/themes/hellug-minimal-2/layouts/partials/rss.html @@ -0,0 +1 @@ +{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }} diff --git a/themes/hellug-minimal-2/theme.toml b/themes/hellug-minimal-2/theme.toml new file mode 100644 index 0000000..79400b4 --- /dev/null +++ b/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" diff --git a/themes/hellug-minimal/LICENSE b/themes/hellug-minimal/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/themes/hellug-minimal/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/hellug-minimal/archetypes/default.md b/themes/hellug-minimal/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/hellug-minimal/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/hellug-minimal/layouts/404.html b/themes/hellug-minimal/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hellug-minimal/layouts/_default/baseof.html b/themes/hellug-minimal/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/hellug-minimal/layouts/_default/events.html b/themes/hellug-minimal/layouts/_default/events.html new file mode 100644 index 0000000..a57e576 --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/events.html @@ -0,0 +1,32 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +{{ partial .Params.bannertemplate . }} + + {{ partial "breadcrump.html"}} + +

{{ .Title }}

+ {{ dateFormat "02/01/2006" .Date }}
+
    + {{ if .Params.eventdate }} +
  • 📅 {{ dateFormat "Monday" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventdate }} +
  • {{ dateFormat "15:04" .Params.eventdate }}
  • + {{ end }} + {{ if .Params.eventlocation }} +
  • 🏛 {{ .Params.eventlocation }}
  • + {{ end }} +
+ + + {{.Content}} + + +{{ partial "column2.html" . }} + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/list.html b/themes/hellug-minimal/layouts/_default/list.html new file mode 100644 index 0000000..55ffff2 --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/list.html @@ -0,0 +1,64 @@ +{{ partial "head.html" . }} +
+ +{{ partial "header.html" . }} + +{{- if .Params.bannertemplate }} +{{- partial .Params.bannertemplate . }} +{{- else }} +{{- partial "hellug-banner.html" . }} +{{- end }} +
+ +
+
+ +{{- $articlelimit := 5 }} +{{- $articlenum := len .Pages }} +{{- $counter := 0 }} +{{- $recentpostlimit := (sub now.Unix 31536000 ) }} +{{- range first $articlelimit .Pages }} +{{- $counter = add $counter 1 }} +{{- if eq $counter 1 }} + +

{{ .Title }}

+
+ + {{- .Summary }} +
+ +{{else}} +

{{ .Title }}

+
+ + {{- .Summary }} + + {{- end }} +{{- end }} + + +
+{{ if gt $articlenum $articlelimit }} + +

Παλαιότερα άρθρα

+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} {{ dateFormat "02/01/2006" .Date }}
  • + {{ end }} +
+ + +{{ end }} +
+
+ +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/meetups.html b/themes/hellug-minimal/layouts/_default/meetups.html new file mode 100644 index 0000000..df7212f --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/meetups.html @@ -0,0 +1,36 @@ +{{ partial "head.html" . }} +
+ +{{ partial .Params.bannertemplate . }} +{{ partial "header.html" . }} + +{{ partial "breadcrump.html"}} +
+
+
+

{{ .Title }}

+{{ dateFormat "02/01/2006" .Date }} +
    + {{ if .Params.meetupdate }} +
  • 📅 {{ dateFormat "Monday" .Params.meetupdate }}
  • + {{ end }} + {{ if .Params.meetupdate }} +
  • {{ dateFormat "15:04" .Params.meetupdate }}
  • + {{ end }} + {{ if .Params.meetuplocation }} +
  • 🏛 {{ .Params.meetuplocation }}
  • + {{ end }} +
+
+ {{.Content}} +
+
+ + + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/news.html b/themes/hellug-minimal/layouts/_default/news.html new file mode 100644 index 0000000..4cf9245 --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/news.html @@ -0,0 +1,25 @@ +{{- partial "head.html" . }} + +
+{{- partial .Params.bannertemplate . }} +{{- partial "header.html" . }} +
+ +
+{{ partial "breadcrump.html"}} +
+ +

{{ .Title }}

+{{- dateFormat "02/01/2006" .Date }} +
{{.Content}}
+
+ + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/pages.html b/themes/hellug-minimal/layouts/_default/pages.html new file mode 100644 index 0000000..f3ddeb7 --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/pages.html @@ -0,0 +1,30 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + +{{ if .Params.bannertemplate }} +{{ partial .Params.bannertemplate . }} +{{else}} +{{ partial "hellug-banner.html" . }} +{{end}} + +{{ partial "breadcrump.html"}} +
+
+ +

{{ .Title }}

+
+ {{.Content}} +
+ +
+ +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/single.html b/themes/hellug-minimal/layouts/_default/single.html new file mode 100644 index 0000000..b39ce90 --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/single.html @@ -0,0 +1,23 @@ +{{ partial "head.html" . }} +
+ +{{ partial "header.html" . }} + + +{{ partial .Params.bannertemplate . }} +
+
+
+ + {{.Content}} + +
+ +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/terms.html b/themes/hellug-minimal/layouts/_default/terms.html new file mode 100644 index 0000000..a5489ae --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/terms.html @@ -0,0 +1,67 @@ +{{ partial "head.html" . }} +
+ +{{ partial "header.html" . }} + + +
+{{ partial "hellug-banner.html" . }} + +
+
+ {{.Content}} + + +{{ $articlelimit := 5 }} +{{ $articlenum := len .Pages }} +{{ $counter := 0 }} +{{ $lastyear := (sub now.Unix 31536000 ) }} +{{ range first $articlelimit .Pages }} +{{ $counter = add $counter 1 }} +{{ if eq $counter 1 }} + +

{{ .Title }} {{ dateFormat "02/01/2006" .Date }}

+{{ if lt $lastyear .Date.Unix }} +Nέο +{{ end }} +

+ {{ .Summary }} +

+ + +{{else}} +

{{ .Title }} + {{ dateFormat "02/01/2006" .Date }} + {{ if lt $lastyear .Date.Unix }} + Nέο

+{{ end }} +

+ {{ .Summary }} +

+{{ end }} +{{ end }} + +
+ +{{ if gt $articlenum $articlelimit }} +

Παλαιότερα άρθρα

+
    + {{ range after 10 .Pages }} +
  • {{ .Title }} + {{ dateFormat "02/01/2006" .Date }}
  • + {{ end }} +
+{{ end }} + +
+
+ + +
+ +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/_default/tests.html b/themes/hellug-minimal/layouts/_default/tests.html new file mode 100644 index 0000000..ccf244f --- /dev/null +++ b/themes/hellug-minimal/layouts/_default/tests.html @@ -0,0 +1,25 @@ +{{ partial "head.html" . }} + +{{ partial "header.html" . }} + + + {{ if .Params.bannertemplate }} + {{ partial .Params.bannertemplate . }} + {{else}} + {{ partial "hellug-banner.html" . }} + {{end}} + + {{ partial "breadcrump.html"}} + +

{{ .Title }}

+
+ + {{.Content}} + + + +{{ partial "column2.html" . }} + + +{{ partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/index.html b/themes/hellug-minimal/layouts/index.html new file mode 100644 index 0000000..facb736 --- /dev/null +++ b/themes/hellug-minimal/layouts/index.html @@ -0,0 +1,51 @@ +{{- partial "head.html" . }} +
+{{- partial "header.html" . }} +{{ if .Params.bannertemplate }} +{{ partial .Params.bannertemplate . }} +{{else}} +{{ partial "hellug-banner.html" . }} +{{end}} +
+ +
+
+ +{{- $counter := 0 }} +{{- $pages := .Site.RegularPages }} +{{- $recentpostlimit := (sub now.Unix 2592000 ) }} +{{- range first 5 $pages }} +{{- $counter = add $counter 1 }} +{{- if eq $counter 1 }} + +

{{ .Title }}

+{{- dateFormat "02/01/2006" .Date }} +{{ if lt $recentpostlimit .Date.Unix }} + Nέο{{- end }} + +
{{ .Summary | plainify | safeHTML }} +
+ +{{- else }} +

{{ .Title }}

+{{- dateFormat "02/01/2006" .Date }} +{{ if lt $recentpostlimit .Date.Unix }} + Nέο +{{- end }} + +
+{{- .Summary }} +
+{{- end}} +{{- end }} + +
+ +
+ +{{- partial "footer.html" . }} + diff --git a/themes/hellug-minimal/layouts/partials/breadcrump.html b/themes/hellug-minimal/layouts/partials/breadcrump.html new file mode 100644 index 0000000..b55f9ca --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/breadcrump.html @@ -0,0 +1,7 @@ + + diff --git a/themes/hellug-minimal/layouts/partials/carousel.html b/themes/hellug-minimal/layouts/partials/carousel.html new file mode 100644 index 0000000..5e317f2 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/carousel.html @@ -0,0 +1,2 @@ + + diff --git a/themes/hellug-minimal/layouts/partials/column2.html b/themes/hellug-minimal/layouts/partials/column2.html new file mode 100644 index 0000000..42e45a4 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/column2.html @@ -0,0 +1,40 @@ +

HEL.L.U.G Meetups!

+{{- $counter := 0 }} +{{- $newlimit := (sub now.Unix 604800 ) }} +{{- 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 }} +{{- if lt .Date.Unix $newlimit }} Nέο {{- end }}{{ dateFormat "02/01/2006" $meetuptime }} - {{ .Params.meetuplocation }} +{{- end }} +{{- end }} +{{- end }} +{{- if eq $counter 0 }} +Δεν υπάρχουν +{{- end }} +

Εκδηλώσεις

+{{- $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 }} +{{- if lt .Date.Unix $newlimit }} Nέο{{- end }}{{- dateFormat "02/01/2006" $eventtime }} - {{ .Title }} +{{- end }} +{{- end }} +{{- end }} +{{- if eq $counter 0 }} +Δεν υπάρχουν +{{- end }} + +

Σύνδεσμοι

+{{- range .Site.Data.main.links.hellug }} +{{ .name }}
+{{- end }} +

Ακολουθήστε τον HEL.L.U.G.

+ + + diff --git a/themes/hellug-minimal/layouts/partials/footer.html b/themes/hellug-minimal/layouts/partials/footer.html new file mode 100644 index 0000000..8f18890 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/footer.html @@ -0,0 +1,42 @@ +
+
+ {{- $currentPage := . }} + {{- range .Site.Menus.main }} +
+ {{- if .HasChildren }} + {{- .Name }} + {{- range .Children }} +
{{ .Name }} + {{- end }} + + {{- else }} + {{- .Name }} + {{- end }} +
+ {{- end }} +
+ Σύνδεσμοι + {{- range .Site.Data.main.links.hellug }} +
{{ .name }} + {{- end }} +
+
+Credits Ιστοσελίδας + + + +
+ + diff --git a/themes/hellug-minimal/layouts/partials/head.html b/themes/hellug-minimal/layouts/partials/head.html new file mode 100644 index 0000000..963cf53 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/head.html @@ -0,0 +1,17 @@ + + + + + {{ .Title }} | HELLUG + + + + + + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + diff --git a/themes/hellug-minimal/layouts/partials/header.html b/themes/hellug-minimal/layouts/partials/header.html new file mode 100644 index 0000000..5989b1c --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/header.html @@ -0,0 +1,8 @@ + + + diff --git a/themes/hellug-minimal/layouts/partials/hellug-banner.html b/themes/hellug-minimal/layouts/partials/hellug-banner.html new file mode 100644 index 0000000..2364f24 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/hellug-banner.html @@ -0,0 +1 @@ + diff --git a/themes/hellug-minimal/layouts/partials/null.html b/themes/hellug-minimal/layouts/partials/null.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hellug-minimal/layouts/partials/rss.html b/themes/hellug-minimal/layouts/partials/rss.html new file mode 100644 index 0000000..4401bc5 --- /dev/null +++ b/themes/hellug-minimal/layouts/partials/rss.html @@ -0,0 +1 @@ +{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }} diff --git a/themes/hellug-minimal/static/css/hellug.css b/themes/hellug-minimal/static/css/hellug.css new file mode 100644 index 0000000..b83debb --- /dev/null +++ b/themes/hellug-minimal/static/css/hellug.css @@ -0,0 +1,37 @@ +body { + grid-template-columns: 1fr min(70rem, 90%) 1fr; +} + +main { + display: grid; + gap: 30px 80px; + grid-template-columns: min(70%) auto; + +} + +article { + border: 0px solid var(--border); +} + +.sitemap { +display: flex; +align-items: normal; +justify-content: space-around; +flex-wrap: wrap; +} + +.sitemap-item { + text-align: left; + vertical-align: top; +} + +.master { +grid-column-start 1; +} +.sidebar { +grid-column-start 3; +} + +main h3, h4 { +margin-bottom: 0.1em; +} diff --git a/themes/hellug-minimal/static/css/simple.css b/themes/hellug-minimal/static/css/simple.css new file mode 100644 index 0000000..b9a36b4 --- /dev/null +++ b/themes/hellug-minimal/static/css/simple.css @@ -0,0 +1,617 @@ +/* Global variables. */ +:root { + /* Set sans-serif & mono fonts */ + --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, + "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, + "Helvetica Neue", sans-serif; + --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + + /* Default (light) theme */ + --bg: #fff; + --accent-bg: #f5f7ff; + --text: #212121; + --text-light: #585858; + --border: #d8dae1; + --accent: #0d47a1; + --code: #d81b60; + --preformatted: #444; + --marked: #ffdd33; + --disabled: #efefef; +} + +/* Dark theme */ +@media (prefers-color-scheme: dark) { + :root { + color-scheme: dark; + --bg: #212121; + --accent-bg: #2b2b2b; + --text: #dcdcdc; + --text-light: #ababab; + --border: #666; + --accent: #ffb300; + --code: #f06292; + --preformatted: #ccc; + --disabled: #111; + } + /* Add a bit of transparency so light media isn't so glaring in dark mode */ + img, + video { + opacity: 0.8; + } +} + +/* Reset box-sizing */ +*, *::before, *::after { + box-sizing: border-box; +} + +/* Reset default appearance */ +textarea, +select, +input, +progress { + appearance: none; + -webkit-appearance: none; + -moz-appearance: none; +} + +html { + /* Set the font globally */ + font-family: var(--sans-font); + scroll-behavior: smooth; +} + +/* Make the body a nice central block */ +body { + color: var(--text); + background-color: var(--bg); + font-size: 1.15rem; + line-height: 1.5; + display: grid; + grid-template-columns: 1fr min(45rem, 90%) 1fr; + margin: 0; +} +body > * { + grid-column: 2; +} + +/* Make the header bg full width, but the content inline with body */ +body > header { + background-color: var(--accent-bg); + border-bottom: 1px solid var(--border); + text-align: center; + padding: 0 0.5rem 2rem 0.5rem; + grid-column: 1 / -1; +} + +body > header h1 { + max-width: 1200px; + margin: 1rem auto; +} + +body > header p { + max-width: 40rem; + margin: 1rem auto; +} + +/* Add a little padding to ensure spacing is correct between content and header > nav */ +main { + padding-top: 1.5rem; +} + +body > footer { + margin-top: 4rem; + padding: 2rem 1rem 1.5rem 1rem; + color: var(--text-light); + font-size: 0.9rem; + text-align: center; + border-top: 1px solid var(--border); +} + +/* Format headers */ +h1 { + font-size: 3rem; +} + +h2 { + font-size: 2.6rem; + margin-top: 3rem; +} + +h3 { + font-size: 2rem; + margin-top: 3rem; +} + +h4 { + font-size: 1.44rem; +} + +h5 { + font-size: 1.15rem; +} + +h6 { + font-size: 0.96rem; +} + +/* Prevent long strings from overflowing container */ +p, h1, h2, h3, h4, h5, h6 { + overflow-wrap: break-word; +} + +/* Fix line height when title wraps */ +h1, +h2, +h3 { + line-height: 1.1; +} + +/* Reduce header size on mobile */ +@media only screen and (max-width: 720px) { + h1 { + font-size: 2.5rem; + } + + h2 { + font-size: 2.1rem; + } + + h3 { + font-size: 1.75rem; + } + + h4 { + font-size: 1.25rem; + } +} + +/* Format links & buttons */ +a, +a:visited { + color: var(--accent); +} + +a:hover { + text-decoration: none; +} + +button, +[role="button"], +input[type="submit"], +input[type="reset"], +input[type="button"], +label[type="button"] { + border: none; + border-radius: 5px; + background-color: var(--accent); + font-size: 1rem; + color: var(--bg); + padding: 0.7rem 0.9rem; + margin: 0.5rem 0; +} + +button[disabled], +[role="button"][aria-disabled="true"], +input[type="submit"][disabled], +input[type="reset"][disabled], +input[type="button"][disabled], +input[type="checkbox"][disabled], +input[type="radio"][disabled], +select[disabled] { + opacity: 0.5; + cursor: not-allowed; +} + +input:disabled, +textarea:disabled, +select:disabled { + cursor: not-allowed; + background-color: var(--disabled); +} + +input[type="range"] { + padding: 0; +} + +/* Set the cursor to '?' while hovering over an abbreviation */ +abbr { + cursor: help; +} + +button:focus, +button:enabled:hover, +[role="button"]:focus, +[role="button"]:not([aria-disabled="true"]):hover, +input[type="submit"]:focus, +input[type="submit"]:enabled:hover, +input[type="reset"]:focus, +input[type="reset"]:enabled:hover, +input[type="button"]:focus, +input[type="button"]:enabled:hover, +label[type="button"]:focus, +label[type="button"]:hover { + filter: brightness(1.4); + cursor: pointer; +} + +/* Format navigation */ +header > nav { + font-size: 1rem; + line-height: 2; + padding: 1rem 0 0 0; +} + +/* Use flexbox to allow items to wrap, as needed */ +header > nav ul, +header > nav ol { + align-content: space-around; + align-items: center; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + list-style-type: none; + margin: 0; + padding: 0; +} + +/* List items are inline elements, make them behave more like blocks */ +header > nav ul li, +header > nav ol li { + display: inline-block; +} + +header > nav a, +header > nav a:visited { + margin: 0 0.5rem 1rem 0.5rem; + border: 1px solid var(--border); + border-radius: 5px; + color: var(--text); + display: inline-block; + padding: 0.1rem 1rem; + text-decoration: none; +} + +header > nav a:hover { + filter: brightness(1.4); + cursor: pointer; +} + +/* Reduce nav side on mobile */ +@media only screen and (max-width: 720px) { + header > nav a { + border: none; + padding: 0; + text-decoration: underline; + line-height: 1; + } +} + +/* Consolidate box styling */ +aside, details, pre, progress { + background-color: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; + margin-bottom: 1rem; +} + +aside { + font-size: 1rem; + width: 30%; + padding: 0 15px; + margin-left: 15px; + float: right; +} + +/* Make aside full-width on mobile */ +@media only screen and (max-width: 720px) { + aside { + width: 100%; + float: none; + margin-left: 0; + } +} + +article, fieldset { + border: 1px solid var(--border); + padding: 1rem; + border-radius: 5px; + margin-bottom: 1rem; +} + +article h2:first-child, +section h2:first-child { + margin-top: 1rem; +} + +section { + border-top: 1px solid var(--border); + border-bottom: 1px solid var(--border); + padding: 2rem 1rem; + margin: 3rem 0; +} + +/* Don't double separators when chaining sections */ +section + section, +section:first-child { + border-top: 0; + padding-top: 0; +} + +section:last-child { + border-bottom: 0; + padding-bottom: 0; +} + +details { + padding: 0.7rem 1rem; +} + +summary { + cursor: pointer; + font-weight: bold; + padding: 0.7rem 1rem; + margin: -0.7rem -1rem; + word-break: break-all; +} + +details[open] > summary + * { + margin-top: 0; +} + +details[open] > summary { + margin-bottom: 0.5rem; +} + +details[open] > :last-child { + margin-bottom: 0; +} + +/* Format tables */ +table { + border-collapse: collapse; + display: block; + margin: 1.5rem 0; + overflow: auto; + width: 100%; +} + +td, +th { + border: 1px solid var(--border); + text-align: left; + padding: 0.5rem; +} + +th { + background-color: var(--accent-bg); + font-weight: bold; +} + +tr:nth-child(even) { + /* Set every other cell slightly darker. Improves readability. */ + background-color: var(--accent-bg); +} + +table caption { + font-weight: bold; + margin-bottom: 0.5rem; +} + +/* Format forms */ +textarea, +select, +input { + font-size: inherit; + font-family: inherit; + padding: 0.5rem; + margin-bottom: 0.5rem; + color: var(--text); + background-color: var(--bg); + border: 1px solid var(--border); + border-radius: 5px; + box-shadow: none; + max-width: 100%; + display: inline-block; +} +label { + display: block; +} +textarea:not([cols]) { + width: 100%; +} + +/* Add arrow to drop-down */ +select:not([multiple]) { + background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), + linear-gradient(135deg, var(--text) 51%, transparent 49%); + background-position: calc(100% - 15px), calc(100% - 10px); + background-size: 5px 5px, 5px 5px; + background-repeat: no-repeat; + padding-right: 25px; +} + +/* checkbox and radio button style */ +input[type="checkbox"], +input[type="radio"] { + vertical-align: middle; + position: relative; +} + +input[type="radio"] { + border-radius: 100%; +} + +input[type="checkbox"]:checked, +input[type="radio"]:checked { + background-color: var(--accent); +} + +input[type="checkbox"]:checked::after { + /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */ + content: " "; + width: 0.18em; + height: 0.32em; + border-radius: 0; + position: absolute; + top: 0.05em; + left: 0.17em; + background-color: transparent; + border-right: solid var(--bg) 0.08em; + border-bottom: solid var(--bg) 0.08em; + font-size: 1.8em; + transform: rotate(45deg); +} +input[type="radio"]:checked::after { + /* creates a colored circle for the checked radio button */ + content: " "; + width: 0.25em; + height: 0.25em; + border-radius: 100%; + position: absolute; + top: 0.125em; + background-color: var(--bg); + left: 0.125em; + font-size: 32px; +} + +/* Makes input fields wider on smaller screens */ +@media only screen and (max-width: 720px) { + textarea, + select, + input { + width: 100%; + } +} + +/* Ensures the checkbox and radio inputs do not have a set width like other input fields */ +input[type="checkbox"], +input[type="radio"] { + width: auto; +} + +/* Set a height for color input */ +input[type="color"] { + height: 2.5rem; + padding: 0.2rem; +} + +/* do not show border around file selector button */ +input[type="file"] { + border: 0; +} + +/* Misc body elements */ +hr { + color: var(--border); + border-top: 1px; + margin: 1rem auto; +} + +mark { + padding: 2px 5px; + border-radius: 4px; + background-color: var(--marked); +} + +img, +video { + max-width: 100%; + height: auto; + border-radius: 5px; +} + +figure { + margin: 0; + text-align: center; +} + +figcaption { + font-size: 0.9rem; + color: var(--text-light); + margin-bottom: 1rem; +} + +blockquote { + margin: 2rem 0 2rem 2rem; + padding: 0.4rem 0.8rem; + border-left: 0.35rem solid var(--accent); + color: var(--text-light); + font-style: italic; +} + +cite { + font-size: 0.9rem; + color: var(--text-light); + font-style: normal; +} + +dt { + color: var(--text-light); +} + +/* Use mono font for code elements */ +code, +pre, +pre span, +kbd, +samp { + font-family: var(--mono-font); + color: var(--code); +} + +kbd { + color: var(--preformatted); + border: 1px solid var(--preformatted); + border-bottom: 3px solid var(--preformatted); + border-radius: 5px; + padding: 0.1rem 0.4rem; +} + +pre { + padding: 1rem 1.4rem; + max-width: 100%; + overflow: auto; + color: var(--preformatted); +} + +/* Fix embedded code within pre */ +pre code { + color: var(--preformatted); + background: none; + margin: 0; + padding: 0; +} + +/* Progress bars */ +/* Declarations are repeated because you */ +/* cannot combine vendor-specific selectors */ +progress { + width: 100%; +} + +progress:indeterminate { + background-color: var(--accent-bg); +} + +progress::-webkit-progress-bar { + border-radius: 5px; + background-color: var(--accent-bg); +} + +progress::-webkit-progress-value { + border-radius: 5px; + background-color: var(--accent); +} + +progress::-moz-progress-bar { + border-radius: 5px; + background-color: var(--accent); + transition-property: width; + transition-duration: 0.3s; +} + +progress:indeterminate::-moz-progress-bar { + background-color: var(--accent-bg); +} diff --git a/themes/hellug-minimal/static/css/water.min.css b/themes/hellug-minimal/static/css/water.min.css new file mode 100644 index 0000000..d6d67f9 --- /dev/null +++ b/themes/hellug-minimal/static/css/water.min.css @@ -0,0 +1,490 @@ +/* MVP.css v1.10.2 - https://github.com/andybrewer/mvp */ + +:root { + --active-brightness: 0.85; + --border-radius: 5px; + --box-shadow: 2px 2px 10px; + --color-accent: #118bee15; + --color-bg: #fff; + --color-bg-secondary: #e9e9e9; + --color-link: #118bee; + --color-secondary: #920de9; + --color-secondary-accent: #920de90b; + --color-shadow: #f4f4f4; + --color-table: #118bee; + --color-text: #000; + --color-text-secondary: #999; + --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + --hover-brightness: 1.2; + --justify-important: center; + --justify-normal: left; + --line-height: 1.5; + --width-card: 285px; + --width-card-medium: 460px; + --width-card-wide: 800px; + --width-content: 1080px; +} + +@media (prefers-color-scheme: dark) { + :root[color-mode="user"] { + --color-accent: #0097fc4f; + --color-bg: #333; + --color-bg-secondary: #555; + --color-link: #0097fc; + --color-secondary: #e20de9; + --color-secondary-accent: #e20de94f; + --color-shadow: #bbbbbb20; + --color-table: #0097fc; + --color-text: #f7f7f7; + --color-text-secondary: #aaa; + } +} + +/* Layout */ +article aside { + background: var(--color-secondary-accent); + border-left: 4px solid var(--color-secondary); + padding: 0.01rem 0.8rem; +} + +body { + background: var(--color-bg); + color: var(--color-text); + font-family: var(--font-family); + line-height: var(--line-height); + margin: 0; + overflow-x: hidden; + padding: 0; +} + +footer, +header, +main { + margin: 0 auto; + max-width: var(--width-content); + padding: 3rem 1rem; +} + +hr { + background-color: var(--color-bg-secondary); + border: none; + height: 1px; + margin: 4rem 0; + width: 100%; +} + +section { + display: flex; + flex-wrap: wrap; + justify-content: var(--justify-important); +} + +section img, +article img { + max-width: 100%; +} + +section pre { + overflow: auto; +} + +section aside { + border: 1px solid var(--color-bg-secondary); + border-radius: var(--border-radius); + box-shadow: var(--box-shadow) var(--color-shadow); + margin: 1rem; + padding: 1.25rem; + width: var(--width-card); +} + +section aside:hover { + box-shadow: var(--box-shadow) var(--color-bg-secondary); +} + +[hidden] { + display: none; +} + +/* Headers */ +article header, +div header, +main header { + padding-top: 0; +} + +header { + text-align: var(--justify-important); +} + +header a b, +header a em, +header a i, +header a strong { + margin-left: 0.5rem; + margin-right: 0.5rem; +} + +header nav img { + margin: 1rem 0; +} + +section header { + padding-top: 0; + width: 100%; +} + +/* Nav */ +nav { + align-items: center; + display: flex; + font-weight: bold; + justify-content: space-between; + margin-bottom: 7rem; +} + +nav ul { + list-style: none; + padding: 0; +} + +nav ul li { + display: inline-block; + margin: 0 0.5rem; + position: relative; + text-align: left; +} + +/* Nav Dropdown */ +nav ul li:hover ul { + display: block; +} + +nav ul li ul { + background: var(--color-bg); + border: 1px solid var(--color-bg-secondary); + border-radius: var(--border-radius); + box-shadow: var(--box-shadow) var(--color-shadow); + display: none; + height: auto; + left: -2px; + padding: .5rem 1rem; + position: absolute; + top: 1.7rem; + white-space: nowrap; + width: auto; + z-index: 1; +} + +nav ul li ul::before { + /* fill gap above to make mousing over them easier */ + content: ""; + position: absolute; + left: 0; + right: 0; + top: -0.5rem; + height: 0.5rem; +} + +nav ul li ul li, +nav ul li ul li a { + display: block; +} + +/* Typography */ +code, +samp { + background-color: var(--color-accent); + border-radius: var(--border-radius); + color: var(--color-text); + display: inline-block; + margin: 0 0.1rem; + padding: 0 0.5rem; +} + +details { + margin: 1.3rem 0; +} + +details summary { + font-weight: bold; + cursor: pointer; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: var(--line-height); +} + +mark { + padding: 0.1rem; +} + +ol li, +ul li { + padding: 0.2rem 0; +} + +p { + margin: 0.75rem 0; + padding: 0; + width: 100%; +} + +pre { + margin: 1rem 0; + max-width: var(--width-card-wide); + padding: 1rem 0; +} + +pre code, +pre samp { + display: block; + max-width: var(--width-card-wide); + padding: 0.5rem 2rem; + white-space: pre-wrap; +} + +small { + color: var(--color-text-secondary); +} + +sup { + background-color: var(--color-secondary); + border-radius: var(--border-radius); + color: var(--color-bg); + font-size: xx-small; + font-weight: bold; + margin: 0.2rem; + padding: 0.2rem 0.3rem; + position: relative; + top: -2px; +} + +/* Links */ +a { + color: var(--color-link); + display: inline-block; + font-weight: bold; + text-decoration: none; +} + +a:active { + filter: brightness(var(--active-brightness)); + text-decoration: underline; +} + +a:hover { + filter: brightness(var(--hover-brightness)); + text-decoration: underline; +} + +a b, +a em, +a i, +a strong, +button { + border-radius: var(--border-radius); + display: inline-block; + font-size: medium; + font-weight: bold; + line-height: var(--line-height); + margin: 0.5rem 0; + padding: 1rem 2rem; +} + +button { + font-family: var(--font-family); +} + +button:active { + filter: brightness(var(--active-brightness)); +} + +button:hover { + cursor: pointer; + filter: brightness(var(--hover-brightness)); +} + +a b, +a strong, +button { + background-color: var(--color-link); + border: 2px solid var(--color-link); + color: var(--color-bg); +} + +a em, +a i { + border: 2px solid var(--color-link); + border-radius: var(--border-radius); + color: var(--color-link); + display: inline-block; + padding: 1rem 2rem; +} + +article aside a { + color: var(--color-secondary); +} + +/* Images */ +figure { + margin: 0; + padding: 0; +} + +figure img { + max-width: 100%; +} + +figure figcaption { + color: var(--color-text-secondary); +} + +/* Forms */ + +button:disabled, +input:disabled { + background: var(--color-bg-secondary); + border-color: var(--color-bg-secondary); + color: var(--color-text-secondary); + cursor: not-allowed; +} + +button[disabled]:hover { + filter: none; +} + +form { + border: 1px solid var(--color-bg-secondary); + border-radius: var(--border-radius); + box-shadow: var(--box-shadow) var(--color-shadow); + display: block; + max-width: var(--width-card-wide); + min-width: var(--width-card); + padding: 1.5rem; + text-align: var(--justify-normal); +} + +form header { + margin: 1.5rem 0; + padding: 1.5rem 0; +} + +input, +label, +select, +textarea { + display: block; + font-size: inherit; + max-width: var(--width-card-wide); +} + +input[type="checkbox"], +input[type="radio"] { + display: inline-block; +} + +input[type="checkbox"]+label, +input[type="radio"]+label { + display: inline-block; + font-weight: normal; + position: relative; + top: 1px; +} + +input[type="range"] { + padding: 0.4rem 0; +} + +input, +select, +textarea { + border: 1px solid var(--color-bg-secondary); + border-radius: var(--border-radius); + margin-bottom: 1rem; + padding: 0.4rem 0.8rem; +} + +input[type="text"], +textarea { + width: calc(100% - 1.6rem); +} + +input[readonly], +textarea[readonly] { + background-color: var(--color-bg-secondary); +} + +label { + font-weight: bold; + margin-bottom: 0.2rem; +} + +/* Tables */ +table { + border: 1px solid var(--color-bg-secondary); + border-radius: var(--border-radius); + border-spacing: 0; + display: inline-block; + max-width: 100%; + overflow-x: auto; + padding: 0; + white-space: nowrap; +} + +table td, +table th, +table tr { + padding: 0.4rem 0.8rem; + text-align: var(--justify-important); +} + +table thead { + background-color: var(--color-table); + border-collapse: collapse; + border-radius: var(--border-radius); + color: var(--color-bg); + margin: 0; + padding: 0; +} + +table thead th:first-child { + border-top-left-radius: var(--border-radius); +} + +table thead th:last-child { + border-top-right-radius: var(--border-radius); +} + +table thead th:first-child, +table tr td:first-child { + text-align: var(--justify-normal); +} + +table tr:nth-child(even) { + background-color: var(--color-accent); +} + +/* Quotes */ +blockquote { + display: block; + font-size: x-large; + line-height: var(--line-height); + margin: 1rem auto; + max-width: var(--width-card-medium); + padding: 1.5rem 1rem; + text-align: var(--justify-important); +} + +blockquote footer { + color: var(--color-text-secondary); + display: block; + font-size: small; + line-height: var(--line-height); + padding: 1.5rem 0; +} + diff --git a/themes/hellug-minimal/theme.toml b/themes/hellug-minimal/theme.toml new file mode 100644 index 0000000..41c41b7 --- /dev/null +++ b/themes/hellug-minimal/theme.toml @@ -0,0 +1,15 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Hellug Minimal" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "A theme for Hellug site" +homepage = "http://hellug.gr/" +tags = ["blog"] +features = ["blog"] +min_version = "0.1.0" + +[author] + name = "Hellug" + homepage = "https://hellug.gr"