Skip to content

Commit a5829b8

Browse files
committed
apple icon
1 parent eaec65b commit a5829b8

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

app/views/layouts/_head.html.haml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
%meta{ name: 'description', content: (content_for?(:title) ? yield(:title) : '') + " - Create individual maps for your places, tracks and events. Share your maps in real-time." }
1717
%meta{ name: 'keywords', content: 'map maker, create map, my maps, share maps, online maps, travel maps, map editor, geojson, maplibre, openstreetmap, privacy, open source, free to use' }
18-
18+
1919
- # Open Graph protocol https://ogp.me/
2020
%meta{ property: 'og:type', content: 'website' }
2121
%meta{ property: 'og:url', content: request.url }
@@ -31,19 +31,36 @@
3131
/ Logo font
3232
%link{ href: "https://fonts.googleapis.com", rel: "preconnect" }
3333
%link{ href: "https://fonts.gstatic.com", rel: "preconnect", crossorigin: true }
34-
= stylesheet_link_tag("https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,400;1,400;1,700&family=Noto+Color+Emoji&family=SUSE:ital,wght@0,100..900;1,100..900&display=swap")
34+
35+
:ruby
36+
google_fonts_url = "https://fonts.googleapis.com/css2?" \
37+
"family=Lobster+Two:ital,wght@0,400;1,400;1,700&" \
38+
"family=Noto+Color+Emoji&" \
39+
"family=SUSE:ital,wght@0,100..900;1,100..900&" \
40+
"family=DM+Serif+Display:ital@0;1&" \
41+
"family=Bree+Serif&" \
42+
"family=Sora:wght@100..800&" \
43+
"family=Playfair+Display:ital,wght@0,400..900;1,400..900&" \
44+
"family=Comfortaa:wght@300..700&" \
45+
"family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&" \
46+
"family=Cinzel:wght@400..900&" \
47+
"display=swap"
48+
= stylesheet_link_tag google_fonts_url
3549
3650
/ css
3751
= stylesheet_link_tag "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
3852
- # maptiler-sdk.css includes maplibre-gl css and looks better
3953
- # needs to get loaded before application.css
54+
/- # from https://unpkg.com/maplibre-gl@5.20.0/dist/maplibre-gl.css
4055
= stylesheet_link_tag "maptiler-sdk", "data-turbo-track": "reload"
56+
/= stylesheet_link_tag "maplibre-gl", "data-turbo-track": "reload"
57+
4158
= stylesheet_link_tag "application", "data-turbo-track": "reload"
4259
4360
- # JS imports, SRI integrity hashes from https://www.srihash.org/
4461
- # ES Module Shims: Import maps polyfill for older browsers without import maps support (eg Safari 16.3)
45-
= javascript_include_tag( "https://ga.jspm.io/npm:es-module-shims@1.8.2/dist/es-module-shims.js",
46-
async: true, 'data-turbo-track': 'reload',
62+
= javascript_include_tag( "https://ga.jspm.io/npm:es-module-shims@1.8.2/dist/es-module-shims.js",
63+
async: true, 'data-turbo-track': 'reload',
4764
integrity: "sha384-+dzlBT6NPToF0UZu7ZUA6ehxHY8h/TxJOZxzNXKhFD+5He5Hbex+0AIOiSsEaokw", crossorigin: "anonymous")
4865
= javascript_importmap_tags
4966
@@ -57,8 +74,10 @@
5774
= yield(:head)
5875
5976
%link{ rel: "manifest", href: "/manifest.json" }
60-
%link{ rel: "icon", href: "/icons/mapforge-logo-icon.png", type: "image/png" }
61-
%link{ rel: "apple-touch-icon", href: "/icons/mapforge-logo-pwa.png" }
77+
%link{ rel: "icon", sizes: "50x50", href: "/icons/mapforge-logo-icon.png", type: "image/png" }
78+
%link{ rel: "apple-touch-icon", sizes: "512x512", href: "/icons/mapforge-logo-pwa.png" }
79+
%link{ rel: "apple-touch-icon", sizes: "180x180", href: "/icons/mapforge-logo-pwa-180.png" }
80+
6281
6382
- if content_for?(:alternate_md_url)
6483
%link{ rel: "alternate", type: "text/markdown", title: "Markdown", href: yield(:alternate_md_url) }
10.7 KB
Loading

0 commit comments

Comments
 (0)