Code Monkey home page Code Monkey logo

hexo-theme-unit-test's Introduction

Hexo Theme Unit Test

This is a dummy Hexo site for theme unit test. You should test your theme before release.

This test doesn't contain the default theme. You have to install the theme you want to test before starting.

Usage

  1. Clone this repository

    $ git clone https://github.com/hexojs/hexo-theme-unit-test.git
  2. Install your own theme and modify theme setting in _config.yml.

  3. Run server and start testing. Make sure all styles are displayed properly.

  4. Once test is done, you can submit your theme!

Checklist

<head>

  • Use the proper DOCTYPE. If you don't know which doctype you should use, <!DOCTYPE html> is recommended.

  • UTF8 charset

    <meta charset="utf-8">
  • Proper titles for different pages

  • Favicon support

    <link rel="icon" href="path/of/favicon">

Index

  • Only display excerpts. (Better with a "Read More" link)
  • Pagination

Post

  • Display post categories and tags.
  • Disqus comment support.
  • Display the post date.
  • Support photo and link layout.
  • Posts without title should be accessible.

Performance

Optional

  • Responsive design
  • i18n
  • Post share
  • SEO
  • RSS Autodiscovery support
    • Example:
    <link rel="alternate" href="path/of/rss" type="application/atom+xml">
    • Some RSS plugins (e.g. hexo-generator-feed 2.1+) insert autodiscovery by default. There is a slight performance benefit if a theme inserts it, instead of the plugin. To take advantage of that, autodiscovery needs to be disabled in the plugin.
      feed:
        autodiscovery: false
    • hexo-generator-feed plugin could generate more than one type of RSS (e.g. Atom & RSS2). Here is an example EJS snippet for multi-format support by utilizing feed_tag helper:
      <%- feed_tag() %>
      • If you want to support other plugins, in addition to hexo-generator-feed:
      <% if (config.feed) { %>
        <%- feed_tag() %>
      <% } else if (theme.rss) { %>
        <%- feed_tag(theme.rss) %>
      <% } %>
    • If you decide to support autodiscovery, we recommend checking the updates of hexo-generator-feed (or any other RSS plugin that your theme prefers) from time to time. The configuration and functionality of an RSS plugin may change over time.

Resources

hexo-theme-unit-test's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar tommy351 avatar xuanwo avatar curbengh avatar sukkaw avatar leesei avatar noahdragon avatar stevenjoezhang avatar tomap avatar yoshinorin avatar louisbarranqueiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.