This template repository includes preconfigured GitHub Action that will validate html files in a project with (HTMLProofer)[https://github.com/gjtorikian/html-proofer/]. And htmx to load partials
<main
data-hx-trigger="load"
data-hx-swap="outerHTML"
data-hx-get="index.main.partial.html"
></main>function init() {
import("...js");
}
const totalPartials = document.querySelectorAll(
'[hx-trigger="load"], [data-hx-trigger="load"]'
).length;
let loadedPartialsCount = 0;
document.body.addEventListener("htmx:afterOnLoad", () => {
loadedPartialsCount++;
if (loadedPartialsCount === totalPartials) init();
});Add the data-proofer-ignore attribute to any tag to ignore it from every check.
<a href="https://notareallink" data-proofer-ignore>Not checked.</a>- Vitalii Levinton – (global.header-nav.partial.html, index.hero.partial.html)
- Andrii Khrushch – (index.adventure-hero.partial.html)
- Marko Hlovachevkyi – (index.cabin-rentals.partial.html)
- Kaziuta Rostyslav – (index.things-to-do.partial.html)
- Herei Vladyslav – (index.our-facilities.partial.html)
- Cherevychnyi Yaroslav – (index.shop-cafe.partial.html)
- Ilya Borodiy – (index.testimonials.partial.html)
- Hordiienko Vladyslava – (index.make-a-reservation.partial.html)
- Huz Maryna – (global.footer.partial.html)
- Kazantsev Ivan – (about.about-yosemite.partial.html)
- Maria Batoorina – (about.season-activities.partial.html)
- Dykunets Ivan – (gallery.roulette-gallery.partial.html)
- Iryna Abrosimova – (gallery.roulette-gallery.partial.html)
- Oleksandr Bartoshko – (accommodation.cabin-rentals.partial.html)
- Mariia Shuryha – (accommodation.choose-the-best.partial.html)
- Dudnik Roman – (rental-policies.content.partial.html)
- Dmytro Honcharenko – (how-to-get-there.guide.partial.html)
- Stanislav Kustov – (how-to-get-there.html, how-to-get-there.map-contact.partial.html)
- Yaroslav Milevskyi – (about.about-yosemite-gallery.partial.html)
- Oleksandr Vasuliuk - (about.spa-vacations.partial.html) NOT ADDED