Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

hexojs/hexo-theme-unit-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 modifytheme setting in_config.yml.

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

  4. Once test is done, you cansubmit your theme!

Checklist

<head>

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

  • UTF8 charset

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

  • Favicon support

    <linkrel="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.
  • Supportphotos in front-matter.
  • Posts without title should be accessible.

Performance

Optional

  • Responsive design
  • i18n
  • Post share
  • SEO
  • RSSAutodiscovery support
    • Example:
    <linkrel="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 utilizingfeed_tag helper:
      <%-feed_tag()%>
      • If you want to support other plugins, in addition to hexo-generator-feed:
      <%if(config.feed){%><%-feed_tag()%><%}elseif(theme.rss){%><%-feed_tag(theme.rss)%><%}%>
    • If you decide to support autodiscovery, we recommend checking the updates ofhexo-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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

    Packages

    No packages published

    Contributors16


    [8]ページ先頭

    ©2009-2025 Movatter.jp