# Moment Theme for Felix Felicis
This is the latest version of the default theme for Felix Felicis.
## Installation
### Install with liquidluck
```
$ liquidluck install -t moment
```
### Install by yourself
Git clone this repo, and place it in your blog:
```
your_blog/
settings.py
content/
_themes/
moment/
```
### Install with git submodule
You can use git submodule for convience:
```
$ git submodule add git://github.com/lepture/liquidluck-theme-moment.git _themes/moment
```
## Configuration
Edit your settings.py, change your theme to:
```python
theme = 'moment'
```
## Customize
You can customize your theme with ``theme_variables``.
+ Change Navigation (example)
```python
theme_variables = {
'navigation': [
('Home', '/'),
('Life', '/life/'),
('Work', '/work/'),
],
}
```
+ Google Analytics
```python
theme_variables = {
'analytics': 'UA-xxxx',
}
```
+ Disqus Comment Support
```python
theme_variables = {
'disqus': 'your-disqus-shortname',
}
```
+ Show author information, default is False
```python
theme_variables = {
'show_author': True,
}
```
+ Tagcloud support, active tagcloud:
```python
writers = {
'tagcloud': 'liquidluck.writers.core.TagCloudWriter',
# disable tag writer
# 'tag': None,
}
# change post tags link to tagcloud
theme_variables = {
'tagcloud': True, # default is False
}
```
## 404
You can create a file in your source directory (``content``) named ``404.md``.
```
# 404
- template: 404.html
----------------
You content here.
```
Configure your nginx, add:
```
error_page 404 /404.html;
```
You can google for more information.
PyPI 官网下载 | liquidluck-1.8.tar.gz
版权申诉
33 浏览量
2022-02-10
14:26:26
上传
评论
收藏 27KB GZ 举报
![avatar](https://profile-avatar.csdnimg.cn/277f6345dca0446498fbbc03843436aa_qq_38161040.jpg!1)
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- Hyper-V配置工具 ManageEngine-HyperVConfigTool
- 基于灰色神经网络的订单需求预测
- Hyper-V监控工具 ManageEngine-HyperVPerformanceMonitor
- VMware监控工具 ManageEngine-VMHealthMonitor
- ZooKeeper分布式环境搭建详细指南.docx
- zookeeper之节点基本操作(一).zip
- json-server模拟后端接口(教程).pdf
- tomcat安装及配置教程.zip
- zookeeper之分布式环境搭建.zip
- SharePoint监控工具 SharePointHealthMonitor
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)