-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
2,237 additions
and
2,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Copyright (c) 2013 Tommy Chen | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
Copyright (c) 2013 Tommy Chen | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,140 @@ | ||
# Landscape | ||
|
||
A brand new default theme for [Hexo]. | ||
|
||
- [Preview](http://hexo.io/hexo-theme-landscape/) | ||
|
||
## Installation | ||
|
||
### Install | ||
|
||
``` bash | ||
$ git clone https://github.com/hexojs/hexo-theme-landscape.git themes/landscape | ||
``` | ||
|
||
**Landscape requires Hexo 2.4 and above.** If you would like to enable the RSS, the [hexo-generate-feed] plugin is also required. | ||
|
||
### Enable | ||
|
||
Modify `theme` setting in `_config.yml` to `landscape`. | ||
|
||
### Update | ||
|
||
``` bash | ||
cd themes/landscape | ||
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. | ||
|
||
``` | ||
![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. | ||
## 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]: https://hexo.io/ | ||
[Fancybox]: http://fancyapps.com/fancybox/ | ||
[Font Awesome]: http://fontawesome.io/ | ||
[Grunt]: http://gruntjs.com/ | ||
[hexo-generate-feed]: https://github.com/hexojs/hexo-generator-feed | ||
# Landscape | ||
|
||
[![NPM version](https://badge.fury.io/js/hexo-theme-landscape.svg)](https://www.npmjs.com/package/hexo-theme-landscape) | ||
|
||
A brand new default theme for [Hexo]. | ||
|
||
- [Preview](https://hexojs.github.io/hexo-theme-landscape/) | ||
|
||
## Installation | ||
|
||
### Install | ||
|
||
Local git install: | ||
|
||
``` bash | ||
$ git clone --depth 1 https://github.com/hexojs/hexo-theme-landscape themes/landscape | ||
``` | ||
|
||
npm install: | ||
|
||
``` | ||
npm i hexo-theme-landscape | ||
``` | ||
|
||
**Landscape requires Hexo 2.4 and above.** If you would like to enable the RSS, the [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) plugin is also required. | ||
|
||
### Enable | ||
|
||
Modify `theme` setting in `_config.yml` to `landscape`. | ||
|
||
``` diff | ||
_config.yml | ||
- theme: some-theme | ||
+ theme: landscape | ||
``` | ||
|
||
### Update | ||
|
||
``` bash | ||
cd themes/landscape | ||
git pull | ||
``` | ||
|
||
## Configuration | ||
|
||
It is recommended not to modify `theme/landscape/_config.yml` but to use the `theme_config` section of `_config.yml` or to create `_config.landscape.yml` (see [Alternate Theme Config](https://hexo.io/docs/configuration#Alternate-Theme-Config)). | ||
|
||
``` yml | ||
# Header | ||
menu: | ||
Home: / | ||
Archives: /archives | ||
rss: /atom.xml | ||
banner: images/banner.jpg | ||
subtitle: This a subtitle | ||
|
||
# Content | ||
excerpt_link: Read More | ||
fancybox: true | ||
recent_posts_limits: 5 | ||
# Footer | ||
copyright: |- | ||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a></br> | ||
All website licensed under <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank">CC BY-NC-ND 4.0</a></br> | ||
# Sidebar | ||
sidebar: right | ||
widgets: | ||
- category | ||
- tag | ||
- tagcloud | ||
- archive | ||
- recent_posts | ||
|
||
# Miscellaneous | ||
google_analytics: | ||
favicon: /favicon.png | ||
twitter: | ||
|
||
# Header links | ||
# Each name must correspond to the icon name of Fork Awesome | ||
# https://forkaweso.me/Fork-Awesome/icons/ | ||
#links: | ||
# github: https://github.com/your_github_account | ||
# twitter: https://twitter.com/your_twitter_account | ||
# telegram: https://t.me/your_telegram_account | ||
``` | ||
|
||
- **menu** - Navigation menu | ||
- **rss** - RSS link | ||
- **banner** - Path of title banner image of page top | ||
- **excerpt_link** - "Read More" link at the bottom of excerpted articles. `false` to hide the link. | ||
- **fancybox** - Enable [Fancybox] | ||
- **recent_posts_limits** - How many posts display in Home page. | ||
- **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** - Twitter ID | ||
- **links** - Header links with icon, specified links will appear at the top right corner of the page | ||
|
||
## 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. | ||
|
||
### Header links | ||
|
||
You can add links to the header area with icons. | ||
|
||
``` | ||
social: | ||
github: https://github.com/your_github_account | ||
twitter: https://twitter.com/your_twitter_account | ||
telegram: https://t.me/your_telegram_account | ||
``` | ||
|
||
[Hexo]: https://hexo.io/ | ||
[Fancybox]: https://github.com/fancyapps/fancyBox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,66 @@ | ||
# Header | ||
menu: | ||
Home: / | ||
Archives: /archives | ||
rss: /atom.xml | ||
|
||
# Content | ||
excerpt_link: Read More | ||
fancybox: true | ||
|
||
# Sidebar | ||
sidebar: right | ||
widgets: | ||
- category | ||
- tag | ||
- tagcloud | ||
- archive | ||
- recent_posts | ||
|
||
# display widgets at the bottom of index pages (pagination == 2) | ||
index_widgets: | ||
# - category | ||
# - tagcloud | ||
# - archive | ||
|
||
# widget behavior | ||
archive_type: 'monthly' | ||
show_count: false | ||
|
||
# Miscellaneous | ||
google_analytics: | ||
gauges_analytics: | ||
favicon: /favicon.png | ||
twitter: | ||
google_plus: | ||
fb_admins: | ||
fb_app_id: | ||
# Header | ||
menu: | ||
Home: / | ||
Archives: /archives | ||
rss: /atom.xml | ||
banner: "images/banner.jpg" | ||
|
||
# Content | ||
excerpt_link: Read More | ||
fancybox: true | ||
|
||
# # Footer | ||
# copyright: |- | ||
# <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a></br> | ||
# All website licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0</a></br> | ||
|
||
# Footer | ||
copyright: | ||
# Need help choosing? Please see... | ||
# https://creativecommons.org/choose/ | ||
# https://choosealicense.com/ | ||
# You can use html like below... | ||
# copyright: |- | ||
# <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a></br> | ||
# All website licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC BY 4.0</a></br> | ||
|
||
# Sidebar | ||
sidebar: right | ||
widgets: | ||
- category | ||
- tag | ||
- tagcloud | ||
- archive | ||
- recent_posts | ||
|
||
# display widgets at the bottom of index pages (pagination == 2) | ||
index_widgets: | ||
# - category | ||
# - tagcloud | ||
# - archive | ||
|
||
# Widget behavior | ||
archive_type: 'monthly' | ||
show_count: false | ||
recent_posts_limits: 5 | ||
|
||
# Miscellaneous | ||
google_analytics: | ||
gauges_analytics: | ||
favicon: /favicon.png | ||
twitter: | ||
fb_admins: | ||
fb_app_id: | ||
|
||
# valine comment system. https://valine.js.org | ||
valine: | ||
enable: false # if you want use valine,please set this value is true | ||
appId: # leancloud application app id | ||
appKey: # leancloud application app key | ||
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki | ||
verify: false # valine verify code (true/false) | ||
pageSize: 10 # comment list page size | ||
avatar: mm # gravatar style https://valine.js.org/#/avatar | ||
lang: zh-cn # i18n: zh-cn/en | ||
placeholder: Just go go # valine comment input placeholder(like: Please leave your footprints ) | ||
guest_info: nick,mail,link #valine comment header info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
de.yml |
Oops, something went wrong.