Coder Social home page Coder Social logo

liquidluck-theme-moment's Introduction

Moment Theme for Felix Felicis

This is the latest version of the default theme for Felix Felicis.

Installation

Requires Felix Felicis 3.4+

Install with liquidluck

$ liquidluck install lepture/moment
$ liquidlcuk install lepture/moment -g

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, change your theme to moment.

Customize

You can customize your theme with theme.vars.

  • Change Navigation (example)
theme = {
    'vars': [
        'navigation': [
            {'name': 'Home', 'link': '/'},
            {'name': 'Life', 'link': '/life/'},
        ]
    ]
}
  • Google Analytics
theme = {
    'vars': {
        'analytics': 'UA-xxxx',
    }
}
  • Disqus Comment Support
theme = {
    'vars': {
        'disqus': 'your-disqus-shortname',
    }
}
  • Tagcloud support, active tagcloud:

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.

Allow comment

If you post is not public, this post will not be allowed to comment. If you want to allow people to comment on your secret post, set

theme = {
    'vars': {
        'allow_comment_on_secret_post': True
    }
}

Write a Review

This theme supports review microdata.

Write your post:

# title

- date: 2012-12-12
- review: movie or book title
- rating: 4

------------

content

Rating is optional, the max rating is 5.

liquidluck-theme-moment's People

Contributors

bindiry avatar francistm avatar lepture avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

liquidluck-theme-moment's Issues

导航菜单栏默认不显示链接名的问题

默认安装完liquidluck后,导航栏链接默认是空白的,没有文字(鼠标移上去才能知道那里有链接)

theme.py 14行 用了title

navigation = [
    {'title': 'Home', 'link': '/'},
    {'title': 'About', 'link': '/about.html'},
]

layout.html 38行 用了item.name

<nav id="nav" role="navigation">
    {% for item in theme.navigation %}
    <a href="{{item.link}}">{{item.name}}</a>
    {%- endfor %}
</nav>

从google 加载字体速度缓慢

如题,我不太懂html/css什么的,发现在网速慢的情况下访问使用本主题的blog 会导致无法加载字体或缓慢
然后未加载完全时页面上有文字的项都是一条一条的

不知道这个算不算问题,反馈一下

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.