doctype html
html data-bs-theme="#{cookies[:"modeTheme"] || "light"}" data-controller="set-theme"
  head
    title a11ydive
    meta[name="viewport" content="width=device-width,initial-scale=1"]
    = csrf_meta_tags
    = csp_meta_tag
    = stylesheet_link_tag "application", "data-turbo-track": "reload"
    = javascript_include_tag "application", "data-turbo-track": "reload", type: "module"
  body
    a.visually-hidden href="#main-content" data={ hotkey: "t", controller: "hotkey", turbo: false } Direkt zum Inhalt
    = render partial: "layouts/navigation"
    .container-fluid
      .row
        = render partial: "layouts/sidebar"
        main.col.ps-md-2.pt-2
          #main-content[data-controller="rich-text-link-targets"]
            = yield
    
    .toast-container.position-fixed.bottom-0.start-0.p-3 id="toasts"
      - if flash.alert
        = render partial: "layouts/toast", locals: { content: flash.alert, alert: true }
      - if flash.notice
        = render partial: "layouts/toast", locals: { content: flash.notice, alert: false }

    /footer.container-fluid.mt-auto.border-top
      = Rails.configuration.build_version && "Version: #{Rails.configuration.build_version}"
