Skip to content

wikipco/site_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add submodules

git submodule add [email protected]:wikip-co/public.git public/`
git submodule add [email protected]:wikip-co/wiki_theme themes/`

Verify submodules

git submodule init
git submodule update

Edit _config.yml

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>

Edit resources.yml

title: <Site Name>
cloudinary_user: <Cloudinary Username>
image_transform: /image/upload/w_200,f_auto/
image_cloud: https://res.cloudinary.com/
favicon: <favicon URL>

How to Deploy

  • Ensure submodules are up to date
  • Generate static files, hexo generate
  • Push changes to public submodule
  • Push changes to source repo

How to generate files

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>/

Adding posts

Posts should be added to the source/_posts/ directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published