Skip to content

Commit

Permalink
google fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 15, 2023
1 parent 834b6e8 commit c6dd266
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ TODO:
+ tracks:
show:
+ track purchase
+ track sharer
+ purchase downloads

+ playlists:
Expand Down
21 changes: 15 additions & 6 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
<%= display_meta_tags site: "Rauversion" %>

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Oswald:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet"
/>

<% if @oembed_json %>
<link rel="alternate" type="application/json+oembed" href="<%= @oembed_json %>" />
<% end %>
Expand Down Expand Up @@ -46,12 +53,14 @@
with https://www.npmjs.com/package/@googlemaps/js-api-loader.
-->

<script
data-turbo="false"
src="https://maps.googleapis.com/maps/api/js?key=<%= ENV['GOOGLE_MAPS_KEY'] %>&callback=dispatchMapsEvent&libraries=places&v=weekly"
defer
>
</script>
<% if ENV['GOOGLE_MAPS_KEY'] %>
<script
data-turbo="false"
src="https://maps.googleapis.com/maps/api/js?key=<%= ENV['GOOGLE_MAPS_KEY'] %>&callback=dispatchMapsEvent&libraries=places&v=weekly"
defer
>
</script>
<% end %>
<%= render("shared/footer", assigns) %>
Expand Down

0 comments on commit c6dd266

Please sign in to comment.