Sha256: 4e05fab2b45561c515ad7cc943126057cc9504340b829a726e2a892ea01a3af6
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module JekyllRedirectFrom # A stubbed layout for our default redirect template # We cannot use the standard Layout class because of site.in_source_dir class Layout < Jekyll::Layout def initialize(site) @site = site @base = __dir__ @name = "redirect.html" @path = File.expand_path(@name, @base) @relative_path = "_layouts/redirect.html" self.data = {} self.ext = "html" self.content = File.read(@path) end end end
Version data entries
4 entries across 4 versions & 1 rubygems