The Curmudgeonly Codger

Todos

Contents

Images

Basic Markdown, and thus Remark, has very primitive support for images. Would be nice to have support for sizing at least. See the test page. Also see Nexts Optimizing Images.

Logging

At this point, less need, but check out https://www.meticulous.ai/blog/getting-started-with-react-logging

Cool things

I should try to not get distracted by the following:

Footsteps

How cool to have footsteps actually walking around?

Fluttering banners

Very much an edge case (as we really do not want to publish pages with missing images).

More complexity with borders

Maybe alternating odd/even for lowercase/uppercase for each child.

Refactoring

  • getNavPosts() Very messy logic. For NavLinks, not using all those spans right now, remove?

DONE!

TOC

(Note: Needed to use rehypeSlug to add ids to the headers after rehypeFormat

Asciidoc has a nice Table of Contents mechanism:

:toc:
:toc-placement!:

Here is my preamble paragraph, but I could really place the TOC anywhere! Lorem ipsum forever…
toc::[]

Looks like there is a plugin already: remark-toc. This seems exactly what the Doctor ordered as you can control the depth and also it is just markdown for where to put the contents.

Footnotes

(Note: this was fixed as part of using remarkGFM which supports Github Flavored Markdown. See the test page for an example.)

Implement some type of footnotes as there is no native footnote support in remark-html. I’m not wild about the need in markdown in any case that you need to manually place both the footnote as

I like Shamuss style of footnotes, below. His uses some javascript that, when .snote_refnum is clicked, toggles the .snote_tip visibility. (As it turns out, he apparently got the idea for this style from XKCD What-if? series)

html

<span class=“snote” title=“2” style=“display: inline-block;”>
    <span class=“snote_refnum” title="">[2]</span>
    <span class=“snote_tip” id=“snote_1”>I’m well aware this is a fun job.</span>
</span>

<!– and then at the bottom –>

<div class=“entry-footnotes”>
    <h4>Footnotes:</h4>
    <p>[1] This is redundant. Ad-hoc is the only kind of PHP you can write.</p>
    <p>[2] I’m well aware this is a fun job.</p>
    <p>[3] Less than a dollar, and most of the money gets eaten in transaction fees. Credit card companies HATE tiny transactions.</p>
</div>

css

.snote_refnum {
    position: relative; /* this and the bottom below is to make it a superscript. Perhaps superscript wasn’t widely supported then? */
    bottom: 1ex;
    font-size: .7em; /* Again, superscript */
    color: #069;
    font-weight: bold;
    text-decoration: underline; /* personally, this seems a bit cluttered */
    cursor: help;
}

.snote_tip {
    font-size: smaller;
    display: inline-block;
    visibility: hidden;
    position: absolute;
    overflow: hidden;
    padding: 0.5em;
    background: #fea;
    color: #000000;
    border: 2px solid #874;
    box-shadow: 0.25em 0.25em 0.25em #555;
    z-index: 1;
    max-width: 50%; /* not clear to me what this does pos:absolute makes this all on a single line in Chrome anyway. */
}

Time/Date stamps

The site uses some elementary styling for <time> but it would be nice to do more support (like tags?). See HTML: time element

Need to:

  1. Fix link styling - Not happy with the current underlines - don’t like full underlines but no underline is too hidden. Also header isn’t all that obvious.

  2. Decide on what kind of navigation to have:

    • Breadcrumbs? [NO]
    • Just a hamburger menu (it could unfold like the marauder’s map but is that two clicks for iPad?)
    • Also a regular menu either on the top or as a sidebar? (Kind of not going for that but maybe a footer with About)
    • Next/Previous links (and get around breadcrumbs by having an Up icon (that takes you to the parent)) [YES]
  3. Implement