Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

newport

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newport

  • 1.0.7
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

https://richard.fisher.cymru

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.

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

FAQs

Package last updated on 26 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc