Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions lib/jekyll-archives/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,14 @@ def initialize(site, title, type, posts)
#
# Returns the template String.
def template
@config["permalinks"][type]
@config.dig("permalinks", type)
end

# The layout to use for rendering
#
# Returns the layout as a String
def layout
if @config["layouts"] && @config["layouts"][type]
@config["layouts"][type]
else
@config["layout"]
end
@config.dig("layouts", type) || @config["layout"]
end

# Returns a hash of URL placeholder names (as symbols) mapping to the
Expand Down