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

Version Path
jekyll-zettel-0.7.2 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.7.1 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.7.0 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.10 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.9 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.8 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.7 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.5 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.4 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.3 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.2 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.1 lib/jekyll/zettel/glosse.rb
jekyll-zettel-0.6.0 lib/jekyll/zettel/glosse.rb