• Stars
    star
    128
  • Rank 272,237 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created 9 months ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚡️ The ultimate static site generator. Tailor-made for killer blogs, sizzling SaaS landings, audacious personal sites, and every web fantasy you dare to dream up.

⚡️ Static - The Pure Power of Simplicity.

github cover

A static site generator you're going to love. No more complicated configs, bloated frameworks, or feeling like you got kicked in the face by a horse! Here's the spiel:

  • Static is easy.
  • HTML is easy.
  • Yet, somehow we lost the art of crafting simple Static HTML websites

No longer will this stand! Static is here to reclaim the throne of simplicity!

🛠️ Setup in a Snap

Make sure you have Node installed on your machine, and then copy/paste the following command in your terminal:

npm install -g @devdojo/static

Now you'll have the static command available on your machine, allowing you to run the following:

  • static new folder-name - Create a new website with the static starter template
  • static dev - Start up a dev environment of your static website
  • static build - Build a production ready version of your website (available in the _site directory)

Next, head on over to the official documentation to learn more about building your site.

🖐️ Five reasons this might just be your jam!

1. Page-based Routing

Each file within the pages directory corresponds to a route on your website. With a structure like this:

pages
├── index.html
├── about.html
├── contact
│   ├── index.html
│   ├── form
│   │   ├── index.html

Your new site will have the following routes available:

http://localhost:3000
http://localhost:3000/about
http://localhost:3000/contact
http://localhost:3000/contact/form

2. Layouts

Design layouts that multiple pages can utilize.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{title}</title>
</head>
<body>
    {slot}
</body>
</html>

Then, use it in any page.

<layout title="Radical Righteousness" src="main.html">

    <h1>🏄‍♂️ Totally Tubuloso Website</h1>
    
</layout>

3. Includes

Create re-usable HTML partials with the <include> tag. Specify the HTML file with the src attribute.

<layout title="Behind the Scenes!" src="main.html">

    <include src="about-header.html"></include>
    <include src="about-copy.html"></include>

</layout>

4. TailwindCSS Integration

Add the TailwindCSS shortcode to the <head> of any layout and it will automatically be injected. Example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{title}</title>
    {tailwindcss}
</head>
<body>
    {slot}
</body>
</html>

It will be replaced with the Tailwind CDN link in dev, and a minified CSS file will be compiled during build.

5. Collections

Add collections of data to your application. Here's an example collection located at collections/menu.json

[
    {
        "title" : "Home",
        "link" : "/"
    },
    {
        "title" : "About",
        "link" : "/about"
    }
]

Now, you can easily loop through this collection:

<ForEach collection="menu">
    <li>{menu.title}</h1>
</ForEach>

Those are just a few of the hot features available, but there's so much more to uncover and learn.

Learn More

You can learn about all the features available in Static by visiting the official documentation. You may also be interested in checking out some of the templates here.

Static HTML is King 👑

More Repositories

1

voyager

Voyager - The Missing Laravel Admin
PHP
11,658
star
2

wave

Wave - The Software as a Service Starter Kit, designed to help you build the SAAS of your dreams 🚀 💰
PHP
4,882
star
3

pines

The Pines UI library
HTML
2,007
star
4

chatter

Chatter is a Simple Laravel Forum Package
PHP
900
star
5

genesis

An Application Starter Kit - Built with Laravel Folio and Volt
Blade
770
star
6

tails-components

The Tails Open Source Components are a (no-config) copy'n paste free collection of hand-crafted templates and components built in TailwindCSS.
HTML
701
star
7

larasail

LaraSail - Set Sail with your Laravel app on DigitalOcean
Shell
552
star
8

php-login-script

This is a simple PHP login script using PHP, PDO, and MySQL
PHP
97
star
9

tailwind-breakpoint-tool

A simple breakpoint tool for develping your TailwindCSS sites.
JavaScript
91
star
10

voyager-themes

Theme Hook for Voyager
PHP
82
star
11

create-alpine-app

A simple starter template for your Alpine and Tailwind projects
HTML
56
star
12

voyager-polls

Create Interactive Polls with this hook for Voyager
Vue
47
star
13

laravel-user-image

Repo for episode tutorial on adding a user profile photo -
PHP
43
star
14

tails

This is the Tails composer package for Laravel. Easily fetch designs in your Laravel application that you design inside of the Tails Site/Page Builder.
PHP
35
star
15

create-a-php-routing-system

This repo is the code used in the DevDojo Creating a PHP Routing System Video Series
PHP
33
star
16

voyager-redirects

A Hook that allows you to add redirects to your Laravel and Voyager App
PHP
32
star
17

laravel-reactions

A Laravel Reactions Package
PHP
31
star
18

voyager-site

This is the source for LaravelVoyager.com website
HTML
26
star
19

voyager-installer

This is the repo for the Voyager installer
PHP
25
star
20

wordpress-import

This is a hook for Voyager that will import a Wordpress xml file into the Voyager DB
PHP
24
star
21

image-uploads-with-laravel-and-filepond

This is the source code for the video 'Image Uploads with Laravel and Filepond'
PHP
18
star
22

website-screenshot-with-laravel

Learn how to create a screenshot of a website with Laravel
PHP
16
star
23

themes

A package to add themes functionality in your Laravel application (Currently for Voyager)
PHP
14
star
24

livewire-trix-editor-post

This is a repository for the trix editor post written on the DevDojo
PHP
13
star
25

htmlinclude

A simple script allowing you to include html files inside of html
JavaScript
13
star
26

google-image-search

Google Image Search PHP Package
PHP
12
star
27

wordsmith-ui

The UI for the Wordsmith CMS built using the Tallstack
HTML
7
star
28

html5-platform-game

An HTML5 Platform Game created for https://devdojo.com/course/html5-platform-game
JavaScript
7
star
29

pages

This is one of the default themes for the Voyager Themes Hook
JavaScript
6
star
30

dribbble

Dribbble API Package for Laravel
PHP
5
star
31

behance

Behance API Package for Laravel 4
PHP
5
star
32

sample-theme

This is a very basic sample theme for Voyager Themes Hook
HTML
5
star
33

blog

The DevDojo Blog Power-up
Blade
4
star
34

laravel-socialite-tutorial

Laravel Socialite Tutorial
PHP
4
star
35

laravel-wave-api-endpoints

Endpoints for Wave API
4
star
36

welcome

A simple welcome package
PHP
4
star
37

mochi

Mochi Mini Framework
PHP
3
star
38

devblog

Developer Blogging Platform
JavaScript
3
star
39

forrst

A Forrst API Wrapper Package for Laravel 4
PHP
3
star
40

ninjamediascript

Ninja Media Script Documentation
JavaScript
3
star
41

create-a-php-singleton-class

This is the source code creating in the video 'The PHP Singleton Class'
PHP
3
star
42

blockjs

The BlockJS Editor
JavaScript
2
star
43

static-starter

The starter template for Static
HTML
2
star
44

devcoin

This is the repo for stored assets for the DevCoin
2
star
45

slider

A TailwindCSS Slider with multiple flavors including React, Vue, Alpine, and VanillaJS
JavaScript
2
star
46

blockjs-website

Website for BlockJS
CSS
2
star
47

app

This is the repo for the DevDojo products application package
PHP
2
star
48

.github

The Dev Community where we can all create, learn, and grow together.
1
star
49

laravel-deployer-cloudways

This is the repo for the Laravel Deployer Cloudways video
PHP
1
star
50

components

Components for your Laravel applications powered by Volt
Blade
1
star
51

devdojo

The DevDojo NPM CLI
1
star
52

Ninja-Media-Script-Theme-Default

Ninja Media Script Theme - Default
PHP
1
star
53

static.devdojo.com

The repo for the main static website
HTML
1
star