Commit Graph

69 Commits (master)

Author SHA1 Message Date
Mike Gerwitz 59be8fc4c3
Better-delimited styling of code fragments in article text
Non-fenced code fragments (using backticks in Markdown) will now be
formatted with a background color, padding, and a border.  I was
avoiding this for some time, but most of my writing also didn't have a
whole lot of code in it.  That's changing with the article I'm writing
now, and it really is much more clear with this styling; it can
otherwise be more difficult than necessary to tell where a command
starts and ends, and the monospace font can sometimes be too sublte of
an indicator for shorter text, or text that uses characters that are
harder to distinguish.
2024-03-18 23:41:16 -04:00
Mike Gerwitz 8ce8b5a7f7
HTML details styling and parsing improvements
The article I'm working on makes (very) heavy use of the `details` HTML
element, and nests them.  Making sense of the article without
indentation is difficult and torturous.

This has complicated the prefmt script enough that it really ought to be
extracted into something else.  I'm admittedly disappointed that I've
had to do this much work with it, because it completely sacrifies any
hope of portability.  Oh well, that's not even a design goal, though
it'd be nice to be able to have the preview of Markdown files make sense
in e.g. Forejo.

I figured I'd have the least numbre of problems with nesting if I strip
whitespace prefixes based on the current level of nesting.  To avoid
surprises, I enforce expectations statically---it will not compile
without proper nesting.

To reduce the potential blast radius, I'm doing this only for `details`
for now; it'll expand later on.  I did diff the output of older articles
to make sure they were unaffected.
2024-03-18 23:32:57 -04:00
Mike Gerwitz 8c92c57faa
Use pandoc-generated source code highlighting CSS
I previously included hard-coded CSS.  Pandoc will apparently generate
what is needed for the page, but I didn't have that included in my
template.

I chose Tango out of a nearly 20y personal preference now, ever since I
used the Tango Icon Theme in Ubunutu Dapper Drake (6.06), my introducing
to GNOME/GTK.  I might have used Breezy, too, I don't recall.

Prior to that I think I used Mandrake (before it was Mandriva), which
was the first distro I tried, after my laptop's HDD died and I was
awaiting a replacement (couldn't run Windows without a HDD).

...anyway.
2024-03-18 23:28:46 -04:00
Mike Gerwitz 3912fc56dd
Use forge.mikegerwitz.com (Forgejo) instance for /projects
This removes the cgit configuration and added redirects.  I'll check the
404 log and determine if I should add others in the future, if it's
worth the effort.
2023-03-21 00:43:15 -04:00
Mike Gerwitz d70dd4aac8
LibrePlanet 2021: Adopting Free Software Ideals
Information about upcoming talk at LP2021.
2021-02-24 22:14:12 -05:00
Mike Gerwitz 4d53191079
style.css (article details > summary): pointer 2020-05-20 00:54:38 -04:00
Mike Gerwitz 0dd84e4952
style.css: Add missing h5, h6 styling 2020-03-31 23:48:35 -04:00
Mike Gerwitz f5567fc8c5
Better figure styling
Figures will have margins on the left and right sides by default, unless
explicitly denoted "inline".  The caption will also be a lighter typeface
rather than bold.  When the figure caption appears at the bottom, it will
have a top border.
2020-03-31 23:48:19 -04:00
Mike Gerwitz b3ad4f7599
style.css (figure): New styling 2020-03-31 23:47:33 -04:00
Mike Gerwitz 95408e5571
style.css (article aside): New Style 2020-03-31 23:47:27 -04:00
Mike Gerwitz 3ec6034a0b
style.css (article pre): Reduce line-height 2020-03-31 23:47:22 -04:00
Mike Gerwitz fde5d3e890
Add lp2019 talk cs4m 2019-03-25 20:53:37 -04:00
Mike Gerwitz 133282e224
style.css: Better delimit sections and mute footnotes
This increases the headings, gives them slightly larger margins, decreases
the font size for footnotes, decreases the line-height, and lightens the
weight of the font.  I think this makes it easier to eyeball the different
sections (especially in the article I will be publishing shortly), and
further helps to emphasize that the footnotes are subservient to the text.
2019-02-07 00:50:36 -05:00
Mike Gerwitz 89328fe206
Generate inline CSS for page header
The idea here is to provide as little CSS as is sensible for the initial
page load to be styled in a layout similar to the final layout.  This
initial styling may be briefly visible on a slow conection.

Slow connections can happen for a variety of reasons.  For example, I'm a
Tor user, and connection speeds vary.  Mobile connection speeds can also
vary wildly.

This adds a few hundred bytes, but I was able to cut it down quite a bit,
and I don't find this to be unreasonable relative to the other data on
each page.
2019-01-19 00:50:06 -05:00
Mike Gerwitz 20a9d36077
style.css: Maximum header width
This is the maximum width of the posts page.  It does not look good to
have the header span the whole page on a 4K monitor.
2019-01-18 23:15:47 -05:00
Mike Gerwitz 7c48d09333
style.css: cgit font override for consistency 2019-01-18 00:39:13 -05:00
Mike Gerwitz 3ac7ca77e3
style.css: Minor fixes and warning for IE11 users
I only noticed this issue because my work computer has IE11 installed.  I will not be
supporting it.  Edge works just fine and IE is just about extinct, finally.

Of couse, I recomend using a free/libre browser.
2019-01-18 00:34:11 -05:00
Mike Gerwitz 572baca876
style.css: Consistent colors for header borders 2019-01-17 23:53:17 -05:00
Mike Gerwitz f80dae920f
style.css (blockquote): Add left border and remove right margin
This also is better for lower resolutions / higher font sizes, since
the right margin is spared.
2019-01-17 23:50:13 -05:00
Mike Gerwitz 0745930e55
style.css: Correct responsive post header margins
This was missed in an earlier commit.
2019-01-17 23:04:41 -05:00
Mike Gerwitz be20a0eb7d
style.css: cgit Projects heading size fix
Now matches headings on other pages.
2019-01-17 01:37:09 -05:00
Mike Gerwitz f0a08f8755
src/cgit: Add existing configuration
This contains the old header and footer.  Committing this first will allow
us to easily see the diff.
2019-01-17 01:30:17 -05:00
Mike Gerwitz 6d9defe292
Link to source code of post
Rather than displaying the hash separately, this just makes the date a link
to the source code.  Until I display a modification date, this will also
make it easy to see the history of the file.
2019-01-17 01:29:46 -05:00
Mike Gerwitz f38aada781
Responsive desgin
This website honors the user's default font settings (both to be kind and
for accessibility reasons).  Consequently, the responsive layout is based on
character units (ch) rather than pixels.
2019-01-17 00:01:12 -05:00
Mike Gerwitz 4052fc547a
Index page sapsf highlight cleanup
This corrects the padding and provides better placement for the
talk link.
2019-01-16 23:44:52 -05:00
Mike Gerwitz b6762c2dfc
Source Sans Pro => Open Sans
This goes back to Open Sans, which is what I was using previously.

I really like Source Sans Pro.  Unfortunately, the font rendered far too
small relative to other sans-serif fonts, which caused an unpleasent
experience for both slow page loads (e.g. over Tor or slower
connections) and for users with web fonts disabled (e.g. via NoScript).

Further, the font is huge: the WOFF is over 100KiB per font, and I was
using regular and light versions.  Open Sans, in contrast, is <20KiB per
font, allowing me to use Regular, Light, and SemiBold and still be about
half the size of the single Source Sans Pro Regular.

As a bonus, users may also already have Open Sans installed on their
system.

I settled with WOFF instead of WOFF2 for browser support.

The site now looks pretty close on fallback, which is good.  For
example, I use DejaVu Sans as my default font, and it even has a Light
version that renders correctly.

As with all resources on my site, I host this from my own domain rather
than via Google's servers.  That means that the font won't be cached for
users when they first visit the site, but that's okay---privacy is more
important.

I should note that, since I use NoScript, I almost never load web fonts
for other sites.  But I still wanted to try to provide a consistent look
across systems for those who do wish to load fonts.
2019-01-16 23:44:47 -05:00
Mike Gerwitz b182ea79b3
Majority of work on generation of new static site
I didn't originally intend for all of this to be in a single commit.  But
here we are.  I don't have the time to split these up more cleanly; this
project is taking more time than I originally hoped that it would.

This is a new static site generator.  More information to follow in the
near future (hopefully in the form of an article), but repo2html is now
removed.  See code comments for additional information; I tried to make it
suitable as a learning resource for others.  It is essentially a set of
shell scripts with a fairly robust build for incremental generation.

The site has changed drastically, reflecting that its purpose has changed
over the years: it is now intended for publishing quality works (or at least
I hope), not just a braindump.

This retains most of the text of the original pages verbatim, with the
exception of the About page.  Other pages may have their text modified in
commits that follow.

Enhancements to follow in future commits.
2019-01-11 23:46:13 -05:00
Mike Gerwitz 5a62a98a78
:70ch for GHS article
Width was too little for all the nesting and snippets it had.
2018-09-30 19:41:30 -04:00
Mike Gerwitz b9d6fc0314
:style.css: Reduced line width, increased height
Improve readability.
2018-04-24 22:24:17 -04:00
Mike Gerwitz e521680ece
:Year-specific LP logos on Talks
* docs/40-talks.md: Consistent styling and year-specific logos.
* images/lp-2016.png: Add LP2016 logo.
* images/lp-2017.png: Add LP2016 logo.
* style.css: Whitespace above logos.
2018-01-05 22:48:09 -05:00
Mike Gerwitz 4f5a47a970
:Add The Ethics Void to Talks page
* docs/40-talks.md (The Ethics Void): Add section.
* images/lp-2018.png: Add LP2018 logo.
* style.css (.talk-logo): Add class.
2018-01-05 22:36:48 -05:00
Mike Gerwitz b61ced73b6
:Restrict index body width to 40em 2017-10-29 00:15:09 -04:00
Mike Gerwitz 311741bac4
:Octoright octoflop
It should be obvious, no?
2017-08-01 01:30:33 -04:00
Mike Gerwitz 7414318a8c
:Organize headline images vertically at smallest resolution
Was squishing text too much.
2017-07-30 01:16:45 -04:00
Mike Gerwitz 879db402d6
:Fix HN icon display on mobile 2017-07-29 08:47:41 -04:00
Mike Gerwitz ee07c2ccfb
:Add HN self link
Uses "HN" instead of the "Y" in the YCombinator icon.

* style.css: Create HN icon out of link.
* tpl/.config: Add HN link.
2017-06-11 01:10:10 -04:00
Mike Gerwitz 58069270b1
:cgit styling (CSS) 2017-04-03 23:52:53 -04:00
Mike Gerwitz d7ab852f43
:Prevent heading from overlapping page fold on articles
* style.css (h1.subject): Right margin to prevent overlap of page fold on
  smaller resolutions
2016-08-27 15:06:46 -04:00
Mike Gerwitz ce61b5c057
:Better fit headline images at lower resolutions
* style.css: Float headline images to right on lower resolution, reduce size
  of index headline.
2016-08-27 00:29:51 -04:00
Mike Gerwitz 81b2824128
:Correct self-links overlap of header on small displays
style.css: #self-links will no longer overlap header at any point.
2016-08-27 00:08:45 -04:00
Mike Gerwitz 55cb97ff35
:Wrap menu if needed to accomodate screen resolution
* style.css: Upper menu will now text wrap if needed.
2016-08-27 00:08:25 -04:00
Mike Gerwitz ad270eaf3c
:Round Rule 41 banner borders slightly 2016-06-18 13:21:15 -04:00
Mike Gerwitz 9858f6112c
:Add avatar and attribution to About
Received permission from Kori Feener to use the LibrePlanet 2016 photo of me
as an avatar.
2016-05-27 23:38:38 -04:00
Mike Gerwitz cb1be6f2d4
:Index headline for talk at LibrePlanet 2016 2016-02-28 13:24:36 -05:00
Mike Gerwitz 96107a2781
Author and email display on articles/thoughts 2015-05-22 01:25:39 -04:00
Mike Gerwitz ab6a2adaa9
~50 chars per line for articles/thoughts
Just as one would expect for a conventional typeset document.
2015-05-22 01:25:39 -04:00
Mike Gerwitz 53218d3dcc
Open Sans font 2015-05-22 01:25:39 -04:00
Mike Gerwitz 2f1a0d9bb8
:Style updates for Org mode output 2014-12-07 00:25:10 -05:00
Mike Gerwitz d0397cbe1b
:hk-tango CSS for source highlighting
https://github.com/jgm/highlighting-kate/blob/master/css/hk-tango.css
2014-11-30 21:07:27 -05:00
Mike Gerwitz 7c72eecd3b Adjusted footer image and font size for smallest layout
With the CC BY-SA addition, the line of images would otherwise wrap. The font
size is adjusted slightly to be more proportional with the images.

The images dimensions are reduced by 20%.
2013-06-16 20:47:14 -04:00