blog/themes/chameleon
MDLeom ffa9a39ca8
fix(css): increase front-page 'recent posts' & 'tags' font-size
- especially on tablet
2020-12-05 11:47:57 +00:00
..
build chore: make css build to be optional 2020-08-15 13:26:27 +00:00
languages feat(theme): add post's source 2020-11-08 11:37:21 +00:00
layout fix(layout): enable zoom 2020-12-03 22:23:30 +00:00
preview fix: rename typing to chameleon theme 2019-09-11 06:48:43 +01:00
scripts refactor: utilise full_url_for() 2020-08-21 12:37:10 +00:00
source fix(css): increase front-page 'recent posts' & 'tags' font-size 2020-12-05 11:47:57 +00:00
.npmrc chore: make css build to be optional 2020-08-15 13:26:27 +00:00
README.md fix(css): compatibility with hexojs/hexo-util#229 2020-08-15 13:38:31 +00:00
package.json chore(dev-deps): update autoprefixer from 9.6.1 to 10.0.0 2020-09-21 09:07:52 +00:00

README.md

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 index of posts (same as /archives).

Options

Configure this theme from your site's configuration:

# _config.yml
theme_config:
  # Header menu
  menu:
    Home: /
    Archives: /archives/
    Feed: /atom.xml

  # Footer menu
  footer:
    GitLab: https://gitlab.com/curben/blog

  # Load forkawesome icons?
  icons: false

Codeblock highlight

Following configurations need to be updated.

# _config.yml
highlight:
  enable: true
  line_number: false
  hljs: true
  wrap: false

prismjs:
  enable: false

Build

Build "source/css/_source.css" into "source/css/chameleon.css"

$ npm install
$ npm run build