Sha256: 7c010f384a4c2c90e5aa853b7af74d0894ef040ae6cdccad4a2eb963bb5b47e4
Contents?: true
Size: 936 Bytes
Versions: 1
Compression:
Stored size: 936 Bytes
Contents
require 'jekyll' require 'securerandom' require 'fileutils' require 'citeproc' require 'csl/styles' module Jekyll # Jekyll zettel to your service module Zettel autoload :VERSION, 'jekyll/zettel/version' LOG_KEY = 'Zettel:'.freeze class Error < StandardError; end def write_catalog(object) Jekyll.logger.info LOG_KEY, "Created references in `#{@site.in_dest_dir('.objects', "#{object}.json")}`" page = Jekyll::PageWithoutAFile.new(@site, @site.source, '.objects', "#{object}.json").tap do |file| file.content = JSON.pretty_generate(@site.data[object.to_s]) file.data.merge!( 'layout' => nil, 'sitemap' => false, ) file.output end @site.pages << page end end end require 'jekyll/commands/zettel' require 'jekyll/zettel/references' require 'jekyll/zettel/reference' require 'jekyll/zettel/timeline' require 'jekyll/zettel/tags'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-zettel-0.3.0 | lib/jekyll/zettel.rb |