HTML dumps are stored in this folder for testing scripts.
Should have the same naming as the corresponding .js
file.
pages
└── pagename
├── pagename.html
├── pagename.js
└── extra.css
pagename.html
- the HTML dump.
pagename.js
- page spesific JavaScript file to run on the page.
extra.css
- page spesific CSS. Inserted into webflow in the custom code <head>
section.
-
Copy
<body>
tag of document from web inspector. Duplicate the template folder and replace existing<body>
-tag within the document.. -
Add
action="/"
on all<form>
-tags. This is due to the WF form handling. -
Replace CDN script tag with path to script in parent folder.
We use JsDelivr to serve content to Webflow. The CDN url follows the convention
https://cdn.jsdelivr.net/gh/user/repo@version/file
which in our case is something like
https://cdn.jsdelivr.net/gh/lovsang-no/[email protected]/{path}{filename}