Project

newport

0.0
No commit activity in last 3 years
No release in over 3 years
Newport is a simple static site blog generator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.0
~> 2.3, >= 2.3.1
~> 0.2, >= 0.2.9
 Project Readme

Newport

Newport is a Ruby Gem for building a single file blog/static site.

Getting Started

  • gem install newport
  • newport new <path>
  • cd <path>
  • newport build

Plugins

Plugins are available in the plugins directory and are pure javascript. Plugins are run after the page loads and can modify the contents.

Expander

For example the expander plugin will loop through your posts and show n number of paragraphs for each one and hide the rest, adding a down arrow to click to expand and show the full post.

Pagination

Set the variable show in pagination.js to the number of posts you want to display per page. The plugin will automatically add an arrow to click to show more.

Permalinks

Add a hash to the end of each post that links to the permanent location for that post.

Dark Mode

Shows a light/dark toggle to toggle between light mode and dark mode. It uses cookies to remember your selection. There are some css variables that you can change for light/dark mode in style.css