The Gizmolab website
  • HTML 94.4%
  • CSS 5.5%
  • JavaScript 0.1%
Find a file
2026-09-13 01:47:34 +03:00
archetypes initial 2022-08-23 17:38:38 +03:00
assets/images Create Εκδηλώσεις “2026-09-12-metal-bar-9-2026” 2026-09-13 01:47:34 +03:00
content Create Εκδηλώσεις “2026-09-12-metal-bar-9-2026” 2026-09-13 01:47:34 +03:00
data Update Σελίδες “next-assembly” 2026-09-13 01:38:25 +03:00
layouts Landing page changes 2026-07-05 00:14:43 +03:00
static Landing page changes 2026-07-05 00:14:43 +03:00
themes bump terminal theme to v3.0.0 (#22) 2023-11-29 22:02:52 +02:00
.gitignore resources folder is not auto-generated, should be ignored 2022-09-28 15:39:47 +03:00
.gitmodules initial 2022-08-23 17:38:38 +03:00
.hugo_build.lock initial 2022-08-23 17:38:38 +03:00
config.toml Update config.toml 2026-07-03 14:54:15 +03:00
netlify.toml Revert "Merge pull request #21 from g1zmolab/update-theme" 2023-11-29 03:25:22 +02:00
README.md bump terminal theme to v3.0.0 (#22) 2023-11-29 22:02:52 +02:00

The Gizmolab website

This website was made using Hugo and Netlify CMS

How to use the website:

Connect to the Admin panel

  • Visit https://gizmolab.netlify.app/admin
  • Log in with the Teams' github credentials.

Make a new post

  • Select the correct category from the left menu.
  • Add a Title, Keywords and Body
  • Slug:
    • Slug is the string of characters at the end of a URL https://random-website.com/posts/this-is-a-slug
    • If the Title of the post is: "Why Vim is a great text editor", an example of a fitting slug is "why-vim-is-a-great-text-editor"

How to develop the website

Requirements

Download the latest versions of:

Clone the repository

git clone https://github.com/g1zmolab/website

About netlify-cms-proxy-server

To use it, run the following command in the root of your project (the directory were this README.md is located).

npx netlify-cms-proxy-server

Now you can go ahead and edit the files.

You can find a lot of useful information in the Hugo and Netlify CMS documentation.

Custom changes

--- b/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -28,6 +28,8 @@
   <link rel="stylesheet" href="{{ "style.scss" | absURL }}">
 {{- end }}

+<link rel="stylesheet" href="/css/custom.css">
+
 <!-- Icons -->
 {{ if isset $.Site.Params "favicon" }}
   <link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}">
@@ -48,15 +50,15 @@
 <!-- OG data -->
 <meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
 <meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
-<meta property="og:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }}{{ end }}">
+<meta property="og:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}">
 <meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
 <meta property="og:url" content="{{ .Permalink }}" />
 <meta property="og:site_name" content="{{ $.Site.Title }}" />
-{{ if and (not .IsHome) (isset .Params "cover") }}
-  <meta property="og:image" content="{{ .Param "cover" | absURL }}">
+{{ if and (not .IsHome) (isset .Params "thumbnail") }}
+  <meta property="og:image" content="{{ .Params.thumbnail | absURL }}">
 {{ else }}
-  {{ if isset $.Site.Params "favicon" }}
-    <meta property="og:image" content="{{ $.Site.Params.favicon | absURL }}">
+  {{ if $.Site.Params.customCover }}
+    <meta property="og:image" content="{{ $.Site.Params.customCover | absURL }}">
   {{ else }}
     <meta property="og:image" content="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}">
   {{ end }}
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,7 +7,6 @@
       <div class="copyright">
         <span>© {{ now.Year }} Powered by <a href="http://gohugo.io">Hugo</a></span>
     {{ end }}
-        <span>:: Theme made by <a href="https://twitter.com/panr">panr</a></span>
       </div>
   </div>
 </footer>
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -4,6 +4,10 @@
       {{ .Content }}
     </div>
   {{ end }}
+  <div class="home-box-parent">
+    {{ partial "future_events.html" . }}
+    {{ partial "next_assembly.html" . }}
+  </div>
   <div class="posts">
     {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
     {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}
@@ -21,10 +25,10 @@
         </h1>

         <div class="post-meta">
-          {{ with .Date }}
-            <time class="post-date">
-              {{ .Format "2006-01-02" }}
-            </time>
+            {{ if .Params.event_date }}
+              <span class="post-date">
+                {{ time.Format "Monday, 2 January @ 15:04" (time .Params.event_date) }}
+              </span>
           {{ end }}
           {{ with .Params.Author }}
             <span class="post-author">:: {{ . }}</span>