Sha256: 4cf0be0b66575068210fba45e004dea667497e1fe8a7dd3b975aaaabb1d7db30

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Layouts
  class Site < ApplicationLayout
    def around_template(&)
      doctype
      html lang: "en", data: { theme: "onedark" } do
        head
        body(&)
      end
    end

    def view_template(&block)
      render UI::Navbar.new(class: css[:navbar])
      main(**attrs, &block)
      render UI::Footer.new(class: css[:footer])
    end

    private

    def head(&block)
      render Head.new(&block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticky-0.3.1 site_template/app/views/layouts/site.rb
staticky-0.3.0 site_template/app/views/layouts/site.rb