Skip to content

Gorcenski/citation-needed-theme

 
 

Repository files navigation

Citation Needed

A fork of Ghost's Source theme for the Citation Needed newsletter.

Along with some changes to the appearance, this theme also includes:

  • A custom signup page for pay-what-you-want (signup.hbs, signup.js)
  • Sidenote support (sidenote.js)

Development

Source styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. After that, from the theme's root directory:

# install dependencies
yarn install

# run development server
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/<theme-name>.zip, which you can then upload to your site.

# create .zip file
yarn zip

PostCSS Features Used

  • Autoprefixer - Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.

SVG Icons

Source uses inline SVG icons, included via Handlebars partials. You can find all icons inside /partials/icons. To use an icon just include the name of the relevant file, eg. To include the SVG icon in /partials/icons/rss.hbs - use {{> "icons/rss"}}.

You can add your own SVG icons in the same manner.

Copyright & License

Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.

About

Theme for CitationNeeded.news

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 49.0%
  • Handlebars 30.4%
  • JavaScript 20.6%