A customisation of the default Hexo 2.x theme Landscape - adding image types, Ubuntu fonts & maximising use of space
CSS JavaScript HTML
Pull request Compare This branch is 33 commits ahead, 76 commits behind hexojs:master.
Latest commit f7bb44b Jun 6, 2016 @jr0cket Add Creative Commons license to all posts & pages
* layout/_partial/license.ejs
a new file containing the html for the creative commons attribution
share-alike 4.0 international license

* layout/_partial/article.ejs
Included a call to the partial/licence file to include the license
information after the post or page content.
Permalink
Failed to load latest commit information.
layout Add Creative Commons license to all posts & pages Jun 6, 2016
scripts
source
.gitignore
Gruntfile.js Use grunt Dec 19, 2013
LICENSE Use grunt Dec 19, 2013
README.md
_config.yml
package.json Use grunt Dec 19, 2013

README.md

Landscape

A variation on the landscape theme (Hexo default theme). Customisations include

  • Ubuntu fonts
  • padding and round corners on code blocks
  • 3 styles for images when using swig (thumbnail, code & topic)
  • minimised spacing everywhere, smaller header banner

  • Preview theme by viewing my blog

Installation

git clone https://github.com/hexojs/hexo-theme-landscape.git themes/landscape-jr0cket

Landscape requires Hexo 2.4 and above.

Enable

Modify theme setting in _config.yml to landscape-jr0cket.

Update

cd themes/landscape-jr0cket
git pull

Configuration

# Header
menu:
  Home: /
  Archives: /archives
rss: /atom.xml

# Content
excerpt_link: Read More
fancybox: true

# Sidebar
sidebar: right
widgets:
- category
- tag
- tagcloud
- archives
- recent_posts

# Miscellaneous
google_analytics:
favicon: /favicon.png
twitter:
google_plus:
  • menu - Navigation menu
  • rss - RSS link
  • excerpt_link - "Read More" link at the bottom of excerpted articles. false to hide the link.
  • fancybox - Enable [Fancybox]
  • sidebar - Sidebar style. You can choose left, right, bottom or false.
  • widgets - Widgets displaying in sidebar
  • google_analytics - Google Analytics ID
  • favicon - Favicon path
  • twitter - Twiiter ID
  • google_plus - Google+ ID

Features

Fancybox

Landscape uses [Fancybox] to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.

![img caption](img url)

{% fancybox img_url [img_thumbnail] [img_caption] %}

Sidebar

You can put your sidebar in left side, right side or bottom of your site by editing sidebar setting.

Landscape provides 5 built-in widgets:

  • category
  • tag
  • tagcloud
  • archives
  • recent_posts

All of them are enabled by default. You can edit them in widget setting.