From e8fbe1813b48dc2a0356b4ed6d9c4e54d599ba06 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sun, 1 Dec 2024 19:14:49 -0700 Subject: [PATCH] refactor: Move JQuery masking plugins to their own partial template --- content/contact/_index.html | 1 + layouts/_default/baseof.html | 11 +++++------ layouts/partials/form-validation.html | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 layouts/partials/form-validation.html diff --git a/content/contact/_index.html b/content/contact/_index.html index 840ade4..5c1ca50 100644 --- a/content/contact/_index.html +++ b/content/contact/_index.html @@ -14,6 +14,7 @@ menu: icon: file-signature weight: 1 fa-thumbnail: file-signature +validation: true ---
- - {{ $jquery := resources.Get "scripts/jquery/jquery.min.js" }} - {{ $jqmaskjs := resources.Get "scripts/jquery-mask-plugin/jquery.mask.min.js" }} - {{ $maskjs := resources.Get "scripts/phone-masking.js" | minify }} - {{ $jquerybundle := slice $jquery $jqmaskjs $maskjs | resources.Concat "js/jquery-bundle.js" }} - + {{ with .Params.validation }} + {{- partial "form-validation.html" -}} + {{ end }} + +