Sha256: ccb23a24c4d60d2a11ca628a72a03eb2b29d1bf453a39c2559dc8b2a609a51c8

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

Feature: Simple site building
  I want to be able to build a site

  Scenario: Simple site
    Given I have a "_config.yml" file with content:
    """
    markdown: kramdown
    plugins:
      - jekyll-shorts
    shorts:
      permalink: :y:m:d.html
    """
    And I have a "_layouts/default.html" file with content:
    """
    {{ content }}
    """
    And I have a "_posts/2023-07-29-hello.md" file with content:
    """
    ---
    title: Hello, world!
    layout: default
    ---
    Hello, world!
    """
    Then I build Jekyll site
    And Exit code is zero
    And File "_site/230729.html" exists
    And I build Jekyll site
    And Exit code is zero

  Scenario: Simple site
    Given I have a "_config.yml" file with content:
    """
    markdown: kramdown
    plugins:
      - jekyll-shorts
    shorts:
      permalink: :y.html
    """
    And I have a "_layouts/default.html" file with content:
    """
    {{ content }}
    """
    And I have a "_posts/2023-01-01-hello.md" file with content:
    """
    ---
    title: Hello, world!
    layout: default
    ---
    Hello, world!
    """
    Then I build Jekyll site
    And Exit code is zero
    And File "_site/23.html" exists
    And I have a "_posts/2023-02-02-hello.md" file with content:
    """
    ---
    title: Hello, world!
    layout: default
    ---
    Hello, world!
    """
    And I build Jekyll site
    And Exit code is not zero

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-shorts-0.0.5 features/cli.feature