Giter Site home page Giter Site logo

blog's Introduction

silent 2.0

      

Be a silent, static blog

for silent 1.0, check this out

Features

Old-school & Clean

  • no MVVM frameworks (no vue, react, etc)
  • no CCS frameworks
  • no jquery

Static & Portable

  • no node_modules (no dependencies, etc)
  • no build systems (no gulp, webpack, etc)
  • no extra build commands (no npm-run-build or -generate)
  • no CI/CD required (github-actions can be optional)
  • source code is all it needs to run
  • npm-create tooling

Writing, Focus and Visualization

Extendable & Integration

  • analytics: google, baidu, etc
  • comment system: disqus +cusdis +giscus, etc
  • backend permission api

Funny & Fancy & Performance

  • prefer history.pushState api
  • progress bar on top
  • auto favicon (extracted from title)
  • favicon dark mode
  • page-level dark mode

Security & Stability

  • responsive design
  • prefer es5 and guarded with eslint
  • fallback on browser compatibility break
  • IE 6+ support (needs polyfill, etc)

Usage

# create it
npm create silent <dest>
# or
npm i -g silent
silent create <dest>

# e.g.
npm create silent ~/t/my-blog
# >>>
# copying /Users/fritx/.nvm/versions/node/v16.14.0/lib/node_modules/silent/blog
#  => /Users/fritx/t/my-blog
# silent-create completed

# serve it
cd ~/t/my-blog
npx serve . -p 3000
# >>>
# Serving! http://localhost:3000

# deploy to your github pages?
cd ~/t/my-blog
git init
git remote add origin [email protected]:fritx/silent.git
npx gh-pages -d .
# >>>
# Published. https://fritx.github.io/silent/

Browser Compatibility

Status: no IE

mermaid:

auto title favicon:

if using giscus:

Silent Fans

Thank you!

More..

Rather than a framework or library, silent is more like a spirit - a culture. (says Huang)

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.