Sha256: 9c874c5245e713471906b1d092cc50c644505602b4ce3b1b7c9695ab31d7f06c

Contents?: true

Size: 247 Bytes

Versions: 42

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  module Publishable
    # Whether the file is published or not, as indicated in YAML front-matter
    def published?
      !(data.key?("published") && data["published"] == false)
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
bridgetown-core-1.0.0 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.beta3 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.beta2 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.beta1 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha11 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha10 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha9 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha8 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha7 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha6 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha5 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-0.21.5 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha4 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha3 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha2 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-1.0.0.alpha1 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-0.21.4 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-0.21.3 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-0.21.2 lib/bridgetown-core/concerns/publishable.rb
bridgetown-core-0.21.1 lib/bridgetown-core/concerns/publishable.rb