Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added HTMX for smoother examples reloading #965

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/landing/assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ import '@fontsource-variable/cabin/index.min.css';
import 'highlight.js/styles/github-dark.min.css';
import '@oddbird/popover-polyfill';
import './bootstrap.js';
import 'htmx.org'
3 changes: 3 additions & 0 deletions web/landing/importmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
'version' => '5.0.17',
'type' => 'css',
],
'htmx.org' => [
'version' => '1.9.10',
],

/**
* On mobile there is a collapsible menu that uses relatively new popover attribute,
Expand Down
2 changes: 1 addition & 1 deletion web/landing/templates/main/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
</div>

<div class="relative py-10 px-4 mx-auto max-w-screen-xl">
<div class="relative py-10 px-4 mx-auto max-w-screen-xl" data-hx-boost="true">
<nav class="font-medium text-center bg-orange-100 rounded">
<ul class="flex whitespace-nowrap overflow-auto justify-between">
{% for topic in topics %}
Expand Down
Loading