First publishable version of the new site.
This commit is contained in:
parent
dfe22b5411
commit
7a7258c520
11 changed files with 60 additions and 25 deletions
|
|
@ -2,3 +2,4 @@ baseURL: https://warwicknew.co.uk
|
||||||
languageCode: en-us
|
languageCode: en-us
|
||||||
title: Warwick New
|
title: Warwick New
|
||||||
theme: warwick_portfolio
|
theme: warwick_portfolio
|
||||||
|
pluralizeListTitles: false
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@ title: "Playing With C and Sockets"
|
||||||
date: 2023-11-07T15:19:57Z
|
date: 2023-11-07T15:19:57Z
|
||||||
thumbnail: /thumbnails/c-socks.png
|
thumbnail: /thumbnails/c-socks.png
|
||||||
draft: true
|
draft: true
|
||||||
tags: ["draft", "c", "web-development", "Sockets"]
|
tags: ["c", "web-development", "Sockets"]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -17,18 +17,12 @@ h5 {font-size: 1.333rem; /* 21.28px */}
|
||||||
small {font-size: 0.750rem; /* 12px */}
|
small {font-size: 0.750rem; /* 12px */}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--text: #f5f3f0;
|
|
||||||
--background: #0a0803;
|
|
||||||
--primary: #ff930f;
|
|
||||||
--secondary: #6f613d;
|
|
||||||
--accent: #ad975f;
|
|
||||||
--paper: #050606;
|
|
||||||
|
|
||||||
--text: #b4bfc0;
|
--text: #b4bfc0;
|
||||||
--background: #010202;
|
--background: #010202;
|
||||||
--primary: #e3eff2;
|
--primary: #e3eff2;
|
||||||
--secondary: #00bcd1;
|
--secondary: #00bcd1;
|
||||||
--accent: #8c240d;
|
--accent: #8c240d;
|
||||||
|
--paper: #050606;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Custom CSS */
|
/* Custom CSS */
|
||||||
|
|
@ -53,11 +47,30 @@ a:hover {
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background-color: var(--paper);
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.homepage-header {
|
.homepage-header {
|
||||||
background-color: var(--paper);
|
background-color: var(--paper);
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: .5rem;
|
||||||
|
background: var(--paper);
|
||||||
|
color: var(--text);
|
||||||
|
font-weight: var(--text);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.flex-wrap-container {
|
.flex-wrap-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
<body>
|
<body>
|
||||||
{{- partial "header.html" . -}}
|
{{ if ne .IsHome true }}
|
||||||
<div id="content">
|
{{- partial "header.html" . -}}
|
||||||
{{- block "main" . }}{{- end }}
|
{{ end }}
|
||||||
</div>
|
<div id="content">
|
||||||
{{- partial "footer.html" . -}}
|
{{- block "main" . }}{{- end }}
|
||||||
</body>
|
</div>
|
||||||
|
{{- partial "footer.html" . -}}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,11 @@
|
||||||
<a style="text-decoration: none" href="/">
|
<a style="text-decoration: none" href="/">
|
||||||
<h1 style="display:inline; color:var(--primary)">{{.Title}}</h1>
|
<h1 style="display:inline; color:var(--primary)">{{.Title}}</h1>
|
||||||
</a>
|
</a>
|
||||||
|
<span style="margin-left: auto;">
|
||||||
|
{{ range .Site.Sections.Reverse }}
|
||||||
|
<a href="{{ .Permalink }}"><h4 style="display: inline-block; padding-left:.75em;">{{ .Title }}</h4></a>
|
||||||
|
{{ end }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|
@ -27,8 +32,8 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Blog</h2>
|
<h2>Blog</h2>
|
||||||
<hr>
|
<hr>
|
||||||
{{- $pageLen := len (where .Site.RegularPages "Type" "posts") -}}
|
{{- $pageLen := len (where .Site.RegularPages "Type" "blog") -}}
|
||||||
{{- range $i, $element := (where .Site.RegularPages "Type" "posts") }}
|
{{- range $i, $element := (where .Site.RegularPages "Type" "blog") }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{- if lt $i (sub $pageLen 1) }} <hr> {{ end -}}
|
{{- if lt $i (sub $pageLen 1) }} <hr> {{ end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
@ -37,8 +42,8 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2>Research Papers</h2>
|
<h2>Research Papers</h2>
|
||||||
<hr>
|
<hr>
|
||||||
{{- $pageLen := len (where .Site.RegularPages "Type" "papers") -}}
|
{{- $pageLen := len (where .Site.RegularPages "Type" "research papers") -}}
|
||||||
{{- range $i, $element := (where .Site.RegularPages "Type" "papers") }}
|
{{- range $i, $element := (where .Site.RegularPages "Type" "research papers") }}
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
{{- if lt $i (sub $pageLen 1) }} <hr> {{ end -}}
|
{{- if lt $i (sub $pageLen 1) }} <hr> {{ end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
<footer>
|
||||||
|
© Warwick New. All rights reserved. 2020 - {{now.Year}}
|
||||||
|
</footer>
|
||||||
|
|
@ -1,15 +1,26 @@
|
||||||
|
|
||||||
<header id="homepage-header" class="homepage-header">
|
<header id="header" class="header">
|
||||||
<div class="flex-wrap-container" style="align-items:center">
|
<div class="flex-wrap-container" style="align-items:center">
|
||||||
{{ $logo := (resources.Get "/img/logo.png").Resize "100x100" }}
|
{{ $logo := (resources.Get "/img/logo.png").Resize "100x100" }}
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<img style="padding-right: 1em" src="{{ $logo.RelPermalink }}" alt="logo">
|
<img style="padding-right: 1em" src="{{ $logo.RelPermalink }}" alt="logo">
|
||||||
</a>
|
</a>
|
||||||
|
<div>
|
||||||
<a style="text-decoration: none" href="/">
|
<a style="text-decoration: none" href="/">
|
||||||
<h1 style="display:inline; color:var(--primary)">{{.Title}}</h1>
|
<h1 style="display:inline; color:var(--primary)">{{.Site.Title}}</h1>
|
||||||
|
<nav aria-label="breadcrumb" >
|
||||||
|
{{ range $index, $value := .Ancestors.Reverse }}
|
||||||
|
{{ if (ne $index 0) }}
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||||
|
→
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
<a aria-current="page" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||||
|
</nav>
|
||||||
</a>
|
</a>
|
||||||
<span>
|
</div>
|
||||||
{{ range .Site.Sections }}
|
<span style="margin-left: auto;">
|
||||||
|
{{ range .Site.Sections.Reverse }}
|
||||||
<a href="{{ .Permalink }}"><h4 style="display: inline-block; padding-left:.75em;">{{ .Title }}</h4></a>
|
<a href="{{ .Permalink }}"><h4 style="display: inline-block; padding-left:.75em;">{{ .Title }}</h4></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ min_version = "0.41.0"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "Warwick New"
|
name = "Warwick New"
|
||||||
homepage = "https://warwick-new.co.uk"
|
homepage = "https://warwicknew.co.uk"
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue