- This GitHub Pages site uses the Reverie theme.
- Non-gem-based theme.
- Fork of jekyll-now.
- This page describes the steps taken to create a clean site using this theme.
- Use the Reverie template repo to create a new GitHub repo.
- Use the "Use this template" link at https://github.com/amitmerchant1990/reverie?tab=readme-ov-file#1-fork-reverie-to-your-user-repository.
- Give the repo a name (
notes) and create the repo. - Edit
_config.yml:- replace
baseurl: "/reverie"withbaseurl: "/notes"(i.e., the repo name).
- replace
- Select the "Actions" tab on GitHub to see the pages being built and deployed.
- When deployed, go to
https://username.github.io/notes/to confirm the site has been built correctly, including its links.
- Prerequisite: Ruby
- Clone the repo.
- Install gems:
bundle install
- Build and run the site:
bundle exec jekyll serve
- Confirm the site is built correctly, including its links.
- Remove sponsor buttons on the repo.
- Remove
.github/FUNDING.yml. - Repo > Settings > General > uncheck "Sponsorships".
- Remove
- Update LICENSE.
- Remove
.ruby-version.
- Remove the default favicon images:
favicon.icoimages/favicon-32x32.png
- Create your favicons, e.g., using https://favicon.io/favicon-generator/.
- Put the new favicons into
images.- Note: If the new favicons include a
site.webmanifestfile, ensure the file's iconsrcs point to the right location and update other details accordingly.
- Note: If the new favicons include a
- Update
_layouts/default.htmlto point to the new favicons.
- Update site
namein_config.yml. - Update site
descriptionin_config.yml. - Change site
avatar(logo) in_config.yml.- Replace default site avatar:
images/reverie.png - If removing the site avatar:
- remove
site-avatarclass inassets/style.scss - remove
site.avatarvariable in_includes/meta.html - remove
avatarvariable in_config.yml - remove the corresponding HTML code in
_layouts/default.html
- remove
- Replace default site avatar:
- Update site
authorin_config.yml.- Replace
author{{ site.name }}with{{ site.author }}in_includes/meta.html.
- Replace
- Update
footer-linksin_config.yml.- An empty value under the
footer-linksmapping will omit the corresponding footer icon as implemented in_includes/svg-icons.html.
- An empty value under the
- Select a font from Google Fonts and get the font's embed code.
- Add the font's embed code to
_layouts/default.html.
- Add the font's embed code to
- Replace existing font stacks in
_sass/_variables.scsswith a new font stack that includes the selected font.- Switch references to the existing font stack in
assets/style.scssto the new font stack.
- Switch references to the existing font stack in
- Update font settings in
assets/style.scss.- Remove redundant (font) import at-rule.
- Replace existing
font-familyvalues with the new font stack.
- Remove Carbon Ads and related resources:
_posts/2019-02-13-introducing-reverie-jekyll-theme.mdassets/style.scss(search for "carbon")
- Remove Google Analytics tracking code in
_config.yml.
- Update RSS feed and sitemap URL in
_config.yml.
- Date format:
- Change date format in:
- See https://shopify.github.io/liquid/filters/date/ for the date format syntax.
- Header font weight:
- Update
assets/style.scss(site-nameclass).
- Update
- Nav bar font weight:
- Update
assets/style.scss(navelement).
- Update
- Search result styles:
- Update
_pages/search.md(searchResultTemplatefield).
- Update
- 404 page:
- Remove image in
404.md. - Delete corresponding image.
- Remove image in
- Getting Started page:
- Delete
_pages/getting-started.md. - Remove link in
_layouts/default.html.
- Delete
- About page:
- Delete
_pages/about.md.
- Delete
- Fonts:
- Delete
fonts/aramisi.ttf. - Delete
fonts/EBGaramond-Regular.ttf
- Delete
- Posts:
- Delete all posts under
_posts.
- Delete all posts under
- Images:
- Delete default (unused) images:
images/categories.pngimages/galaxy.jpgimages/mobile-demo.pngimages/reverie-demo.pngimages/reverie-text.pngimages/search.png
- Delete default (unused) images:
- Reintroduce the Categories page.
_pages/categories.mdpage already exists, but excluded in the template.- Update
_layouts/default.htmlto add Categories to the nav bar.
- Add new posts to
_postsas.mdfiles. - Posts' front matter:
- Use the
postlayout:layout: post. - Set the
titleandcategoriesvariables.
- Use the
- Post file name format:
yyyy-mm-dd-title.md- Publish date, then a title, followed by an extension.
- E.g.,
2019-7-27-this-post-demonstrates-post-content-styles.md
- Ability to display PlantUML diagrams on posts, where the diagrams' code is embedded directly in the posts and diagram images are generated on-the-fly.
- Introduce custom
plantumltags to be used in posts.plantumltags contain PlantUML diagram code.- E.g.,
_posts/2024-06-11-prompt-engineering-part-1.md - Note the
plantumlvariable on the post's front matter.
- Add JavaScript code in
_includes/plantuml.html.- Convert custom
plantumltags into standard HTMLfigure,img, andfigcaptiontags. - JavaScript code is activated if the
plantumlpage variable istrueon posts' front matter. - JavaScript code uses plantuml-encoder's
plantuml-encoder.min.jsto encode diagram code to be sent to PlantUML's SVG service.
- Convert custom
- Add the JavaScript code in the
_layouts/post.htmllayout:{% include plantuml.html %} - Update
assets/style.scssto style the image caption:img + figcaption