- Visit
https://gizmolab.netlify.app/admin
- Log in with the Teams' github credentials.
- 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"
- Slug is the string of characters at the end of a URL
Download the latest versions of:
-
git
(install guide) -
hugo
(install guide) -
npm
(install guide) -
After installing
npm
, installnetlify-cms-proxy-server
npm i -g netlify-cms-proxy-server
Clone the repository
git clone https://github.com/g1zmolab/website
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.
--- 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>