File: jekyll-compose.rb

package info (click to toggle)
ruby-jekyll-compose 0.12.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 108 kB
  • sloc: ruby: 712; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

require "jekyll-compose/version"
require "jekyll-compose/arg_parser"
require "jekyll-compose/movement_arg_parser"
require "jekyll-compose/file_creator"
require "jekyll-compose/file_mover"
require "jekyll-compose/file_info"
require "jekyll-compose/file_editor"

module Jekyll
  module Compose
    DEFAULT_TYPE = "md"
    DEFAULT_LAYOUT = "post"
    DEFAULT_LAYOUT_PAGE = "page"
    DEFAULT_DATESTAMP_FORMAT = "%Y-%m-%d"
    DEFAULT_TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M %z"
  end
end

%w(draft post publish unpublish page rename compose).each do |file|
  require File.expand_path("jekyll/commands/#{file}.rb", __dir__)
end