Skip to content

andyatkinson/andyatkinson.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello!

This is the source code for my website, blog, and portfolio at andyatkinson.com built with Jekyll and hosted on GitHub Pages.

Plugins

Writing Style Tips

Use Vale! How I use it

  • Code screenshots: https://www.marclittlemore.com/create-pretty-code-screenshots/
  • %s/”/"/g
  • %s/“/"/g
  • Use h4 for headings
  • Add tags to the post
  • In Vim :set wrap/:set nowrap to enable/disable soft wrap
  • In Vim leader-s enables spell check mode, check spelling, add words with zg Vim Spell Checking by Thoughtbot
  • Use initial caps in post titles
  • Use <mark/> to highlight a section
  • Use footnotes when appropriate
  • For blockquotes, add a <cite/>
  • On macOS, preview with MacDown MacDown The open source Markdown editor for macOS.
  • For section headings, use caps
  • For product and company names, mind the CamelCase
  • For dates on posts, use a date and not a time
  • Bare markdown links are <>
  • Using footnotes: make a [^footnote] usage where you want it inserted, and a [^footnote]: Text <link> at the bottom of the article
  • For Tags, use uppercased and pluralized words, when they're a category like "Podcasts"

Theme Bugs and Issues

The include for the social link icons does not work on Heroku but worked locally. The icons folder is nested one layer deeper and it may just be that the relative filepath is not working. This was worked around for now by inlining the contents of the include.

Multi-word tags had a whitespace character after the hyphen. Removed that so URLs worked.

site.baseurl did not have a leading slash in _layouts/post.html and did elsewhere, so this was breaking links. For now I manually inserted the leading slash in that file.

More Resources

Development

bundle exec jekyll serve --incremental

I occasionally rm -rf _site to remove the generated site completely. Changing config.yml requires restarting the development server.

Workflow

Set up hidden page initially as follows.

  1. Create _posts post with future date in filename of current date
  2. No tags
  3. No date (will use current date)
  4. Give post a non-date permalink
  5. Set "hidden: true" in front matter
  6. Use "bundle exec jekyll serve --future" to see it
  7. Publish it and reference the permalink. Confirm it's accessible but hidden from pagination and tag-feed.

Note: Date-based filename organizes post but isn't used in permalink.

When ready for general audience and syndicate as follows.

  1. Add date as current date, e.g. date: 2024-10-02
  2. Add tag to trigger syndication (e.g. PostgreSQL)
  3. Remove "hidden: true" from front matter
  4. Run "bundle exec jekyll serve" and confirm visibility
  5. Push it, confirm permalink is same, it's in pagination and tag-feed

About

Personal website, blog, portfolio, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published