mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 22:42:24 +00:00
Blog section
This commit is contained in:
@@ -4,4 +4,6 @@ subtitle: ""
|
||||
date: {{ .Date }}
|
||||
tags: []
|
||||
draft: true
|
||||
author:
|
||||
author_email: # used for Gravatar icon
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: About Leigh Hackspace
|
||||
subtitle: An accessible, social workspace, where you can meet people, learn new skills, and build awesome things!
|
||||
----
|
||||
---
|
||||
### What is Leigh Hackspace?
|
||||
|
||||
Leigh Hackspace is a shared community workspace that offers the facilities you need to make a bunch of stuff you’re not able to make at home. Maybe you don’t have the right tools? Maybe you don’t have enough space? Maybe you’re stuck trying to figure out a problem you’re not able to solve on your own? We’re here to help!
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: "New Post"
|
||||
date: 2023-11-05T08:09:29Z
|
||||
draft: true
|
||||
---
|
||||
|
||||
sdadasda
|
||||
asd
|
||||
asda
|
||||
sda
|
||||
sd
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="container">
|
||||
{{ block "hero-content" . }}
|
||||
<div class="columns _is-centered is-vcentered has-text-white has-text-centered-mobile">
|
||||
<div class="column is-full-tablet _is-offset-one-quarter-tablet is-half-desktop">
|
||||
<div class="column is-full-tablet _is-offset-one-quarter-tablet">
|
||||
<h1 class="title is-1 has-text-white">{{ block "title" . }}{{ end }}</h1>
|
||||
<p class="subtitle has-text-white">{{ block "subtitle" . }}{{ end }}</p>
|
||||
<p></p>
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<section class="section">
|
||||
<div class="container content">
|
||||
{{ block "content" .}}
|
||||
{{ block "content" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
24
themes/lhs/layouts/blog/single.html
Normal file
24
themes/lhs/layouts/blog/single.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<article class="media">
|
||||
<figure class="media-left">
|
||||
<p class="image is-64x64">
|
||||
<img class="is-rounded" src="https://www.gravatar.com/avatar/{{ sha256 .Params.author_email }}">
|
||||
</p>
|
||||
</figure>
|
||||
<div class="media-content">
|
||||
<div class="content">
|
||||
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
|
||||
posted {{ .Date | time.Format ":date_full" }}</b></p>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user