Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A hexo theme with random fullscreen background image.



If you

  • prefer to use fullscreen picture as background image
  • do NOT like show article abstract in post list
  • do NOT like use paginations in post list

This theme seems to suit you.


hexo theme random screenshot homepage hexo theme random screenshot archive hexo theme random screenshot detail hexo theme random screenshot user card hexo theme random screenshot categories hexo theme random screenshot tags cloud hexo theme random screenshot tag list hexo theme random screenshot code style


execute this command in blog root path:

git clone themes/random

modify the theme setting in hexo main config file _config.yml as following:

theme: random


You can config the avatar in hexo main config file or theme config file as following:


Nav links config

Nav links in homepage and the top of other pages, you can config it in theme config file theme/random/_config.yml:

  Home: /
  Archives: /archives
  Tags: /tags
  Categories: /categories
  About: /about

In index page, the Home link will hide itself.

Create tags list page and categories list page

Hexo do NOT create tags list page and categories list page in default, but Random theme provide those pages, you just need to create it.

If you want to create tags list page, run this command in blog root path:

hexo new page tags

this will create a folder and a markdown file source/tags/, change the type value of thie file as following:

title: Tags
date: 2016-01-16 06:17:29
type: "tags"
comments: false

the same to create categories list page:

hexo new page categories

and modify the source/categories/ as following:

title: Categories
date: 2015-08-03 14:19:29
type: "categories"
comments: false

Social links config

In the homepage, and the user card when visitors click the avatar, there are some social site icon links, You can config the icons in theme config file theme/random/_config.yml as following:


It will replace text into icon automaticalcally, Random theme support to show icon of Facebook / Google Plus / Dribbble / LinkedIn / NPMjs / Youtube / Zhihu / Quora.

If you need more, please create issue.

Add RSS Icon

If you want add RSS icon to social links, please add the following code at the social section in config file:


Third party Service

Random support Google Analytics / Baidu Tongji / Disqus / Uyan / JiaThis / Valine, You can config these in theme config file or hexo main config file:

# Google analytics
# Baidu tongji
# Disqus
# Uyan
# jiaThis
  data_track_clickback: true
  summary: ""
  showClose: true
  shortUrl: false
  hideMore: false
  enable: false # set true if you want to use
  appId: #your leancloud appId
  appKey: #your leancloud appKey
  guest_info: nick,mail,link #valine comment header info
  placeholder: # valine comment input placeholder(like: Please leave your footprints )
  avatar: robohash # gravatar style
  pageSize: 10 # comment list page size
  verify: false # valine verify code (true/false)
  notify: true # valine mail notify (true/false) 
  lang: en
  visit_analytics: true

Just add the key or code after the ':'.

Theme config

The following settings is not prerequisite.

Show latest articles in homepage

Homepage did NOT show latest article links by default, if you want show latest articles in homepage, you need to add homepageArticleCount in theme or site config, 0 to hide latest article links.

# show latest 3 articles in homepage
homepageArticleCount: 3

Background image source config

The background image use unsplash as default, but you can use your custom pictures.

If you use unsplash images, you can config the settings in theme config file theme/random/_config.yml:

  # more about config on
  # blur: true
  gravity: 'north' # north, east, south, west, center
  # greyscale: true

if you want use your own pictures, change the following section:


__width__ and __height__ in URLs will replace with browser window size when show the picture, It's very useful when you image server support cut image into appointed size.

Vegas(background image player) config

Random theme use Vegas to organize pictures, you can config it in following section of theme config file:

  # more about config
  # animation: 'random'
  # transition: 'swirlRight'
  preload­Image: true
    - slideLeft2
    - slideRight2
    # - zoomIn
    # - swirLeft
    # - swirRight
    # - flash
    - flash2
  timer: true
  delay: 5000
  shuffle: true
  count: 28

Do NOT use background images

If you do NOT like the background iamges, you can turn it off, please add this option in you site config or theme config file:

  # home page
  index: false
  # arcihve / categories / tags
  post_list: false
  # post and page
  post: true

and you can set the background color with:

backgroundColor: D7CCC8

Hide button

There is a Hide button on the left bottom of every page, all of the content except button itself will be hide while user click this button. If you want to hide this button, please change hideButtonVisibility to false in theme config or main config file:

hideButtonVisibility: false

Ignore visitor statistics on special server

When you are debugging or writting, you may do NOT like to send the visitor statistics to Google Analytics or Baidu Tongji, Just add the debugging server address to the following variables:

isIgnoreSpecialHostVisitor: true
  - localhost