Hexo from the Beginning

      No Comments on Hexo from the Beginning

Hexo is a tool that allows the writer to create a web site using markdown. The web site is made of flat files, without a database. This type of web site is extremely simple, efficient, fast and hackproof. Check out my Gitlab test page.

Node.js PPA
You need to install node.js, a software package that uses javascript. For me on Ubuntu 16.04 it was painful, because the install scripts from Nodejs.org did not work, and installed a back-level version, 4.2.6, vs the most current 6.9.5. Dave helped me install.

PPA is here, but curl did not work. Not sure why curl does not work. wget also got same error but did it anyway. source

Changed from:
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add –
To: wget https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add –

and it added the key. Then did the rest of the install.

~$ wget https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add –
–2017-02-27 10:03:04– https://deb.nodesource.com/gpgkey/nodesource.gpg.key
Resolving deb.nodesource.com (deb.nodesource.com)… ERROR: This command can only be used by root.
52.84.144.130, 52.84.144.60, 52.84.144.227, …
Connecting to deb.nodesource.com (deb.nodesource.com)|52.84.144.130|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3128 (3.1K) [text/plain]
Saving to: ‘nodesource.gpg.key’

nodesource.gpg.key 100%[===================>] 3.05K –.-KB/s in 0s

2017-02-27 10:03:05 (363 MB/s) – ‘nodesource.gpg.key’ saved [3128/3128]

W: GPG error: https://deb.nodesource.com/node_6.x xenial InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
W: The repository ‘https://deb.nodesource.com/node_6.x xenial InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.

themes: Hexo themes
https://gitlab.com/groups/pages
https://gitlab.com/pages/hexo, then fork

https://lisplover.gitlab.io/blog/2016/04/23/How-to-Setup-Hexo-Blog-on-GitLab/
https://commitlogs.com/2016/09/03/how-to-build-blog-with-hexo/
hexo docs: https://hexo.io/docs/setup.htmlo
https://try.github.io/levels/1/challenges/1

Combining Hexo with Gitlab: For each git directory you need to do “npm init”, which initializes hexo for the directory

To see your edits on local, open a terminal, go to your hexo directory, then do “hexo server”. You will then go your your browser, URL “local:4000” to see your site. If you change any of the Hexo settings, like changing the theme .yml, you’ll need to stop and restart the server.

I am playing with markdown in Hexo.

Leave a Reply

Your email address will not be published. Required fields are marked *