mirror of https://gitlab.com/curben/blog
2170386773
- to request url removal from yandex |
||
---|---|---|
scaffolds | ||
scripts | ||
source | ||
themes/chameleon | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmrc | ||
.nvmrc | ||
.snyk | ||
LICENSE.md | ||
README.md | ||
_config.yml | ||
netlify.toml | ||
package.json |
README.md
mdleom.com
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).
- 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.updated
instead ofpost.updated
. - heading-link.js - A filter plugin to add a link button next to each heading.
- image.js - A tag plugin to easily embed images in a post with responsive image support.
- link.js - A helper plugin to add a link. Modified from link_to.js to remove title attribute and 'external' option.
- openGraph - A helper plugin to add Open Graph tags. Modified from open_graph.js to use additional Open Graph tags and WHATWG URL API.
- 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.
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
.- This is no longer necessary, thanks to
updated_option
feature.
- This is no longer necessary, thanks to
Chameleon theme
Chameleon is a fork of Typing theme, rewrote from scratch with the following changes/features:
- sanitize.css and autoprefixer for consistent cross-browser styling.
- Utilise relative length instead of absolute length in the css.
prefers-color-scheme
to apply light/dark theme according to the OS preference.- Add a Copy button to each code block.
- Removed jQuery, fancyBox, web analytics, comment plugins, donation links and typo.css.
- Homepage shows recent posts and tags.
Installation
Refer to this post for more detailed instruction.
License
Copyright (c) 2018-2021 Ming Di Leom
The content of this blog is licensed under a CC BY-SA 4.0 license, and the underlying source code used to format and display that content is licensed under an MIT license, unless indicated otherwise.
Mirrors
- https://curben.pages.dev/
- https://curben.netlify.app/
- https://curben.gitlab.io/
- http://xw226dvxac7jzcpsf4xb64r4epr6o5hgn46dxlqk7gnjptakik6xnzqd.onion/
- http://mdleom.i2p/ (address helper)
- http://ggucqf2jmtfxcw7us5sts3x7u2qljseocfzlhzebfpihkyvhcqfa.b32.i2p/
Uptime Status
Useful links: