Sha256: 47f36eb0b5d019037963b6d4014380ed54827ed7325fcf342c9c64d22214f55d
Contents?: true
Size: 530 Bytes
Versions: 13
Compression:
Stored size: 530 Bytes
Contents
module Jekyll module Zettel # Scaffolder for infotype Glosse class Glosse include Jekyll::Zettel def scaffold(args) return nil if args_empty?(args) slug = create_slug(args.first) file = "glosse/#{slug}/index.md" return file if create_dir_defensively('Glosse', slug, file).nil? create_page({ 'slug' => slug, 'title' => args.first }, file, 'glosse.md') Jekyll.logger.info '✓', "Created glosse with slug `#{slug}`" file end end end end
Version data entries
13 entries across 13 versions & 1 rubygems