Sha256: b6ba2287b1e68c892eeca8b2c2b85f26240340b4cbdb9dfa5f4666236cfa524b

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

module Jekyll
  module Zettel
    # Scaffolder for infotype Glosse
    class Zeitleiste

      include Jekyll::Zettel

      def scaffold(args)
        return nil if args_empty?(args)

        slug = create_slug(args.first)
        file = "zeitleiste/#{slug}/index.md"
        return file if create_dir_defensively('Zeitleiste', slug, file).nil?

        create_page({ 'slug' => slug, 'title' => args.first }, file, 'zeitleiste.md')

        Jekyll.logger.info '✓', "Created zeitleiste with slug `#{slug}`"
        file
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-zettel-0.6.5 lib/jekyll/zettel/zeitleiste.rb