8000 GitHub - mchua/blog-11ty: 11ty implementation of blog, with thanks to David Peter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mchua/blog-11ty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog-11ty

11ty implementation of blog, with thanks to David Peter

Setup

git knowledge and a node/npm installation is assumed.

First, clone this repository from GitHub. Next, you'll need to install this project's third-party dependencies in order to build this project locally. In your terminal, navigate to the folder for the cloned project, and run:

npm install

This should install all the packages for you (in node_modules/). Installing packages are a pre-requisite for running commands.

Common commands

  • npm run dev: Starts the 11ty development server. Use this to preview your whole site before pushing to production. It hot-reloads!
  • npm run write: Opens a prompt asking you for your post's title. You don't have to think of one right away, but the title becomes part of the post's metadata and gets translated into the post's filename. The post's filename then becomes the URL slug of the post. Of course, you can always change the filename and title later.
  • npm run deploy: Does a git add, commit, and push.

Gotchas

  • On the development server, old pages are retained, not removed. So if something feels off, try removing the generated _sites/ folder and re-running npm run dev and see if the problem persists.
  • Changing code for filters needs a complete restart of npm run dev.
  • Basically turn npm run dev off and on again if something seems wrong.

About

11ty implementation of blog, with thanks to David Peter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0