No description or website provided.
JavaScript HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
scaffolds
source
themes
.DS_Store
.npmignore
_config.yml
db.json
package-lock.json
package.json
readme.md

readme.md

🔥🎅🏿 MY HEXO and NODE.JS powered blog 🔥🎅🏿

Start Server locally:

Cd to folder then:

hexo server --draft --open

Run as process on server

screen hexo server -p 80 &

Kill server session

screen -list (Shows list of open screen sessions)

screen -X -S [session # you want to kill] quit

Turn Browser Sync on/off for dynamic development:

npm remove hexo-browsersync --save

🔥🔥 How I was able to make my own theme: 🔥🔥

In layout.ejs I did:

<% if (page.path.indexOf('archives') > -1) { %>
<%- partial('layout2') %>
<% } else if (page.path.indexOf('contact') > -1) { %>
<%- partial('layout2') %>
<% } else if (page.path.indexOf('about') > -1) { %>
<%- partial('layout2') %>
<% } else if (page.path.indexOf('blog') > -1) { %>
<%- partial('layout4' , {page,site}) %>
<% } else if (page.path.split("/").length == 5) { %>
<%- partial('post') %>
<% } else { %>
<%- partial('index') %>
<% } %>