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

grunt-jekyll-writer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jekyll-writer

allow to write posts sources with embed assets

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-jekyll-writer


This GruntJS plugin allow to use Jekyll as a static blog engine with a custom post files organisation wich allow to save assets within post's source file.

Gruntfile.js

module.exports = function (grunt) {
	grunt.initConfig({
		'jekyll-writer': {
			source: 'articles',
			dest: 'jekyll',
			assetsPath: 'posts-assets'
		}
	});
    grunt.registerTask('default', ['jekyll-writer']);
    grunt.loadNpmTasks('grunt-jekyll-writer');
};

source

This is where your Writer's sources are stored.

NOTE: read the Writer's folder structure chapter to learn how you can arrange post's sources with Writer.

dest

This is your Jekyll instance folder.

Note: both _posts and assets folder will be overridden by Writer process.

assetsPath

It's the name of the folder that will host post's assest in the generated website.

Run & Watch

// just copy articles to Jekyll
grunt jekyll-writer

// run a blogging session and serve the blog
grunt jekyll-writer --watch

Writer's Folder Structure

In Writer each post is represented by a folder so within that folder you can store any post's related assets.

The folder's name will be used as page url by Jekill.

  • my-first-article/
    • article.md
    • article.yml
    • image.jpg

article.md

This file contains the Markdown content for your article.

article.yml

This file contains the Front Matter information for your article.

linking article's assets

You can link any article assets from within the article source file using an explicit relative url.

Keywords

FAQs

Package last updated on 08 May 2014

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