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
|
||||
title: Warwick New
|
||||
theme: warwick_portfolio
|
||||
pluralizeListTitles: false
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ title: "Playing With C and Sockets"
|
|||
date: 2023-11-07T15:19:57Z
|
||||
thumbnail: /thumbnails/c-socks.png
|
||||
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 */}
|
||||
|
||||
:root {
|
||||
--text: #f5f3f0;
|
||||
--background: #0a0803;
|
||||
--primary: #ff930f;
|
||||
--secondary: #6f613d;
|
||||
--accent: #ad975f;
|
||||
--paper: #050606;
|
||||
|
||||
--text: #b4bfc0;
|
||||
--background: #010202;
|
||||
--primary: #e3eff2;
|
||||
--secondary: #00bcd1;
|
||||
--accent: #8c240d;
|
||||
--paper: #050606;
|
||||
}
|
||||
|
||||
/* Custom CSS */
|
||||
|
|
@ -53,11 +47,30 @@ a:hover {
|
|||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: var(--paper);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.homepage-header {
|
||||
background-color: var(--paper);
|
||||
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 {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{ if ne .IsHome true }}
|
||||
{{- partial "header.html" . -}}
|
||||
{{ end }}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@
|
|||
<a style="text-decoration: none" href="/">
|
||||
<h1 style="display:inline; color:var(--primary)">{{.Title}}</h1>
|
||||
</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>
|
||||
</header>
|
||||
|
||||
|
|
@ -27,8 +32,8 @@
|
|||
<div class="container">
|
||||
<h2>Blog</h2>
|
||||
<hr>
|
||||
{{- $pageLen := len (where .Site.RegularPages "Type" "posts") -}}
|
||||
{{- range $i, $element := (where .Site.RegularPages "Type" "posts") }}
|
||||
{{- $pageLen := len (where .Site.RegularPages "Type" "blog") -}}
|
||||
{{- range $i, $element := (where .Site.RegularPages "Type" "blog") }}
|
||||
{{ .Render "summary" }}
|
||||
{{- if lt $i (sub $pageLen 1) }} <hr> {{ end -}}
|
||||
{{- end }}
|
||||
|
|
@ -37,8 +42,8 @@
|
|||
<div class="container">
|
||||
<h2>Research Papers</h2>
|
||||
<hr>
|
||||
{{- $pageLen := len (where .Site.RegularPages "Type" "papers") -}}
|
||||
{{- range $i, $element := (where .Site.RegularPages "Type" "papers") }}
|
||||
{{- $pageLen := len (where .Site.RegularPages "Type" "research papers") -}}
|
||||
{{- range $i, $element := (where .Site.RegularPages "Type" "research papers") }}
|
||||
{{ .Render "summary" }}
|
||||
{{- if lt $i (sub $pageLen 1) }} <hr> {{ 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">
|
||||
{{ $logo := (resources.Get "/img/logo.png").Resize "100x100" }}
|
||||
<a href="/">
|
||||
<img style="padding-right: 1em" src="{{ $logo.RelPermalink }}" alt="logo">
|
||||
</a>
|
||||
<div>
|
||||
<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>
|
||||
<span>
|
||||
{{ range .Site.Sections }}
|
||||
</div>
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ min_version = "0.41.0"
|
|||
|
||||
[author]
|
||||
name = "Warwick New"
|
||||
homepage = "https://warwick-new.co.uk"
|
||||
homepage = "https://warwicknew.co.uk"
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
|
|
|
|||
Loading…
Reference in a new issue