title: Icarus快速上手
date: 2016-01-04
thumbnail: /gallery/thumbnails/chinese-painting.jpg
tags:
- Getting Started
- Icarus用户指南
language: zh-CN
providers:
cdn: loli
fontcdn: loli
iconcdn: loli
---
作为静态网站生成器Hexo的一款主题,Icarus以简洁、现代和精美为设计理念。在灵活且强大的配置系统的助力下,用户可以自由实现单栏与
多栏的灵活页面布局。同时,Icarus提供了丰富的插件与挂件供用户选择,让网站的个性化配置变得触手可及。此外,得力于全新设计的API,
开发者可以更便捷地对Icarus进行深层定制。
Icarus的安装非常简单,您只需从GitHub的仓库中下载Icarus源码并解压到博客的主题目录下的`themes/icarus`目录中。
您也可以使用如下命令将此主题下载到博客中:
{% codeblock "Git Bash命令行" %}
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus -b --depth 1
{% endcodeblock %}
您可以省略`-b `来下载Icarus的最新开发版本。如果你想同时下载Git仓库的完整修改历史,请同时省略`--depth 1`。
另外,您也可以将Icarus作为Git子模块(submodule)安装到您的博客中:
{% codeblock "Git Bash命令行" %}
git submodule add https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
{% endcodeblock %}
接下来,请将博客根目录下的`_config.yml`中的主题设置改为`icarus`:
{% codeblock _config.yml lang:yaml %}
theme: icarus
{% endcodeblock %}
或使用`hexo`命令修改主题设置:
{% codeblock "命令行" %}
hexo config theme icarus
{% endcodeblock %}
最后,请使用如下命令来启动Hexo本地测试服务器。
{% codeblock "命令行" %}
hexo s
{% endcodeblock %}
您可以继续阅读[Icarus用户指南](/hexo-theme-icarus/tags/Icarus用户指南/)系列文章来了解Icarus的使用与配置。
同时,您可以从Icarus的[`site`分支](https://github.com/ppoffice/hexo-theme-icarus/tree/site)上获取本网站的源码供您参考。
王希孟 千里江山图卷