Merge pull request #23 from andrwcnln/dev

[2024-02-16] New website design
This commit is contained in:
Andrew Conlin 2024-02-16 17:22:53 +00:00 committed by GitHub
commit 5b82d9b44c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 104 additions and 69 deletions

View File

@ -18,7 +18,7 @@ defaults:
path: "_posts/blog"
type: posts
values:
permalink: blog/:year/:month/:day/:title/
permalink: blog/:year/:title/
layout: post
# til
- scope:
@ -33,7 +33,7 @@ defaults:
path: "_posts/weeklinks"
type: posts
values:
permalink: blog/:year/:month/:day/:title/
permalink: weeklinks/:title/
category: weeklinks
layout: post

View File

@ -1,8 +1,8 @@
<br>
<div style="text-align: center;">
<i>
<code>
Made with 💕 (and Jekyll)<br>
© Andrew Conlin 2023-2024<br>
All rights reverse engineered
</i>
</code>
</div>

6
_includes/header.html Normal file
View File

@ -0,0 +1,6 @@
<h1><a href="/">andrewconl.in</a></h1>
<div>
<code style="font-size: x-large;"><a href="/blog">blog</a> // <a href="/weeklinks">weeklinks</a> // <a href="/til">til</a> // <a>projects</a> // <a>meta</a></code>
</div>
<br>
<hr>

View File

@ -1,4 +1,4 @@
<hr><br>
<div style="text-align: center;">
<i>Issues or comments? <a href="mailto:andrew@andrewconl.in">Email me!</a></i>
<code>Issues or comments? <a href="mailto:andrew@andrewconl.in">Email me!</a></code>
</div>

View File

@ -19,14 +19,8 @@
<body>
<div class="container">
<div class="content">
{% if page.backlink == true %}
<a href="/"><-- back</a>
{% endif %}
<h1>
{{ page.title }}
</h1>
{{ page.subtitle }}
<div class="content">
{% include header.html %}
{{ content }}
{% include defaultFooter.html %}
</div>

View File

@ -1,11 +1,12 @@
---
layout: default
---
<code>
<span style="font-size: x-large;"><a href="/">~</a> > <a href="/{{page.category}}">{{page.category}}</a> > <a href="">{{page.title}}</a><br></span>
<p>
Posted {{ page.date | date_to_string }} to <a href="/">Andrew Conlin's blog</a><br>
Reading time: {{ content | reading_time | pluralize: "minute" }}
</p>
{{ page.date | date: "%Y-%m-%d" }}<br>
{{ content | reading_time | pluralize: "minute" }}
</code>
<hr>
{{ content }}

View File

@ -1,5 +1,5 @@
---
title: Weeklinks 001 - Philosophy, grief and macaques
title: 001 - Philosophy, grief and macaques
category: weeklinks
layout: post
---

View File

@ -1,5 +1,5 @@
---
title: Weeklinks 002 - Trains, iPods and plagiarism
title: 002 - Trains, iPods and plagiarism
category: weeklinks
layout: post
---

View File

@ -1,5 +1,5 @@
---
title: Weeklinks 003 - Bryan, Cory and Mickey
title: 003 - Bryan, Cory and Mickey
category: weeklinks
layout: post
---

View File

@ -1,5 +1,5 @@
---
title: Weeklinks 004 - Obfuscation, dial-up and tiny chess
title: 004 - Obfuscation, dial-up and tiny chess
category: weeklinks
layout: post
---

View File

@ -1,5 +1,5 @@
---
title: Weeklinks 005 - ccTLDs, BBC Basic and 6174
title: 005 - ccTLDs, BBC Basic and 6174
category: weeklinks
layout: post
---

View File

@ -1,5 +1,5 @@
body {
font-family: Arial, Helvetica, sans-serif;
font-family: monospace;
}
div.container {
@ -7,7 +7,7 @@ div.container {
}
div.content {
width: 40%;
width: 50%;
height: auto;
margin: 0 auto;
position: relative;
@ -41,10 +41,26 @@ div.content {
}
body {
background-color: #1a1b26;
color: #a9b1d6;
background-color: #ffffff;
color: #000000;
}
a {
color: #9ece6a;
pre {
background-color:antiquewhite;
padding: 10px 10px 10px 10px;
border-radius: 10px;
white-space: pre-wrap;
white-space: pre-wrap;
}
hr {
border: 2px dashed #000000;
border-style: none none dashed;
color: transparent;
background-color: transparent;
}
img {
max-width:100%;
max-height:100%;
}

19
blog.html Normal file
View File

@ -0,0 +1,19 @@
---
layout: default
title: blog
permalink: /blog
backlink: false
---
<h2>Posts</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'blog' %}
<li>
<p><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>

View File

@ -1,11 +1,9 @@
---
layout: default
title: Andrew Conlin's blog
title: andrewconl.in
permalink: /
backlink: false
---
This site is designed to be kept as simple as possible.<br>
It is pure HTML/CSS [*], which keeps things small, fast and accessible.<br>
* I use a self-hosted instance of <a href="https://umami.is">umami</a> for analytics. It respects do-not-track signals.<br>
@ -14,41 +12,5 @@ email: <a href="mailto:andrew@andrewconl.in">andrew@andrewconl.in</a><br>
masto: <a rel="me" href="https://mastodon.scot/@andrwcnln">andrwcnln@mastodon.scot</a><br>
github: <a href="https://github.com/andrwcnln">@andrwcnln</a><br>
--<br>
<a href="/feed/blog.xml">rss</a><br>
<br>
<hr>
<h2>Posts</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'blog' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>
<h2>Weeklinks</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'weeklinks' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>
<h2>TIL</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'til' %}
<li>
<p><a href="{{ post.url }}">{{ post.title }}</a> -- {{ post.date | date_to_string }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
<a href="/feed.xml">rss</a><br>
<hr>

18
til.html Normal file
View File

@ -0,0 +1,18 @@
---
layout: default
title: til
permalink: /til
backlink: false
---
<h2>TIL</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'til' %}
<li>
<p><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>

19
weeklinks.html Normal file
View File

@ -0,0 +1,19 @@
---
layout: default
title: weeklinks
permalink: /weeklinks
backlink: false
---
<h2>Weeklinks</h2>
<ul style="list-style-type:none;margin:0;padding:0;">
{% for post in site.posts %}
{% assign category = post.category %}
{% if category == 'weeklinks' %}
<li>
<p><code>{{ post.date | date: "%Y-%m-%d" }}</code> // <a href="{{ post.url }}">{{ post.title }}</a></p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr>