Micolog相关帮助文章

关于micolog下插件tagCloud(3D标签云)修改字体、背景颜色等属性的设置方法:

http://www.co100./?p=64006

Highslide JS Thumbnail Viewer in Micolog:

http://colin-young.appspot.com/?p=148001

注意:文中有错

highslide目录应该放在static目录下

<script type="text/javascript" src="/static/highslide/highslide.js"></script>   
<link rel="stylesheet" type="text/css" href="/static/highslide/highslide.css">   
<script type="text/javascript">   
// override Highslide settings here  
// instead of editing the highslide.js file  
hs.graphicsDir = '/highslide/graphics/';   
</script>  

改为

<script type="text/javascript" src="/static/highslide/highslide.js"></script>   
<link rel="stylesheet" type="text/css" href="/static/highslide/highslide.css">   
<script type="text/javascript">   
// override Highslide settings here  
// instead of editing the highslide.js file  
hs.graphicsDir = '/static/highslide/graphics/';   
</script>   
expend(this,{outlineType: 'rounded-white', dimmingOpacity: 0.75, align: 'center'});  

Error 409: --- begin server output ---(GAE提交时一个问题)

今天搞GAE时遇到这个问题,其实解决办法很简单,只要运行appcfg.py rollback 加上你的目录就可以了

micolog上可以参考的变量列表,熟悉这些以后可以尝试拿WordPress的模版来改改了

base.html

{{ blog.title}}: 博客标题
{{ blog.feedurl }}: RSS地址
{{ blog.theme_name }} 当前主题名称
{{ blog.baseurl}} 根域名
{{ self.m_list_pages}} 自定义页面列表
{{ self.logouturl}} 用户退出
{{ blog.author }} blog作者
{{ self.login_user.email }} 当前用户email
{{ self.login_user.nickname }} 当前用户名
{% block title %} {{ blog.title}}{% endblock %} 标题块
{% block head_block %}{% endblock %} 头部文件块
{%if ishome%}current_page_item{%else%}page_item{%endif%} 判断是否当前页为首页
{% block topmenu %}{% endblock %} 顶部菜单(生成)
{%if self.is_admin%}{%endif%} 判断是否是admin
{%if self.is_login%}{%endif%} 判断是否是登录用户
{%block content %}{%endblock%} 通用页面中间内容部分

index.html

{% extends "base.html" %} 继承自base.html
{% block content%}{% endblock %} 定义content块替换base.html中的此块

循环中

{{entry.key}} 文章ID
{{entry.title}} 文章名字
{{entry.author}} 文章作者
{{ entry.link }} 文章URL
{{entry.edit_url}} 文章编辑地址
{{entry.date|datetz:"F jS, Y"}} 文章时间(具体参数可以参照php语言的时间格式化)
{{entry.content_excerpt}} 文章简介
{{entry.commentcount}} 评论数量
{% if entry.strtags %}Tags: {%for tag in entry.tags%}{{tag}} {%endfor%}{%endif%} 文章tags循环(附加判断是否有tags)
{% if show_next %}Older Posts ?{%endif%} 下一页
{% if show_prev %}? Newer Posts{%endif%} 上一页

siderbar.html

{% for comment in recent_comments %}
{{comment.author}}:{{comment.shortcontent}}... {%endfor%} 最近评论(循环列表)
{%for next in entry.next%}
{{next.title}}?
{%endfor%} 下一篇文章
{%for prev in entry.prev%}
{{prev.title}}
{%endfor%} 上一篇文章
{{ entry.content }} 文章正文

comments.html

{{entry.comments.count}} 文章评论数量
{%cycle alt1,alt %} 文章评论间隔(奇数编号的评论为alt1,偶数为alt)

category.html

{{category.name}} 分类名字
/usr/themes/NexTSun/static/images/yovisun-weixin-share.jpg
赞 (2) 分享
声明:原创文章,欢迎转载,请以 超链接 的形式注明 作者标题原始出处查看许可协议
标题Micolog相关帮助文章 | 作者:YoviSun
地址https://www.yovisun.com/archive/micolog-helps.html
相关文章:
添加新评论
选择表情
手机扫描二维码访问