practice doing this
at main 29 lines 979 B view raw
1<!DOCTYPE html> 2<html> 3 <head> 4 <title><%= content_for(:title) || "Practice" %></title> 5 <meta name="viewport" content="width=device-width,initial-scale=1"> 6 <meta name="apple-mobile-web-app-capable" content="yes"> 7 <meta name="application-name" content="Practice"> 8 <meta name="mobile-web-app-capable" content="yes"> 9 <%= csrf_meta_tags %> 10 <%= csp_meta_tag %> 11 12 <%= yield :head %> 13 14 <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> 15 <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> 16 17 <link rel="icon" href="/icon.png" type="image/png"> 18 <link rel="icon" href="/icon.svg" type="image/svg+xml"> 19 <link rel="apple-touch-icon" href="/icon.png"> 20 21 <%# Includes all stylesheet files in app/assets/stylesheets %> 22 <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> 23 <%= javascript_importmap_tags %> 24 </head> 25 26 <body> 27 <%= yield %> 28 </body> 29</html>