Sign inSign up

wenfengand/hexo

By wenfengand

Updated about 7 years ago

Image
1

171

wenfengand/hexo repository overview

Hexo with next theme

FEATURES: v6:

  • next theme
  • sitemap generator
  • local search

v7:

  • v6 features
  • hexo-related-popular-posts

Usage

Simple way

docker run --rm -p 4000:4000 -d wenfengand/hexo:v6

Then visit localhost:4000.

Serve your own posts

docker run --rm  --name some-hexo \
-v $(pwd)/site_config.yaml:/opt/hexo/ipple1986/_config.yaml \
-v $(pwd)/next_config.yaml:/opt/hexo/ipple1986/themes/next/_config.yml \
-v $(pwd)/_posts:/opt/hexo/ipple1986/source/_posts \
-v $(pwd)/public:/opt/hexo/ipple1986/public \
-v $(pwd)/db.json:/opt/hexo/ipple1986/db.json \
-p 4000:4000 \
-d wenfengand/hexo:v6 \

Some explainnation:

  • site_config.yaml settings for site
  • next_config.yaml settings for next theme
  • _posts all your posts
  • public generated static site file, you can upload this folder to your site host.
  • db.json database hexo may use

If you want to custom your head

-v $(pwd)/custom_head.swig:/opt/hexo/ipple1986/themes/next/layout/_partials/head/custom-head.swig

Dockerfile

FROM wenfengand/hexo:v5

# MAINTAINER
MAINTAINER [email protected]

COPY data/  /opt/hexo/ipple1986/
COPY start.sh /opt/hexo/ipple1986/start.sh 
# running required command

# change dir to /
WORKDIR /opt/hexo/ipple1986/
CMD [ "./start.sh" ]

start.sh

hexo s

Tag summary

Content type

Image

Digest

Size

270.7 MB

Last updated

about 7 years ago

docker pull wenfengand/hexo:v7