Skip to content

Minimal but powerful website template.

License

Notifications You must be signed in to change notification settings

CornerSyrup/minimal-website-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

minimal-website-template

Minimal but powerful website template.

Features

Remarks

General

All resources are referenced from CDNs and use the non-minimized version with the major version number as the dependency. For production, please check for the minimized version and hardcode version number for stability.

Semantic UI

semantic.js is optional, some components in Semantic UI require JavaScript. The semantic.js is dependent on jQuery. You can remove both if you don't need those components.

Alpine.js

Alpine.js is referenced as CommonJS. It will initialize itself once the script is evaluated. If you need to call Alpine.js' global API before Alpine is initialized, like Alpine.data, you need to call them in the alpine:init DOM event. See the documentation on the lifecycle

Alpine.js can also be referenced as an ESM module. But Alpine is not exported to the window object and will not be initialized by itself. You can import Alpine via your module. See the documentation on installation

import Alpine from "https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/module.esm.js";

// Optional, this will expose alpine to the window object.
window.Alpine = Alpine;

Alpine.start();