Giter Club home page Giter Club logo

statika's Introduction

Statika

Statika is simple static site generator(SSG) written in go emphasizing convention over configuration. This is a newer version of my original statica. Statika is (generally) not intended for public consumption. It just does what I want. It probably won't do what you want. That being said....

The statika.app example site is live here: https://www.statika.app/

Build

  • clone
  • go get
  • go run statika.go examples/simple.com -b

Usage

$ statika -d <project-dir>   # The default action is to watch
$ statika -d simple.com -c  # Clean the output
$ statika -d simple.com -b  # Manually build
$ statika -d simple.com -w  # Watch for changes then build
$ statika -d simple.com -s  # Run a local development server

Configuration

The config is specified in an .env file in the root of the project dir. There are not many options but those that do exist include:

# Required
DOMAIN="statika.app"
URL="https://statika.app"

# Optional
DEV_SERVER_HOST="localhost"
DEV_SERVER_PORT=8001

Project Structure

The project folder assumes the following structure where different sections, i.e. blog, events. news, products, etc, of the site will exist as folders under the content directory. The pages folder is a special section and produces content at the root of the site rather than within a section. If a template file for a section, for example pages_tags.html, does not exist, statika just skips that output.

── .env
── src
    │── content
    │    │── blog
    │    │   ├── coffee-blog-one.md
    │    │   ├── coffee-blog-three.md
    │    │   └── coffee-blog-two.md
    │    └── pages
    │        └── about.md
    │        └── products.md
    ├── static
    │   └── favicon.ico
    │   └── humans.txt
    │   └── robots.txt
    └── templates
        └── html
            ├── blog_list.html
            ├── blog_show.html
            ├── blog_tags.html
            ├── layout.html
            ├── pages_home.html
            ├── pages_list.html
            └── pages_show.html

statika's People

Contributors

code0x378 avatar

Watchers

 avatar

statika's Issues

Stylesheet not being copied

Just tried this new version. The simple.com site built ok. The statica.app site is missing the stylesheet. It's not in the output folder. Path is "/assets/css/site.css". Assets folder not copied.

No tags in My Coffee Blog

Hi Jeff, hope you're doing well. I'm just getting back to Statika and just ran the build for My Coffee Blog and I don't see any tags on the blog pages even though a "tags" folder has been created in the output folder. Please check.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.