diff --git a/content/posts/events/θερινο-σχολειο-με-θέμα-τρισδιάστατη-σχεδίαση-και-εκτύπωση-3oek-peiraia-hellug-gfoss-uni-w-a-2024-06-26.md b/content/posts/events/θερινο-σχολειο-με-θέμα-τρισδιάστατη-σχεδίαση-και-εκτύπωση-3oek-peiraia-hellug-gfoss-uni-w-a-2024-06-26.md index bbe7a2d..48e0700 100644 --- a/content/posts/events/θερινο-σχολειο-με-θέμα-τρισδιάστατη-σχεδίαση-και-εκτύπωση-3oek-peiraia-hellug-gfoss-uni-w-a-2024-06-26.md +++ b/content/posts/events/θερινο-σχολειο-με-θέμα-τρισδιάστατη-σχεδίαση-και-εκτύπωση-3oek-peiraia-hellug-gfoss-uni-w-a-2024-06-26.md @@ -14,6 +14,8 @@ draseis: tags: - Εκδηλώσεις - Νέα +aliases: + - /therino-sxoleio-3D-3oek-peiraia-2024 summary: Tο 3ο Εργαστηριακό Κέντρο Πειραιά (Δραπετσώνας) με το πέρας του σχολικού έτους 2023-2024, και σε συνεργασία με το Δήμο Κερατσινίου-Δραπετσώνας, την ΕΕΛΛΑΚ, την Ένωση Χρηστών και Φίλων Λίνουξ diff --git a/static/admin/config.yml b/static/admin/config.yml index ea96cc2..86458b8 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -25,6 +25,7 @@ collections: - {label: "Ημερομηνία Δημοσίευσης", name: "date", widget: "datetime", picker_utc: "false"} - {label: "Τίτλος κατηγορίας", name: "category_title", widget: "string", default: "Δράσεις"} - {label: "Ετικέτες", name: "tags", widget: "list", min: 1, default: ["Νέα"]} + - {label: "Συντόμευση", name: "aliases", widget: "list", min: 0, max: 1, widget: string} - {label: "Περίληψη", name: "summary", required: false, widget: "string"} - {label: "Body", name: "body", widget: "markdown"} - name: "meetups" # Used in routes, e.g., /admin/collections/blog @@ -44,6 +45,7 @@ collections: - {label: "Τίτλος κατηγορίας", name: "category_title", widget: "string", default: "Δράσεις"} - {label: "Ετικέτες κατηγορίας", name: "draseis", widget: "list", allow_add: false, default: [meetups]} - {label: "Ετικέτες", name: "tags", widget: "list", allow_add: false, default: ["Meetups"]} + - {label: "Συντόμευση", name: "aliases", widget: "list", min: 0, max: 1, widget: string} - {label: "Περίληψη", name: "summary", required: false, widget: "string"} - {label: "Body", name: "body", widget: "markdown"} - name: "events" # Used in routes, e.g., /admin/collections/blog @@ -63,5 +65,6 @@ collections: - {label: "Τίτλος κατηγορίας", name: "category_title", widget: "string", default: "Δράσεις"} - {label: "Ετικέτες κατηγορίας", name: "draseis", widget: "list", allow_add: false, default: [news,event]} - {label: "Ετικέτες", name: "tags", widget: "list", allow_add: false, default: ["Εκδηλώσεις","Νέα"]} + - {label: "Συντόμευση", name: "aliases", widget: "list", min: 0, max: 1, widget: string} - {label: "Περίληψη", name: "summary", required: false, widget: "string"} - {label: "Body", name: "body", widget: "markdown"} diff --git a/themes/hellug-bootstrap/layouts/_default/events.html b/themes/hellug-bootstrap/layouts/_default/events.html index 3356b38..6eb8aea 100644 --- a/themes/hellug-bootstrap/layouts/_default/events.html +++ b/themes/hellug-bootstrap/layouts/_default/events.html @@ -17,8 +17,9 @@
-

{{ .Title }}

-
+

{{ .Title }}

+ {{ dateFormat "02/01/2006" .Date }} +
    {{ if .Params.eventdate }}
  • 📅 {{ .Params.eventdate | time.Format ":date_full" }} @@ -39,6 +40,7 @@ {{.Content | safeHTML }} + {{- partial "short-link.html" }}
diff --git a/themes/hellug-bootstrap/layouts/_default/list.html b/themes/hellug-bootstrap/layouts/_default/list.html index 364cec1..4cc20b9 100644 --- a/themes/hellug-bootstrap/layouts/_default/list.html +++ b/themes/hellug-bootstrap/layouts/_default/list.html @@ -33,7 +33,7 @@

{{ .Title }}

- + {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }} Nέο {{ end }} @@ -50,7 +50,7 @@

{{ .Title }}

- + {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }} Nέο {{ end }} @@ -75,7 +75,7 @@
    {{ range after $articlelimit .Pages }}
  • {{ .Title }} -
  • + {{ dateFormat "02/01/2006" .Date }} {{ end }}
diff --git a/themes/hellug-bootstrap/layouts/_default/meetups.html b/themes/hellug-bootstrap/layouts/_default/meetups.html index 158b7cb..051fa9d 100644 --- a/themes/hellug-bootstrap/layouts/_default/meetups.html +++ b/themes/hellug-bootstrap/layouts/_default/meetups.html @@ -18,7 +18,8 @@

{{ .Title }}

-
+ {{ dateFormat "02/01/2006" .Date }} +
    {{ if .Params.meetupdate }}
  • 📅 {{ dateFormat "Monday" .Params.meetupdate }}
  • @@ -33,6 +34,7 @@ {{.Content | safeHTML }} + {{- partial "short-link.html" }}
diff --git a/themes/hellug-bootstrap/layouts/_default/news.html b/themes/hellug-bootstrap/layouts/_default/news.html index df89faa..6ca181f 100644 --- a/themes/hellug-bootstrap/layouts/_default/news.html +++ b/themes/hellug-bootstrap/layouts/_default/news.html @@ -18,10 +18,12 @@

{{ .Title }}

-
+ {{ dateFormat "02/01/2006" .Date }} +
{{.Content | safeHTML }} + {{- partial "short-link.html" }}
diff --git a/themes/hellug-bootstrap/layouts/_default/pages.html b/themes/hellug-bootstrap/layouts/_default/pages.html index 809b603..68f16a2 100644 --- a/themes/hellug-bootstrap/layouts/_default/pages.html +++ b/themes/hellug-bootstrap/layouts/_default/pages.html @@ -18,6 +18,7 @@

{{ .Title }}


{{- .Content}} + {{- partial "short-link.html" }}
{{- partial "column2.html" . }} diff --git a/themes/hellug-bootstrap/layouts/draseis/list.html b/themes/hellug-bootstrap/layouts/draseis/list.html index ae8f445..9c8de08 100644 --- a/themes/hellug-bootstrap/layouts/draseis/list.html +++ b/themes/hellug-bootstrap/layouts/draseis/list.html @@ -33,7 +33,7 @@

{{ .Title }}

- + {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }} Nέο {{ end }} @@ -50,7 +50,7 @@

{{ .Title }}

- + {{ dateFormat "02/01/2006" .Date }} {{ if lt $recentpostlimit .Date.Unix }} Nέο {{ end }} @@ -75,7 +75,7 @@
    {{ range after 10 .Pages }}
  • {{ .Title }} -
  • + {{ dateFormat "02/01/2006" .Date }} {{ end }}
diff --git a/themes/hellug-bootstrap/layouts/partials/head.html b/themes/hellug-bootstrap/layouts/partials/head.html index cbf729d..75e6c1b 100644 --- a/themes/hellug-bootstrap/layouts/partials/head.html +++ b/themes/hellug-bootstrap/layouts/partials/head.html @@ -9,11 +9,11 @@ - - - {{ range .AlternativeOutputFormats -}} + + + {{- range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} + {{- end }} diff --git a/themes/hellug-bootstrap/layouts/partials/short-link.html b/themes/hellug-bootstrap/layouts/partials/short-link.html new file mode 100644 index 0000000..3ab95b1 --- /dev/null +++ b/themes/hellug-bootstrap/layouts/partials/short-link.html @@ -0,0 +1,5 @@ +{{- if .Params.aliases }} +{{- range first 1 .Params.aliases }} +🔗Σύντομος σύνδεσμος σε αυτό το άρθρο +{{- end }} +{{- end }}