Skip to content

Commit

Permalink
Small design changes, adding JetBrains Mono, adding small links to ne…
Browse files Browse the repository at this point in the history
…wsletter
  • Loading branch information
nathanlong committed Jul 28, 2023
1 parent 0612298 commit b947fb9
Show file tree
Hide file tree
Showing 16 changed files with 277 additions and 143 deletions.
2 changes: 1 addition & 1 deletion _includes/labitem.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li class="list-none flex items-start">
<div class="lablist-image aspect-square rounded overflow-hidden">
<div class="lablist-image aspect-square rounded-1 overflow-hidden">
<a class="lablist-image-link" href="{{ lab.url if lab.url else lab.source }}">
<img src="{{ lab.image }}" alt="{{ lab.imageAlt if lab.imageAlt else ''}}" class="w-full h-auto" width="172.5" height="172.5">
</a>
Expand Down
6 changes: 3 additions & 3 deletions _includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
<link rel="icon" href="{{ '/icon.svg' | url }}" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ '/apple-touch-icon.png' | url }}">
<link rel="manifest" href="{{ '/site.webmanifest' | url }}">
<link rel="stylesheet" href="{{ '/css/index.css' | url }}">
<link rel="stylesheet" href="{{ '/css/styles.css' | url }}">
<link rel="alternate" href="{{ metadata.feed.path }}" type="application/atom+xml" title="{{ metadata.title }}">
<link rel="alternate" href="{{ metadata.jsonfeed.path }}" type="application/json" title="{{ metadata.title }}">
</head>
<body>
<body{% if bodyClass %} class="{{ bodyClass }}"{% endif %}>
<script>
// Prevent FART (look it up) by blocking render for a tiny bit...
// First check for local settings, then check media queries, then apply fallback
Expand Down Expand Up @@ -83,7 +83,7 @@
{%- for entry in collections.all | eleventyNavigation %}
<li class="font-small"><a class="decoration-none" href="{{ entry.url | url }}">{{ entry.title }}</a></li>
{%- endfor %}

<li class="font-small"><a class="decoration-none" href="{{ '/newsletter' | url }}">Newsletter</a></li>
<li class="font-small"><a class="decoration-none" href="{{ '/feed/feed.xml' | url }}">RSS</a></li>
</menu>
</footer>
Expand Down
1 change: 1 addition & 0 deletions _includes/layouts/page.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: layouts/base.njk
templateClass: tmpl-page
bodyClass: radial-mid
---
<section class="mt-content text-center">
<h1 class="mb-1/4">{{ title }}</h1>
Expand Down
12 changes: 9 additions & 3 deletions _includes/layouts/post.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: layouts/base.njk
templateClass: tmpl-post prose
bodyClass: radial-mid
---

<div class="mt-content feature text-center mb-2">
Expand All @@ -17,11 +18,16 @@ templateClass: tmpl-post prose
{{ content | safe }}

<div class="mt-2">
<p class="section-eyebrow m-0">Discussion</p>
<p class="section-eyebrow m-0 color-accent">Newsletter</p>
<p>Want to receive these thoughts and others <a href="{{ '/newsletter' | url }}">in your inbox?</a></p>
</div>

<div class="mt-2">
<p class="section-eyebrow m-0 color-accent">Discussion</p>

{% set mailitems = ['mailto:', metadata.author.email, '?subject=Re:', title] %}
<p>Want to discuss? Reply by:
<a href="{{ mailitems | join }}">Email</a>
<p>Want to discuss this?
<a href="{{ mailitems | join }}">Email Me</a>
</p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion _includes/nav.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a class="sr-only sr-only-focus skip-link bg-editor relative z-4" href="#main">Skip to main content</a>
<header class="header mt-1/2" data-module="nav" data-mobile="false" data-pref="false">
<header class="header pt-1/2" data-module="nav" data-mobile="false" data-pref="false">
<div class="logo">
<a class="logo-link" href="{{ '/' | url }}" title="{{metadata.title}}">
<span class="sr-only">{{ metadata.title }}</span>
Expand Down
2 changes: 1 addition & 1 deletion content/about.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content/blog.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: layouts/full.njk
permalink: /blog/
bodyClass: radial-mid
eleventyNavigation:
key: posts
title: Blog
Expand Down
8 changes: 3 additions & 5 deletions content/blog/blog.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
module.exports = {
tags: [
"posts"
],
"layout": "layouts/post.njk",
};
tags: ['posts'],
layout: 'layouts/post.njk',
}
1 change: 1 addition & 0 deletions content/lab.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: layouts/full.njk
permalink: /lab/
bodyClass: radial-mid
eleventyNavigation:
key: lab
title: Lab
Expand Down
27 changes: 27 additions & 0 deletions content/newsletter.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: layouts/full.njk
bodyClass: radial-mid
permalink: /newsletter/
---

<section class="mt-content text-center">
<h1>Newsletter</h1>
<p>Every week I spew out thoughts, links, and occasional insights about working in the web industry.</p>
</section>

<hr class="mt-2 mb-2">


<h3>Subscribe to 'Net Noodlings with Nathan'</h3>

<div class="rounded-1 overflow-hidden leading-none">
<iframe
scrolling="no"
style="width:100%!important;height:180px; border:0;"
src="https://buttondown.email/nathanlong?as_embed=true"
></iframe>
</div>

<p>To see what schenanigans you can expect, <a href="https://buttondown.email/nathanlong/archive">view the archives</a>, or even subscribe through <a href="#">RSS</a>.</p>

<p>I will never spam you. <small class="font-xsmall">Only send bad jokes...</small></p>
2 changes: 1 addition & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = function(eleventyConfig) {
"md",
"njk",
"html",
"liquid"
"liquid",
],

// Pre-process *.md files with: (default: `liquid`)
Expand Down

0 comments on commit b947fb9

Please sign in to comment.