Hexo Theme Typescript

Typescript is a minimal theme for Hexo.

This theme is also available on:

Dependencies

This theme depends on the following Hexo plugins to work correctly:

  • hexo-generator-tag
  • hexo-renderer-ejs
  • hexo-renderer-less
  • hexo-renderer-marked
  • hexo-pagination

If you are to use hexo local search instead:

  • hexo-generator-json-content

and add the following to your global _config.yml:

# Generator json content
jsonContent:
  meta: false
  keywords: false
  pages:
    title: true
    slug: false
    date: false
    updated: false
    comments: false
    path: false
    link: false
    permalink: true
    excerpt: false
    keywords: false
    text: true
    raw: false
    content: false
  posts:
    title: true
    slug: false
    date: false
    updated: false
    comments: false
    path: false
    link: false
    permalink: true
    excerpt: false
    keywords: false
    text: true
    raw: false
    content: false
    categories: false
    tags: false

Please make sure these plugins are installed before generate the site.

Customization

Typescript is customizable via _config.yml file under the theme directory.

The global _config.yml for Hexo may also need customization. In particular:

  • Set disqus_shortname field to your disqus short name.
  • Set theme field to hexo-theme-typescript.

In addition to these settings, users may also want to edit/replace the following files:

  • Replace the site logo: source/images/logo.png, source/images/logo.psd
  • The icon fonts are from icomoon.
  • The default English font is Futura PT via Adobe Typekit. If you are using Typekit like me, please change the embedded javascript code in layout/_partial/head.ejs, else you can delete the corresponding code.

This theme currently support 4 search services:

  • Google custom search
  • Hexo Local search (hexo-json-content)
  • Algolia search
  • Microsoft Azure search

For information about how to setup searching, please refer to another project of mine, universal-search.

Demo

Typescript Demo

Copyright

Public resources used in this theme:

Copyright © Art Chen

Please do not remove the "Theme Typescript designed by Art Chen" text and links.

请不要删除页面底部的作者信息和链接。