mirror of https://gitlab.com/curben/blog
020ba39fff
- so that browser can parse <title> asap |
||
---|---|---|
scaffolds | ||
scripts | ||
source | ||
themes/typing | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmrc | ||
.nvmrc | ||
.snyk | ||
LICENSE.md | ||
README.md | ||
_config.yml | ||
netlify.toml | ||
package.json |
README.md
curben.netlify.com
Forked from GitLab's Hexo example with Typing theme.
Installation
Refer to this post for more detailed instruction.
Changes
The following are the major changes I made compared to the upstream.
Hexo site
- Updated .gitlab-ci.yml to use the latest version of Node.js in Alpine docker image.
- All packages are installed from their respective master branch, instead of npm published version.
- Removed unused packages, hexo-generator-category and hexo-renderer-stylus from the default packages.
- Replaced the bundled Landscape theme with Typing theme.
- Add
lastUpdated
to the front-matter to manually set updated time of a post, instead of usingpost.updated
.
Typing theme
- Homepage shows index of posts (same as /archives).
- Removed jQuery, fancyBox, web analytics, comment plugins and donation links.
- Utilise relative length, instead of absolute length in the css.
- Add a "Copy" button to each code block.
Plugins
- Installed hexo-nofollow for SEO purpose to prevent search engines from following external links.
- Installed hexo-yam to pre-compress static assets (html, css, js and svg).
- cloudinary.js - A tag plugin to easily embed Cloudinary in a post.
- copy-button.js - A filter plugin to add a copy button to each code block.
- feed - A generator plugin to generate an RSS feed. Modified from hexo-generator-feed to use
post.lastUpdated
instead ofpost.updated
. - heading-link.js - A filter plugin to add a link button next to each heading.
- link.js - A helper plugin to add a link. Modified from link_to.js to remove title attribute and 'external' option.
- listTags - A helper plugin to display tags. Modified from link_tags.js to add rel="tag" and itemprop="keywords" attributes.
- openGraph - A helper plugin to add Open Graph tags. Modified from open_graph.js to be compatible with "cloudinary.js".
- sitemap - A generator plugin to generate a sitemap. Modified from hexo-generator-sitemap with this patch to include tags/categories and remove index.html from the URL.
License
The content of this blog is licensed under the CC-BY-SA license, and the underlying source code used to format and display that content is licensed under the MIT license, unless indicated otherwise.
Useful links: