Commit graph

68 commits

Author SHA1 Message Date
f29f409642 A few miscellaneous style fixes
- Add some padding to the top of the footnotes block
- Add .figure--video to the list of elements that get XL block margins
2024-10-31 08:02:50 -07:00
b7379f6481 Add head_js and after_js blocks to the baseof template 2024-10-27 09:57:58 -06:00
2f9f25f8c4 Omit drafts from the Prev/Next page navigation 2024-10-27 07:24:38 -06:00
4a6dd87603 Consolidate list templates to _default
Remove the blog list template since it's no different from the default list.
2024-10-24 10:05:25 -06:00
9995c8d10d Downgrade page_summary headings from <h2> to <h3>
When page_summaries are rendered in sections by year, the year heading is an <h2>
so these need to be <h3> for correct heading hierarchy.
2024-10-23 11:31:30 -07:00
59ff58e159 Break section template into first and descendent sections
First section templates render the most recent $n yearly subsections as a list of
articles.

Descendent sections render just the content of those subsections.
2024-10-23 11:17:30 -07:00
50dc3c45c1 Allow the menu to specify a style for the item
Style changes the trailing character, a la ls -F. The default is 'dir', appending
a slash `/`. You can also specify 'file' to append a '*'.
2024-10-20 09:18:34 -07:00
60db7eeb03 Do not include a <header> if the page's .Title is empty 2024-10-20 09:17:15 -07:00
4d9e9e1301 Only include an <hgroup> in the page summary if there's a description to include
Otherwise just use an <h2>. Add .page-summary__heading to both elements and update
the styles.
2024-10-20 09:16:43 -07:00
8aaea57a2e Parameterize the number of posts to return in the latest-page-summary shortcode 2024-10-20 09:15:43 -07:00
115b9dd9cd Add <link> to alternate output formats in the page's <head> 2024-10-20 09:15:16 -07:00
d89f1b62b4 Use tags for date and draft in the page_summary; add taxonomies 2024-10-13 23:14:12 -07:00
4c689f0f5c Reduce the depth of the DOM and simplify the CSS a bit
Remove the main intermediate container. It wasn't acutally serving a purpose.
Remove some of the BEM-style classes that also weren't really doing anything.
2024-10-13 23:13:16 -07:00
d17ec7f48f Import the code and image shortcodes from the old website
Update the styles for code, image, and youtube figures.
2024-10-12 11:26:52 -07:00
c7b772e727 Pass Page Summary LinkTitle through the Markdown renderer
Allow markdown in link titles.
2024-10-12 10:46:44 -07:00
edd6eb996b A more generic tag/value component
Write styles and templates for a more generic tag/value component. Use this component
for the taxonomy lists, draft tag, and page dates in the summary template.
2024-10-12 10:45:52 -07:00
b51aca950c Add the .figure class to image figures 2024-10-12 09:23:07 -07:00
49f5a90813 Add the .content class to the content <div> in list templates 2024-10-10 23:04:41 -07:00
c17177aecd Only add content from a list page if there's actually content to render 2024-10-08 22:33:59 -07:00
e1ad32ab12 Add styles for youtube figures
Bring over the youtube shortcode from the old theme, and add styles for the figures
it creates. Add the .figure--youtube class to the <figure> element.
2024-10-08 22:24:39 -07:00
f7928c2190 Clean up the taxonomy list
Make the name of the taxonomy copyable by putting it in the dom, rather than in
the CSS content:.
2024-10-08 21:58:57 -07:00
deaf33c0f2 Remove the taxonomy name leader from taxonomy list pages 2024-10-07 20:57:12 -07:00
2a2025bd9f Clean up the codeblock render template 2024-10-07 20:56:47 -07:00
23c0ad3fa8 Blog: Collapse the hierarchy of a single blog post template to a single <main>
Remove the nested <article>. It's not necessary.
2024-08-08 09:57:33 -10:00
4f9cffb1ad Blog: Remove the head_css blocks 2024-08-08 09:57:01 -10:00
ea26f5f68b Blog: Move blog styles and content templates to the base repo 2024-08-07 07:43:50 -10:00
97aa739b3f Use singular or plural taxonomy names depending on how many items are in the taxonomy for the page 2024-08-02 15:47:33 -07:00
1b463e35d8 Use trailing / for sections in the site header
Just like `ls`.
2024-08-01 18:22:25 -07:00
cb8ad426d5 Headings: Move the anchor #
Draw only one hash for headings, and place them in the gutter in wide layouts,
or trailing the heading text in narrow layouts. Do this with grid in the wide
version, and flexbox in the narrow layout.

Add a --text-color-light CSS variable for content that should be lighter than
--text-color-secondary.
2024-07-27 09:30:03 -07:00
000353f339 Layouts: Remove date from taxonomy templates
Do not show dates on pages where .IsNode is true, rather than using .IsSection.
Apparently taxonomy pages are nodes, but are not sections.
2024-07-25 13:24:33 -07:00
2da54f09e3 Layouts: Remove whitespace between <pre> and <code> elements in codeblocks 2024-07-25 13:12:10 -07:00
b130db28e0 Add pages-list shortcode
Produces a list of pages in a section.
2024-07-23 09:13:47 -07:00
aee96476a7 Add a latest-page-summary shortcode
Produces a summary of the latest page in a given section
2024-07-23 09:13:32 -07:00
b50be42ca8 Make sure there isn't a gap in the nav <li> 2024-07-23 09:06:55 -07:00
0cfc91d26e Clean up page summary and update styles 2024-07-23 09:04:22 -07:00
c6213619b0 Render page content and page lists in list and taxonomy templates 2024-07-23 08:58:06 -07:00
f1977320e8 Render single page content 2024-07-23 08:57:44 -07:00
4d303b984e Add a table of contents to the single template
Pages can show the table of contents by setting the renderTableOfContents parameter.
2024-07-23 08:57:21 -07:00
461772c1f0 Remove the page breadcrumb because it's not used 2024-07-23 08:54:06 -07:00
d1154de459 Add a page navigation breadcrumb
This thing looks like a path. It lists the hierarchy of pages from the home page.
2024-07-23 08:53:34 -07:00
54c371d7e6 Add a page header to the list, single, and taxonomy templates 2024-07-23 08:51:03 -07:00
2878dd8d60 Clean up the site footer
It's just a single <aside> that lists the copyright.
2024-07-23 08:49:38 -07:00
7ff79c546d A generic taxonomy list template
This template produces a <ul> list of the terms in the provided taxonomy. The
taxonomy is passed to the template via the `.term` argument, which is a string
name of the taxnomy.
2024-07-23 08:48:46 -07:00
64c1704a6b Pass an additional parameter to base/head/css.html
Pass the path of a stylesheet resource to this template so it can be used to
generate other CSS stylesheets.
2024-07-23 08:46:52 -07:00
8b834f8eab Move the <main> element inside the "main" template block
Do this so each template can set the class of the main block according to what
kind of template it is.
2024-07-23 08:45:26 -07:00
293d4b0748 Remove the page breadcrumb from the base template 2024-07-23 08:44:10 -07:00
04ebd4f10a Add a <code> inside the <pre> codeblocks
Tess suggested I do this.
2024-07-23 08:41:22 -07:00
cce432fe0b RenderHooks: Reconfigure the heading hashes
Instead of a single hash in the left gutter, draw <n> hashes where <n> is the
heading level. All of these hashes are part of the anchor text.
2024-07-20 17:29:49 -07:00
c30805127c RenderHooks: Fix up some whitespace 2024-07-20 17:08:32 -07:00
3cbce149ba Build the page scaffolding with CSS grid
Grid columns are symmetrical. From the outside in, they are:

- outer margin
- inner margin
- wide gutter
- inner gutter
- main content
2024-07-06 11:07:52 -07:00