Giter Site home page Giter Site logo

silent's Introduction

silent 2.0

      

Be a silent, static blog

for silent 1.0, check this out

🎉🎉 silent's 10th Anniversary

SilentPress: a CMS alternative to VitePress and WordPress. 200+LOC written in Go.
https://github.com/fritx/silentpress

-- for the 10th-anniversary of silent. silent and its simplicity was a once a culture, a spirit, and a memory of ____
#silent #10YearsAnniversary #simplicity #opensource

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)

silent's People

Contributors

fritx avatar

Stargazers

null data avatar lizhiyong avatar VectorHuang avatar  avatar 安卓小煜 avatar Hing avatar Ahmad Fariz Dwi Putra avatar SomeBottle avatar  avatar May avatar hoshiki avatar  avatar Alvin Liu avatar Clarity avatar Chris Watson avatar harpsealjs avatar  avatar madfrog avatar  avatar pitsgo avatar Li Yi avatar shaoting avatar Allen Galler avatar  avatar Hachiman avatar Mr.Higher avatar Liucw avatar Jayin Tang avatar huangruichang avatar  avatar

Watchers

Allen Galler avatar  avatar  avatar

silent's Issues

一些小bug

图片加载的时候,如果是上一层目录会出现下面这个问题,

<img alt="avatar" src="p/Diary/Directory/../img/lover.jpg">

加载图片时,加载了两次,而且有一次路径还是错误的,报错如下

Failed to load resource: the server responded with a status of 404 (Not Found) http://iamjayden.github.io/img/lover.jpg

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.