mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 23:52:23 +00:00
Add retro theme
This commit is contained in:
BIN
themes/lhs-retro/assets/images/rose_logo.jpg
Normal file
BIN
themes/lhs-retro/assets/images/rose_logo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
51
themes/lhs-retro/assets/images/rose_logo.svg
Normal file
51
themes/lhs-retro/assets/images/rose_logo.svg
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 27.5.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1"
|
||||
id="svg14" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 725.5 699.5"
|
||||
style="enable-background:new 0 0 725.5 699.5;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#D31246;}
|
||||
.st1{fill:#FFFFFF;}
|
||||
</style>
|
||||
<path class="st0" d="M335.2,698.4c5.2,0.8,62.5-0.2,69.6-1.3c36.4-5.3,76.1-17.1,90.5-26.9c14.7-10,23.5-26.7,23.5-44.8
|
||||
c0-8.1-1.7-15.7-6-26.1c-1.7-4.1-3-8.3-3-9.5c0-2.1,1.1-4.2,3-5.6c2-1.5,4.6-2.1,6.9-1.4c1.5,0.4,6,3.9,9.5,7.1
|
||||
c7.9,7.1,15.1,12.2,21.2,15c3.6,1.6,5,1.8,12.6,1.8c7.2,0,9.5-0.3,14.2-1.9c9.2-3.1,11.1-4.4,22.5-15.6
|
||||
c38.2-37.4,65.5-89,76.9-145.5c4.5-22.7,5.8-33.8,6.2-56.9c0.5-25.1-0.3-36-3.1-44.9c-2.7-8.4-6.6-14.7-13.6-21.8
|
||||
c-5.3-5.4-7.1-6.7-13.8-9.8c-13.5-6.4-24.2-7.3-39.3-3.4c-9.6,2.5-14,2.5-16.5-0.1c-2.1-2.1-2.6-6.4-1.1-9.1
|
||||
c1.2-2.2,6.1-4.8,15.4-8.3c4.5-1.7,9.8-3.9,11.8-5.1c5.5-3,12.6-11,16.2-18.2c3.7-7.5,4.8-13.8,4.3-24.1c-0.4-7-0.6-8.1-4.2-16.4
|
||||
c-6.6-15.3-18-33.5-34-54.2c-7.6-9.8-29.7-32.1-40.2-40.6c-36.1-29.2-77.1-50.1-118.5-60.6c-10.4-2.6-12.7-2.9-20.6-2.9
|
||||
c-10.9,0-17.8,1.6-26.5,6.1c-10.9,5.7-21.3,17.9-24.3,28.5c-0.5,1.6-1.3,7.6-1.9,13.3c-1.2,11.2-2.1,13.8-5.6,15.1
|
||||
c-4.3,1.6-9.5,0.1-11.3-3.4c-0.6-1.1-1.2-7-1.5-12c-0.5-8.5-0.9-11-2.7-15.7c-4.4-11.3-12.3-20-22.8-25.2c-5.2-2.6-8.7-3.5-17-4.7
|
||||
c-5.5-0.8-32.3,3.5-46.2,7.4c-9.9,2.8-26.4,8.3-31.5,10.6c-21,9.3-49.8,25.5-61.7,34.7c-28.3,21.7-46.5,39.8-65.1,64.3
|
||||
c-14.8,19.6-21,30.3-23.6,40.9c-2.4,9.9-2.6,14-0.9,22.7c3.6,18.6,13.9,30.7,34.5,40.6c7.2,3.4,10.8,6.5,11.3,9.6
|
||||
c0.3,2-0.5,4-2.7,6.1c-3.2,3.3-4.8,3.3-14.7,0.6c-10.5-2.9-23.2-3.2-30.1-0.9c-15.9,5.3-26.9,16.9-31.2,32.7
|
||||
c-3.2,12-4.9,29.5-4.9,52c0,27.7,2.2,45.5,8.6,70.4c10.7,41.7,28,77.5,54.6,112.9c14.4,19.2,23.5,26.5,37.4,30.2
|
||||
c7.4,2,24.9,1.8,31.1-0.3c6.7-2.3,13.6-6.7,22.9-14.8c9-7.8,13.7-10.6,16.2-9.7c3.1,1.1,5.8,4.4,5.8,7.2c0,3.2-0.7,4.7-5.7,10.9
|
||||
c-6.6,8.4-8.3,12.2-10.1,22.8c-0.8,4.4-0.7,6.2,0.4,11.4c2.5,12.3,6.2,19.8,13.2,26.6c9.2,8.9,28.6,18.3,57.8,28
|
||||
C291.5,690.9,304.5,693.6,335.2,698.4z"/>
|
||||
<path class="st1" d="M297.3,527.1l65.4,65.5l98.5-98.6l-32.3-31.9c-18.4-18.2-31.8-31.1-33.3-32.1c-0.7,0.4-5.3,4.4-11.1,10
|
||||
l-10.5,10.1c-0.1,0.1-0.4,0.1-0.5,0l-10.2-10.6c-0.1-0.1-0.1-0.4,0-0.5l10.8-11c43.7-44.5,44.3-44.5,44.8-44.5
|
||||
c0.9,0,5.6,4.6,6.1,5.2l5.1,5c0.1,0.1,0.1,0.2,0.1,0.3s0,0.2-0.1,0.3l-20.4,20.4l65.5,65.5l97.4-97.3l-65.5-65.5l-11,10.9
|
||||
c-0.1,0.1-0.4,0.1-0.5,0l-78.3-78.3c-0.1-0.1-0.1-0.4,0-0.5l10.9-11L395.8,206c-18.1-18.1-31.4-31-33.1-32.4
|
||||
c-2.1,1.7-20.8,20.2-49.1,48.4l-48.3,48.3l65.5,65.5l9.7-9.7c1.7-1.7,10.1-10,11-10c0.9,0,6.7,5.8,7.4,6.5l6.3,6.4
|
||||
c0.1,0.1,0.1,0.4,0,0.5l-55.9,55.9c-0.1,0.1-0.2,0.1-0.3,0.1c0,0,0,0,0,0c-0.1,0-0.2,0-0.3-0.1l-13-13.2c-0.1-0.1-0.1-0.4,0-0.5
|
||||
l3.7-3.9c2-2.1,6.7-7,10.4-10.8l6.4-6.7L300,333.3c-9.1-9.4-23.8-24.3-32.7-33.2l-15.9-15.9l-98.5,98.5l65.5,65.5l11-10.9
|
||||
c0.1-0.1,0.4-0.1,0.5,0l78.3,78.3c0.1,0.1,0.1,0.4,0,0.5L297.3,527.1z"/>
|
||||
<path class="st0" d="M360.7,75.7c1.3,2.3,2.7,4.5,3.3,4.6c0.1,0,0.2,0,0.4-0.1c0.5-0.4,2.6-3.8,4.8-8.1c4-7.7,5.5-9.2,17-17.6
|
||||
l3.6-2.6l-2-4.4c-1.2-2.6-6.7-14.1-12.3-25.7C366,2,365.4,1,363.4,0.8c-1.8-0.2-2-0.2-3.9,3.9c-1.1,2.4-6.2,13.5-11.3,24.6
|
||||
c-5.6,12.1-9.5,21.3-9.7,22.4c-0.3,1.8-0.2,2.1,4.7,5.4C350.2,61.9,356.7,68.9,360.7,75.7z"/>
|
||||
<path class="st0" d="M675.5,298.8c3.9,2.6,6.6,4.1,7,4.2c1.9,0,11.4-8.8,21.3-18.3c15.7-15,21.1-20.3,21-21.4c0,0,0-0.1-0.2-0.2
|
||||
c-2.4-1.6-10.2-2.8-31-4.8c-6.2-0.6-13.6-1.4-16.5-1.9c-7.6-1.1-11.2-1-11.8,0.3c-0.3,0.7-1.2,3.5-1.9,6.1c-1.8,6.8-5.6,13.8-11,20
|
||||
c-2.7,3.2-4.3,5.3-4.4,5.6c0.2,0.4,5.1,1.2,8.3,1.7C662.7,291.2,667.2,293.2,675.5,298.8L675.5,298.8z"/>
|
||||
<path class="st0" d="M536.9,622c0,0.4,0.2,2.1,0.7,4.3c2.2,9,1.2,20.9-2.5,29.6c-1.7,3.9-1.3,5.2,2.1,6.9c1.6,0.8,4.3,2.3,6.2,3.4
|
||||
c1.9,1.1,11.6,6.4,21.7,11.8c13.2,7.1,19.8,10.3,21.2,9.4c0.2-0.1,0.4-0.3,0.3-1.1c-0.2-3.1-10.8-54.6-11.6-56.2
|
||||
c-0.3-0.2-3-0.8-11.1-1c-11.3-0.4-12.7-0.7-22-5.1C539.4,622.7,537.5,622,536.9,622z"/>
|
||||
<path class="st0" d="M148.4,629.4l-0.7,3.5c-2.1,10.3-8.3,45.6-8.7,49.7c-0.2,2.3-0.4,3.9-0.1,4.2c0.1,0.1,0.3,0.1,0.6,0.1
|
||||
c1.6,0,4.5-1.5,22.6-11.8c7.6-4.3,17.5-9.9,21.8-12.3l7.7-4.3l-2.6-7.7c-2.6-7.8-2.7-8.4-2.8-19.7c0-6.8,0-10.5-0.8-10.9
|
||||
c-0.4-0.2-1.5,0.6-2.6,1.4c-1.1,0.8-5,2.7-8.6,4.2c-6,2.4-7.5,2.7-16.4,3.1L148.4,629.4z"/>
|
||||
<path class="st0" d="M38.7,296.7c3.8,3.3,6.4,5.3,6.8,5.4c0.3-0.1,1.9-1.2,3.9-2.8c8.1-6.8,15.6-10.4,25.2-12.2
|
||||
c2.7-0.5,4.6-1.1,5.1-1.3c-0.3-0.7-2.2-3-5.3-6.2c-7.3-7.5-10.2-12.7-13-23.4l-0.7-2.9H57c-2.2,0-10.3,0.9-18.1,1.9
|
||||
c-7.8,1-18.2,2.4-23.2,2.9c-5.4,0.6-9.5,1.2-10.1,1.4c-0.6,0.2-2.1,0.6-3.2,0.8c-1,0.2-1.5,0.5-1.6,0.9c-0.1,0.4,0.3,1.3,2.7,3.3
|
||||
c1.7,1.3,8.8,7.8,16,14.5C26.6,285.8,35.2,293.7,38.7,296.7z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
11
themes/lhs-retro/layouts/404.html
Normal file
11
themes/lhs-retro/layouts/404.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "title" }}
|
||||
Page Not Found
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
Oops!
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
Sorry, this page doesn't exist!
|
||||
{{ end }}
|
||||
15
themes/lhs-retro/layouts/_default/baseof.html
Normal file
15
themes/lhs-retro/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body background="#FFFFFF" text="#000000">
|
||||
{{ partial "header.html" . }}
|
||||
{{ block "content" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
17
themes/lhs-retro/layouts/_default/list.html
Normal file
17
themes/lhs-retro/layouts/_default/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{- range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
11
themes/lhs-retro/layouts/_default/single.html
Normal file
11
themes/lhs-retro/layouts/_default/single.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
37
themes/lhs-retro/layouts/blog/list.html
Normal file
37
themes/lhs-retro/layouts/blog/list.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
|
||||
<p><i>Subscribe to our <a href="index.xml" type="application/rss+xml">RSS feed</a> to keep up to date with new
|
||||
posts.</i></p>
|
||||
|
||||
{{- range .Data.Pages.GroupByDate "2006" }}
|
||||
<h3 id="{{ .Key }}">{{ .Key }}</h3>
|
||||
|
||||
{{- range .Pages }}
|
||||
{{ $image := .Resources.GetMatch .Params.listing_image }}
|
||||
{{ $image = $image.Fill "128x128 Center jpg picture" }}
|
||||
<table border="1">
|
||||
<tr>
|
||||
<td>
|
||||
<img src="{{ $image.RelPermalink}}">
|
||||
</td>
|
||||
<td>
|
||||
<p><a href="{{ .Permalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||
{{ dateFormat "Jan 2, 2006" .PublishDate }}
|
||||
</p>
|
||||
<p><i>{{ .Summary }}</i></p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
26
themes/lhs-retro/layouts/blog/single.html
Normal file
26
themes/lhs-retro/layouts/blog/single.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
||||
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
||||
<img src="{{ $avatar.Permalink }}">
|
||||
</td>
|
||||
<td>
|
||||
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
|
||||
posted {{ .PublishDate | time.Format ":date_full" }}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
0
themes/lhs-retro/layouts/partials/foot.html
Normal file
0
themes/lhs-retro/layouts/partials/foot.html
Normal file
23
themes/lhs-retro/layouts/partials/footer.html
Normal file
23
themes/lhs-retro/layouts/partials/footer.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<hr>
|
||||
<p>
|
||||
<b>Leigh Hackspace</b><br>
|
||||
Unit 3.14, Leigh Spinners Mill<br>
|
||||
Park Lane, Leigh <br>
|
||||
WN7 2LB <br>
|
||||
<a href="mailto:info@leighhack.org">info@leighhack.org</a>
|
||||
</p>
|
||||
<p>
|
||||
<b>Socials:</b>
|
||||
{{ $menu_items := add (len .Site.Params.social_links) -1 }}
|
||||
{{- range $i, $e := .Site.Params.social_links }}
|
||||
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ .name | humanize
|
||||
}}</a>{{ if lt $i $menu_items }} / {{ end }}
|
||||
{{- end }}
|
||||
</p>
|
||||
|
||||
|
||||
<p>© {{ .Site.Params.company }} {{ .Site.Params.copyright_years }} | Initial website design by <a
|
||||
href="https://www.studiocosmos.co.uk" target="_blank" rel="noopener">COSMOS</a><br />
|
||||
{{ .Site.Title }} is a trading name of {{ .Site.Params.Company }}, registered in England & Wales No. <a
|
||||
href="https://find-and-update.company-information.service.gov.uk/company/{{ .Site.Params.company_number }}">{{
|
||||
.Site.Params.company_number }}</a></p>
|
||||
7
themes/lhs-retro/layouts/partials/head.html
Normal file
7
themes/lhs-retro/layouts/partials/head.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<meta charset="utf-8">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ absURL "blog/index.xml" }}" title="{{ .Site.Title }}">
|
||||
<link rel="alternate" type="text/calendar" href="https://api.leighhack.org/events.ics" title="{{ .Site.Title }} Events">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
13
themes/lhs-retro/layouts/partials/header.html
Normal file
13
themes/lhs-retro/layouts/partials/header.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ with resources.Get "images/rose_logo.jpg" }}
|
||||
<h1><a href="{{ absURL "" }}"><img src="{{ .RelPermalink }}" alt="The logo of Leigh Hackspace" width="70px"></a> Leigh Hackspace</h1>
|
||||
{{ end }}
|
||||
<p>
|
||||
{{ $menu_items := add (len site.Menus.main) -1 }}
|
||||
{{- range $i, $e := site.Menus.main }}
|
||||
<a href="{{ .URL }}" class="active navbar-item has-shadow is-size-5">{{ .Name }}</a>{{ if lt $i $menu_items }} / {{
|
||||
end }}
|
||||
</a>
|
||||
{{- end }}
|
||||
</p>
|
||||
<hr>
|
||||
<h2>{{ .Title }}</h2>
|
||||
7
themes/lhs-retro/layouts/shortcodes/image.html
Normal file
7
themes/lhs-retro/layouts/shortcodes/image.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }}
|
||||
{{ $width := .Get "width" }}
|
||||
{{ $img = $img.Resize (print (default "640x" $width) " jpeg picture") }}
|
||||
{{ $title := .Get "title" }}
|
||||
{{ $class := .Get "class" }}
|
||||
<img src="{{ $img.RelPermalink }}" width="{{ $img.Width }}" height="{{ $img.Height }}" {{ if $title }}
|
||||
alt="{{ $title }}" {{ end }}>
|
||||
2
themes/lhs-retro/layouts/shortcodes/rawhtml.html
Normal file
2
themes/lhs-retro/layouts/shortcodes/rawhtml.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- raw html -->
|
||||
{{.Inner}}
|
||||
11
themes/lhs-retro/theme.toml
Normal file
11
themes/lhs-retro/theme.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
name = "lhs-retro"
|
||||
license = "All Rights Reserved"
|
||||
description = "A retro theme for Leigh Hackspace"
|
||||
homepage = "https://retro.leighhack.org/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.111.3"
|
||||
|
||||
[author]
|
||||
name = "Andrew Williams"
|
||||
homepage = "https://nikdoof.com"
|
||||
Reference in New Issue
Block a user