TwiLog

让你的博客变成Twitter/微博。

如果你还绑定了微信的账户,那简直就是状态帝专属的模板,当然,要在FarBox的微信端设置中,勾选每条消息自成一篇。当你通过微信发布日志的时候,网站的页面会自动更新。

一花一草,一文字,皆可成为一世界。


一般情况下,我们不会在模板描述中,贴上模板源码,但这个特殊,因为,它只有30行代码(不包括样式)……

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
html
    head
        title= site.title
        +mobile_meta()
        +load('pure#0.5.0')
        +load('/service/static_3rd/staticfile/ajax/libs/pure/0.5.0/grids-responsive-min.css')
        +load('/template/style.scss')
    body
        #header
            h1= site.title
        .pure-g:.posts_container.pure-u-1.pure-u-sm-2-3
            .posts#fb_posts
                for post in posts
                    .post.pure-g
                        .info.pure-u-5-12.pure-u-sm-1-6:.pure-g
                            .avatar.pure-u-7-24.pure-u-sm-1
                                img(src=get_avatar(post.account_id))
                            .date.pure-u-17-24.pure-u-sm-1
                                span= post.date.format('%m.%d %H:%M')
                        .content.pure-u-1.pure-u-sm-5-6= post.content
            #on_loading loading...
        +load('jquery basic_fb')
        +listen_to_room('notes', 'callback_refresh_page', False)
        script
            var load_more = function(){auto_load_pages('fb_posts', 'on_loading')};
            $(document).ready(function(){
                callback_refresh_page = note_callback_refresh_page_func('post', 'fb_posts');
                $(window).scroll(load_more);
                load_more();
            })

Resource Code

Click and Download

Undefied License for FarBox

Copyright © FarBox

This theme/template is desiged for FarBox. You can use it directly or modified it on FarBox, but if you want to copy it to other platforms, please ask the orignal designer first.