git submodule add [email protected]:wikip-co/public.git public/`
git submodule add [email protected]:wikip-co/wiki_theme themes/`
git submodule init
git submodule update
title: <Site Name>
subtitle: 'Documentation'
description: 'Research'
keywords:
author: <Author>
language: en
timezone: ''
url: https://wikip.co/<site-name>
root: /<site-name>/
permalink: :post_title/
permalink_defaults:
pretty_urls:
trailing_index: true
trailing_html: true
source_dir: source
public_dir: public/<site-name>
title: <Site Name>
cloudinary_user: <Cloudinary Username>
image_transform: /image/upload/w_200,f_auto/
image_cloud: https://res.cloudinary.com/
favicon: <favicon URL>
- Ensure submodules are up to date
- Generate static files,
hexo generate
- Push changes to public submodule
- Push changes to source repo
This site is built using nodejs and hexo framework. If you have nodejs installed, you can run the following commands to build and test the site:
$ npm install
$ hexo s # starts the web server
$ hexo generate # generates the static files at public/<site-name>/
Posts should be added to the source/_posts/
directory.