Fix HTML 4.01 Transitional issues

This commit is contained in:
2024-02-19 14:41:50 +00:00
parent f96b0d770e
commit b0f804f9b2
5 changed files with 10 additions and 10 deletions

View File

@@ -1,2 +1,5 @@
serve:
hugo serve -D --gc -w -F
hugo serve -D --gc -w -F
serve-retro:
hugo serve -D --gc -w -F -t lhs-retro

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

View File

@@ -10,14 +10,13 @@
<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 }}
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ .name | humanize }}</a>{{ if lt $i $menu_items }} / {{ end }}
{{- end }}
</p>
<p>&copy; {{ .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 />
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>

View File

@@ -1,4 +1,3 @@
<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 }}">

View File

@@ -1,12 +1,11 @@
{{ 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>
<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>
<a href="{{ .URL }}" class="active navbar-item has-shadow is-size-5">{{ .Name }}</a>{{ if lt $i $menu_items }} / {{ end }}
{{- end }}
</p>
<hr>