https://github.com/maciektalaska/l2
customized hexo theme. based on landscape by timnew
https://github.com/maciektalaska/l2
Last synced: 3 months ago
JSON representation
customized hexo theme. based on landscape by timnew
- Host: GitHub
- URL: https://github.com/maciektalaska/l2
- Owner: MaciekTalaska
- License: mit
- Created: 2019-11-10T23:26:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-22T17:54:03.000Z (over 5 years ago)
- Last Synced: 2025-01-08T18:51:46.548Z (5 months ago)
- Language: CSS
- Homepage:
- Size: 1.37 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# L2
A customized theme based on [timnew's landscape theme](https://github.com/timnew/landscape) for [Hexo](https://hexo.io) static site generator.
- [Preview](http://maciektalaska.github.io)
## Installation
### Install
``` bash
$ git clone https://github.com/hexojs/hexo-theme-landscape.git themes/landscape
```**Landscape requires Hexo 2.4 and above.**
### Enable
Modify `theme` setting in `_config.yml` to `l2`.
### Update
``` bash
cd themes/l2
git pull
```## Configuration
``` yml
# 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.
```
{% 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_postsAll of them are enabled by default. You can edit them in `widget` setting.
## Development
### Requirements
- [Grunt] 0.4+
- Hexo 2.4+### Grunt tasks
- **default** - Download [Fancybox] and [Font Awesome].
- **fontawesome** - Only download [Font Awesome].
- **fancybox** - Only download [Fancybox].
- **clean** - Clean temporarily files and downloaded files.[Hexo]: http://hexo.io
[Fancybox]: http://fancyapps.com/fancybox/
[Font Awesome]: http://fontawesome.io/
[Grunt]: http://gruntjs.com/