Bifocal is is a minimal theme for Ghost based on Solo. It features a two-column layout when screen width allows and displays internal tags to the user.
Go to file
Jean Viscogliosi-Pate ee6b9ab688 Added desc tags to post pages 2024-08-31 21:32:57 -07:00
assets Added desc tags to post pages 2024-08-31 21:32:57 -07:00
partials Adding publication date and support for hiding with internal tags, fixes #13 2024-08-31 19:39:33 -07:00
.gitignore Updating gitignore to hush nix 2024-08-31 17:43:10 -07:00
LICENSE Broken socials 2024-06-19 06:56:58 -07:00
README.md Updating theme description again 2024-08-01 21:24:17 -07:00
default.hbs Adding publication date and support for hiding with internal tags, fixes #13 2024-08-31 19:39:33 -07:00
flake.lock Updating gitignore to hush nix 2024-08-31 17:43:10 -07:00
flake.nix Adding flake.nix 2024-07-31 13:02:04 -07:00
gulpfile.js Font fixes, resolves #3 2024-07-31 13:09:28 -07:00
index.hbs Mostly works, missing some things 2024-07-31 10:10:37 -07:00
package.json Allow disabling oneko, hide from mobile view, resolves #4 2024-08-01 16:24:13 -07:00
page.hbs Broken socials 2024-06-19 06:56:58 -07:00
post.hbs Added desc tags to post pages 2024-08-31 21:32:57 -07:00
robots.txt Broken socials 2024-06-19 06:56:58 -07:00
tag.hbs Mostly works, missing some things 2024-07-31 10:10:37 -07:00

README.md

Bifocal

Bifocal is is a minimal theme for Ghost based on Solo. It features a two-column layout when screen width allows and displays internal tags to the visitor.

Additional features include adaptive light/dark theme, a table of contents, a cat, and email obfuscation. Please note that the theme includes a robots.txt file that tells most web scrapers to ignore your site, although not all of them listen.

Instructions

  1. Download this theme
  2. Log into Ghost, and go to the Design settings area to upload the zip file

Development

Edition styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. As an alternative, install Nix and type nix develop with the experimental flakes feature enabled. After that, from the theme's root directory:

# Install
yarn

# Run build & watch for changes
yarn dev

Now you can edit /assets/css/ files, which will be compiled to /assets/built/ automatically.

The zip Gulp task packages the theme files into dist/solo.zip, which you can then upload to your site.

yarn zip

Credits

Original Solo theme relased under the MIT license by Ghost Foundation.

Font is Wanted Sans, released under the SIL Open Font License 1.1 by Wanted Lab, Inc.

Email and RSS icons are from Tabler Icons, released under the MIT license by Paweł Kuna.

The cat that follows your cursor is oneko.js, released under the MIT license by adryd.

The JavaScript for generating a table of contents is Tocbot, released under the MIT license by Tim Scanlin.

Copyright (c) 2024 Jean Viscogliosi-Pate and released under the MIT license.