## Download pandoc wget https://github.com/jgm/pandoc/releases/download/2.13/pandoc-2.13-linux-amd64.tar.gz tar -zxvf pandoc-2.13-linux-amd64.tar.gz echo"export PATH=$PATH:/ThePathTo/pandoc-2.13/bin" >> ~/.bashrc source ~/.bashrc # To tell the system where the pandoc is
## Switch the compiler cd /PathToTheBlogRoot npm uninstall hexo-renderer-marked --save # Uninstall the default compiler npm install hexo-renderer-pandoc --save # npm uninstall hexo-math --save npm install hexo-renderer-mathjax --save # NexT should already download it
mkdir /PathToTheBlogRoot/source/_data # Creat the Data Files Folder touch /PathToTheBlogRoot/source/_data/styles.styl # self-defined CSS file to set up parameters (e.g. transparency)
// Custom styles. // Overall background settings body { background:url(/images/background.jpg);// Set the background image, images are also in the source folder background-repeat: no-repeat;// Set the background image non-repeated filling background-attachment:fixed;// Set the background image not to scroll with the page background-position:50%50%;// Set the background image position background-size: cover// Set to maintain the aspect ratio of the image and scale the image to the smallest size that will completely cover the background positioning area //opacity: 0.5 //z-index: -1 }
//.main-inner{ // opacity: 0.99; // }
// page header style attributes .header-inner { // You can also define the backgroundcolor at the same time // background: #ddd // transparency // opacity: 0.5; // z-index: 10; }