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