Giter VIP home page Giter VIP logo

landscape-plus's Introduction

Landscape plus

Join the chat at https://gitter.im/xiangming/landscape-plus

针对**大陆地区对hexo官方主题landscape进行优化。

所有新特性

  • 根据国情,去掉Google的库,改用cloudflare的cdn,打开页面不再卡住了。=> 参与国内cdn的讨论
  • 增加了 语言包 。(支持英文、中文简体和中文繁体。)
  • 代码高亮,采用Monokai,熟悉SublimeText的朋友一定不陌生。
  • 增加了 友情链接 widget。(已默认开启,修改方法看下面的常见问题。)
  • 不使用header里面的大图,节省带宽,页面加载更快。(大图文件还在,恢复方法看下面的常见问题。)
  • 修改了原主题的 配色 和部分markdown样式(blockquote/code...)
  • 集成 多说评论模块 。(开启方法看下面的常见问题。)
  • 集成 百度分享模块 。(已默认开启,详情看下面的常见问题。)
  • 增加对 IE8 的支持。
  • 集成 mathjax,即latex数学公式的支持。(感谢 @Svtter 的pull request

主题还在调整中,欢迎open issue来提建议,参与讨论。

文档目录

你可以点击这里,查看演示。

$ git clone https://github.com/xiangming/landscape-plus.git themes/landscape-plus

Landscape plus 需要 Hexo 2.7 及以上版本.

修改主题的设置文件_config.yml,把theme的值设置为landscape-plus

cd themes/landscape-plus
git pull
# Header
menu:
  Home: /
  Archives: /archives
rss: /atom.xml

# Content
excerpt_link: Read More
fancybox: false

# Sidebar
sidebar: right
widgets:
- category
- tag
- tagcloud
- archive
- recent_posts
- links

# Links
links:
  主题作者: http://xiguabaobao.com
  热前端: http://reqianduan.com

# Miscellaneous
google_analytics:
favicon: /favicon.png
twitter:
google_plus:
fb_admins: 
fb_app_id:

# Duoshuo
duoshuo_shortname: 

# Baidu share
baidushare: true
  • links - 友情链接
  • duoshuo_shortname - 多说评论id
  • baidushare - 是否开启百度分享

:Demo看起来很赞,我要怎么使用landscape+主题?

按照上方的步骤进行安装启用更新

:怎么提建议?

主题还在调整中,欢迎open issue来提建议,参与讨论。

:怎么添加友情链接?

修改themes/landscape-plus/_config.yml中的links

:我喜欢原主题顶部的大图,如何恢复?

themes/landscape-plus/source/css/_partial/header.styl,取消第33行的注释。

:我是**人,但是我喜欢英语?

配置你的hexo源文件的_config.yml,去掉language: zh-CN

:Landscape plus主题的字体配色太闪眼睛了,我怎么换回原主题的样式?

请参考这条issue进行配置。

:如何开启多说评论模块?

修改themes/landscape-plus\_config.yml,填写你的多说id即可。(主题会自动启用多说评论,忽略hexo默认的disqus。)

:如何开启百度分享模块?

修改themes/landscape-plus\_config.yml,将baidushare设置为true即可。(已默认开启)

:如何使用RSS分享功能?

请参考这条issue进行配置。

v1.0.4

  • 增加返回顶部功能
  • 修改渲染方式,现在默认page布局下仅渲染 .md 文件格式,其他格式一律只做复制。(方便添加静态页面,原本需要在每个文件开头添加 layout: false
  • 添加mathjax的模块开关,不需要的可以自己关闭。

特别感谢来自 @myqianlan 的pull request 和 @bearpaw 的pull request

v1.0.3

  • 增加对 IE8 的支持
  • 集成 mathjax ,即latex数学公式的支持。(感谢 @Svtter 的pull request

v1.0.2

  • 修改: 优化Generate速度,refs #13

v1.0.1

  • 新增: 百度分享模块

v1.0.0

  • 修改:根据国情,去掉Google的库,改用cloudflare的cdn
  • 新增:语言包
  • 修改:代码高亮配色修改为Monokai
  • 新增:友情链接
  • 修改:隐藏顶部大图
  • 修改:主题配色和部分markdown样式
  • 新增:多说评论模块

如果你的网站正在使用landscape-plus主题,欢迎将网址添加到wiki的网站列表,我会不定期进行整理。

landscape-plus's People

Contributors

xiangming avatar myqianlan avatar hadb avatar lhcpig avatar gitter-badger avatar bearpaw avatar svtter avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.