* [sup-website.git] branch master updated (b791e6e -> 78e88eb)
@ 2026-10-20 11:12 Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 01/02: set img width and height Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 02/02: page speed improvements for web fonts Dan Callaghan
0 siblings, 2 replies; 3+ messages in thread
From: Dan Callaghan @ 2026-10-20 11:12 UTC (permalink / raw)
To: sup-commits
Pushed branch master:
from b791e6e dial up the fake CRT glow effect
new 3a421b6 set img width and height
new 78e88eb page speed improvements for web fonts
Summary of changes:
_plugins/webfonts.rb | 38 ++++++++++++++++++++++++++++----------
fonts/.htaccess | 1 +
index.md | 9 +--------
screenshots/index.md | 14 +++++++-------
stylesheets/public-inbox.css | 5 +++--
stylesheets/stylesheet.css | 6 ++++--
6 files changed, 44 insertions(+), 29 deletions(-)
create mode 100644 fonts/.htaccess
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-website.git] 01/02: set img width and height
2026-10-20 11:12 [sup-website.git] branch master updated (b791e6e -> 78e88eb) Dan Callaghan
@ 2026-10-20 11:12 ` Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 02/02: page speed improvements for web fonts Dan Callaghan
1 sibling, 0 replies; 3+ messages in thread
From: Dan Callaghan @ 2026-10-20 11:12 UTC (permalink / raw)
To: sup-commits
New commit on branch master:
https://supmua.dev/git/sup-website/commit/3a421b62231db4c4ddc590b51ee9078fc46914bc.html
commit 3a421b62231db4c4ddc590b51ee9078fc46914bc
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Tue Oct 20 20:05:02 2026 +1100
set img width and height
---
index.md | 9 +--------
screenshots/index.md | 14 +++++++-------
stylesheets/stylesheet.css | 1 +
3 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/index.md b/index.md
index a08bc41..0b6a592 100644
--- a/index.md
+++ b/index.md
@@ -1,8 +1,5 @@
---
layout: narrow_page
-screenshots:
- - /screenshots/1.4/inbox.png
-
---
**Sup** is a console-based email client for people with a lot of email.
@@ -12,11 +9,7 @@ It supports a very fast full-text search, automatic contact-list management, cus
If you're the type of person who treats email as an extension of your long-term memory, Sup is for you.
-{% for shot in page.screenshots %}
-<a href="{{shot}}">
- <img src="{{shot}}"/>
-</a>
-{% endfor %}
+<a href="screenshots/1.4/inbox.png"><img src="screenshots/1.4/inbox.png" width="1920" height="1148"></a>
## Installation
Install the sup rubygem and run the sup-config utility to build a configuration:
diff --git a/screenshots/index.md b/screenshots/index.md
index 48bb179..a03761b 100644
--- a/screenshots/index.md
+++ b/screenshots/index.md
@@ -3,45 +3,45 @@ title: sup screenshots
layout: gallery
---
<figure>
- <a href="1.4/inbox.png"><img src="1.4/inbox.png"></a>
+ <a href="1.4/inbox.png"><img src="1.4/inbox.png" width="1920" height="1148"></a>
<figcaption>
Sup starts in inbox-mode: a list of threads tagged <tt class="code">inbox</tt>.
</figcaption>
</figure>
<figure>
- <a href="1.4/search-results.png"><img src="1.4/search-results.png"></a>
+ <a href="1.4/search-results.png"><img src="1.4/search-results.png" width="1920" height="1148"></a>
<figcaption>
<a href="https://github.com/sup-heliotrope/sup/wiki/Searching-Your-Mail">Search your mail</a>
and Sup displays a list of matching threads in search-results-mode.
</figcaption>
</figure>
<figure>
- <a href="1.4/thread-view.png"><img src="1.4/thread-view.png"></a>
+ <a href="1.4/thread-view.png"><img src="1.4/thread-view.png" width="1920" height="1148"></a>
<figcaption>
In thread-view-mode, read messages are collapsed to a single line by default.
</figcaption>
</figure>
<figure>
- <a href="1.4/reply.png"><img src="1.4/reply.png"></a>
+ <a href="1.4/reply.png"><img src="1.4/reply.png" width="1920" height="1148"></a>
<figcaption>
When replying to a message, reply-mode is pre-populated with quoted text.
Press <tt class="code">Enter</tt> to edit the reply in your preferred editor.
</figcaption>
</figure>
<figure>
- <a href="1.4/help.png"><img src="1.4/help.png"></a>
+ <a href="1.4/help.png"><img src="1.4/help.png" width="1920" height="1148"></a>
<figcaption>
Press <tt class="code">?</tt> in any mode to see the key bindings for the current mode.
</figcaption>
</figure>
<figure>
- <a href="1.4/log.png"><img src="1.4/log.png"></a>
+ <a href="1.4/log.png"><img src="1.4/log.png" width="1920" height="1148"></a>
<figcaption>
The log-mode buffer shows Sup’s internal log messages for debugging purposes.
</figcaption>
</figure>
<figure>
- <a href="1.4/console.png"><img src="1.4/console.png"></a>
+ <a href="1.4/console.png"><img src="1.4/console.png" width="1920" height="1148"></a>
<figcaption>
Sup has a built-in interactive Ruby console.
It can access Sup internal Ruby objects.
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
index 671dd66..0a22b15 100644
--- a/stylesheets/stylesheet.css
+++ b/stylesheets/stylesheet.css
@@ -112,6 +112,7 @@ header .tagline {
}
section img {
width: 100%;
+ height: auto;
box-shadow: 1px 1px 10px rgb(128,128,128);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [sup-website.git] 02/02: page speed improvements for web fonts
2026-10-20 11:12 [sup-website.git] branch master updated (b791e6e -> 78e88eb) Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 01/02: set img width and height Dan Callaghan
@ 2026-10-20 11:12 ` Dan Callaghan
1 sibling, 0 replies; 3+ messages in thread
From: Dan Callaghan @ 2026-10-20 11:12 UTC (permalink / raw)
To: sup-commits
New commit on branch master:
https://supmua.dev/git/sup-website/commit/78e88eb6513df2b734d072c74485d4403593f687.html
commit 78e88eb6513df2b734d072c74485d4403593f687
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Tue Oct 20 22:03:37 2026 +1100
page speed improvements for web fonts
Avoid CSS @import which requires extra critical path HTTP requests. Make
the Jekyll plugin inline it into the stylesheet instead.
Put WOFF files under a cache-busting URL named after the nix derivation
hash and give it infinite cache lifetime.
---
_plugins/webfonts.rb | 38 ++++++++++++++++++++++++++++----------
fonts/.htaccess | 1 +
stylesheets/public-inbox.css | 5 +++--
stylesheets/stylesheet.css | 5 +++--
4 files changed, 35 insertions(+), 14 deletions(-)
diff --git a/_plugins/webfonts.rb b/_plugins/webfonts.rb
index 85277e7..092cd2f 100644
--- a/_plugins/webfonts.rb
+++ b/_plugins/webfonts.rb
@@ -1,13 +1,31 @@
-require 'fileutils'
require 'open3'
-Jekyll::Hooks.register :site, :post_write do |site|
- Jekyll.logger.info "Fonts:", "Building"
- out, err, status = Open3.capture3 "nix-build", "_plugins/webfonts.nix", "--no-out-link"
- raise "nix-build failed: #{err}" unless status.success?
- result = out.strip
- FileUtils.mkdir_p "#{site.dest}/fonts"
- Dir["#{result}/*.css"].each { |f| FileUtils.cp f, "#{site.dest}/fonts" }
- FileUtils.mkdir_p "#{site.dest}/fonts/WOFF2"
- Dir["#{result}/WOFF2/*"].each { |f| FileUtils.cp f, "#{site.dest}/fonts/WOFF2" }
+# A static file copied from outside the site source (the Nix store)
+class WebfontFile < Jekyll::StaticFile
+ def initialize(site, source, dir)
+ super(site, site.source, dir, File.basename(source))
+ @source = source
+ end
+
+ def path
+ @source
+ end
+end
+
+class WebfontsGenerator < Jekyll::Generator
+ def generate(site)
+ Jekyll.logger.info "Fonts:", "Building"
+ out, err, status = Open3.capture3 "nix-build", "_plugins/webfonts.nix", "--no-out-link"
+ raise "nix-build failed: #{err}" unless status.success?
+ result = out.strip
+ # Serve fonts under the store path hash so their URLs can be cached forever
+ dir = "fonts/#{File.basename(result).split("-").first}"
+ Dir["#{result}/WOFF2/*"].each do |f|
+ site.static_files << WebfontFile.new(site, f, dir)
+ end
+ # Font CSS for stylesheets/stylesheet.css to include
+ site.data["webfonts_css"] = Dir["#{result}/*.css"].sort.map do |f|
+ File.read(f).gsub("url('WOFF2/", "url('../#{dir}/")
+ end.join
+ end
end
diff --git a/fonts/.htaccess b/fonts/.htaccess
new file mode 100644
index 0000000..d600afd
--- /dev/null
+++ b/fonts/.htaccess
@@ -0,0 +1 @@
+Header set Cache-Control "public, max-age=31536000, immutable"
diff --git a/stylesheets/public-inbox.css b/stylesheets/public-inbox.css
index 2015385..174e851 100644
--- a/stylesheets/public-inbox.css
+++ b/stylesheets/public-inbox.css
@@ -1,5 +1,6 @@
-@import "../fonts/Iosevka.css";
-@import "../fonts/IosevkaAile.css";
+---
+---
+{{ site.data.webfonts_css }}
body {
background: #151515 url("/images/bkg.png") 0 0;
color: #eaeaea;
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
index 0a22b15..81464ea 100644
--- a/stylesheets/stylesheet.css
+++ b/stylesheets/stylesheet.css
@@ -1,5 +1,6 @@
-@import "../fonts/Iosevka.css";
-@import "../fonts/IosevkaAile.css";
+---
+---
+{{ site.data.webfonts_css }}
body {
margin: 0;
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-20 11:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 11:12 [sup-website.git] branch master updated (b791e6e -> 78e88eb) Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 01/02: set img width and height Dan Callaghan
2026-10-20 11:12 ` [sup-website.git] 02/02: page speed improvements for web fonts Dan Callaghan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox