<commit_before>- admin_bar = capture do
  - if can? :update, @page
    %nav.navbar.navbar-expand-md.navbar-dark.bg-dark.mb-4
      .collapse.navbar-collapse
        .navbar-brand
          Admin options
        .navbar-nav
          = link_to "Edit page", [:edit, @page], class: 'nav-item nav-link'
          - if can?(:delete?, @page) && @page.parent.root_page != @page
            = link_to "Delete page", page_path(@page), :method => :delete, "data-confirm" => "Are you sure you want to delete this page?", class: 'nav-item nav-link'

- page_content = cadmus_renderer.render(@page.liquid_template, :html)
- flash_messages_content = render(partial: 'layouts/flash_messages')
- all_content = safe_join([admin_bar, flash_messages_content, page_content].compact, '')

= render_in_cadmus_layout(all_content, @page.effective_cms_layout, 'page' => @page)<commit_msg>Don't collapse the admin bar on small screens (#406)<commit_after>- admin_bar = capture do
  - if can? :update, @page
    %nav.navbar.navbar-expand.navbar-dark.bg-dark.mb-4
      .navbar-brand
        Admin options
      .navbar-nav
        = link_to "Edit page", [:edit, @page], class: 'nav-item nav-link'
        - if can?(:delete?, @page) && @page.parent.root_page != @page
          = link_to "Delete page", page_path(@page), :method => :delete, "data-confirm" => "Are you sure you want to delete this page?", class: 'nav-item nav-link'

- page_content = cadmus_renderer.render(@page.liquid_template, :html)
- flash_messages_content = render(partial: 'layouts/flash_messages')
- all_content = safe_join([admin_bar, flash_messages_content, page_content].compact, '')

= render_in_cadmus_layout(all_content, @page.effective_cms_layout, 'page' => @page)
{'fraction_non_alphanumeric': 0.14801864801864803, 'fraction_numerical': 0.002913752913752914, 'mean_word_length': 3.8502824858757063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7374960', 'n_tokens_mistral': 581, 'n_tokens_neox': 551, 'n_words': 126}