Skip to content

03. Setup

Scott Jarvis edited this page Feb 20, 2019 · 27 revisions

Edit default site config

# set blog name, URL, description, etc
$EDITOR .site_config 

If you change anything in .site_config, you should rebuild your site so all your pages get the latest change/values, and then re-publish:

./update_pages -all
./publish "updated site"

Variables to edit

$blog_title

The main name/title of your blog - it appears at the top of the page and in your sites meta info.

$blog_url
  • If your blog is https://user.github.io/mdsh/, use $blog_url=/mdsh/
  • if your blog is http://site.com/blog/, use $blog_url=/blog/.
  • if your blog is http://site.com/, use $blog_url=/.

$blog_js_deps

A space separated list of npm packages to include in all pages by default. Example:

cash-dom fetch-polyfill
  • Uses Unpkg.com to provide the packages.
  • Supports npm/semver naming like [email protected]. You can use the following format for package names: package[@version/file]

In other words, only the package name is needed. See http://unpkg.com for more info.

$blog_fonts

A Google Font request. Leave blank if you don't want to use Google Fonts. The default value is:

Ubuntu:400,400i,700|Inconsolata:400,400i,700|Monaco:400,400i,700&subset=latin,latin-ext

$blog_author

Your name.

$blog_twitter

Your Twitter handle.

Clone this wiki locally