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

Version Path
jekyll-zettel-0.7.2 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.7.1 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.7.0 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.6.10 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.6.9 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.6.8 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.6.7 lib/jekyll/zettel/blatt.rb
jekyll-zettel-0.6.5 lib/jekyll/zettel/blatt.rb