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