V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Showfom
V2EX  ›  Ghost

Ghost 主题 Affinity 发布

  •  
  •   Showfom · 2017-05-09 22:19:29 +08:00 · 8109 次点击
    这是一个创建于 2515 天前的主题,其中的信息可能已经有所发展或是发生改变。

    介绍和下载

    https://sb.sb/ghost-theme-affinity/

    Github 项目

    https://github.com/Showfom/Affinity

    Getting Started

    Affinity is a clean, minimal, modern theme that focus on content for Ghost.

    Affinity it is 100% responsive, that means it fits with all different kind of devices in different sizes.

    Affinity is compiled with ToC (table of contents) and pagination without any Ghost apps.

    Install Manually

    Download the compiled and minified ZIP file here or here.

    Unpack and upload the full folder affinity to /your/path/to/ghost/content/themes

    Or

    Simple upload the affinity.zip on http(s)://example.com/ghost/settings/general/

    Active it

    Source & Credit

    JavaScript / Jquery

    CSS Framework

    Author

    Browser support

    • Chrome (last 4)
    • Microsoft Edge (last 4)
    • Firefox (last 4)
    • Safari (last 4)
    • Opera (last 4)
    • Internet Explorer 10+

    Screenshots

    Desktop

    iPad

    Mobile

    Live Demo

    Live Demo

    烧饼博客

    季寻日志

    Getting Support

    Feel free to post a new Github issue or leave comments on https://sb.sb/ghost-theme-affinity/

    Tips

    Blog logo

    Go to http(s)://example.com/ghost/settings/general/ and upload your logo

    Favicon

    Replace your favicon.ico with /your/path/to/ghost/content/themes/affinity/favicon.ico

    Comments

    We recommend use Isso (self-hosted) or Disqus (third-party) or similar services, it's your own choice, Affinity is only compiled with Isso

    The simplest way is insert your JS code to /your/path/to/ghost/content/themes/affinity/post.hbs

    under

    <div class="content-post-comments">
        <div class="btn btn-primary btn-block">Post your comments here</a></div>
    </div>
    

    ToC (table of contents) / Pagination

    We use jQuery, you don't need to change anything else.

    License

    We publish Affinity under MIT License

    中文说明

    Affinity 是一款免费小清新的 Ghost 响应式博客主题,由烧饼博客制作

    Affinity 采用 jQuery 实现了章节目录和首页分页功能,不需要任何的 Ghost 插件

    安装教程

    这里下载最新打包 .zip 版本或在这里获取所有的发布版本

    解压 zip 文件,然后上传 affinity 目录到 Ghost 的 themes 文件夹,如 /your/path/to/ghost/content/themes

    或者直接把 affinity.zip 上传到 Ghost 后台,如 http(s)://example.com/ghost/settings/general/

    然后激活即可

    JS 框架

    JavaScript / Jquery

    CSS 框架

    作者

    浏览器支持

    • Chrome (last 4)
    • Microsoft Edge (last 4)
    • Firefox (last 4)
    • Safari (last 4)
    • Opera (last 4)
    • Internet Explorer 10+

    截图预览

    桌面浏览器

    iPad

    手机

    在线演示

    Live Demo

    烧饼博客

    季寻日志

    获取支持

    如有疑问,可以直接提交 Github issue 或者在烧饼博客留言

    小技巧

    左上方 Logo

    进入 Ghost 后台 http(s)://example.com/ghost/settings/general/ 上传 Logo 即可

    Favicon

    替换 favicon.ico/your/path/to/ghost/content/themes/affinity/favicon.ico

    评论

    推荐使用 Isso (自己搭建) 或 Disqus (第三方) 等相关服务, Affinity 目前只适配了 Isso 的风格

    直接引用你的评论 JS 代码到 /your/path/to/ghost/content/themes/affinity/post.hbs

    <div class="content-post-comments">
        <div class="btn btn-primary btn-block">Post your comments here</a></div>
    </div>
    

    这段 HTML 下方即可

    章节目录 (table of contents) / 首页分页

    我们使用 jQuery 实现,不需要装任何第三方 Ghost 插件

    版权声明

    Affinity 采用 MIT License 发布

    24 条回复    2017-05-18 02:31:19 +08:00
    DesignerSkyline
        1
    DesignerSkyline  
       2017-05-09 22:21:30 +08:00 via Android
    前来支持一下兽兽,这个 Theme 非常适合写 Wiki~
    Showfom
        2
    Showfom  
    OP
       2017-05-09 22:34:38 +08:00
    @DesignerSkyline 额 需要图片的 你写 wiki 每个页面都上传图片嘛 - - 等以后考虑做个无图版
    RAS
        3
    RAS  
       2017-05-09 22:36:49 +08:00 via iPhone
    支持大佬,很好看
    coolair
        4
    coolair  
       2017-05-09 22:51:12 +08:00 via Android
    很漂亮,很喜欢
    Loafer
        5
    Loafer  
       2017-05-09 22:53:16 +08:00
    漂亮!
    DreamCMS
        6
    DreamCMS  
       2017-05-09 23:00:30 +08:00
    细节上还需要打磨。

    标题两行一行,段落没行一行两行三行如何处理。

    Kilerd
        7
    Kilerd  
       2017-05-09 23:05:07 +08:00
    神 TM tablet == iPad (认真脸
    Kilerd
        8
    Kilerd  
       2017-05-09 23:05:58 +08:00
    @DreamCMS height fixed 就好了啊。
    Showfom
        9
    Showfom  
    OP
       2017-05-09 23:10:17 +08:00
    @DreamCMS 这个已知 bug 提交 issue 了,待修复
    @Kilerd 因为 Chrome 开发者模式只有 iPad 呀 哈哈哈
    unique
        10
    unique  
       2017-05-09 23:39:35 +08:00
    demo 挂了
    Yeasiz
        11
    Yeasiz  
       2017-05-09 23:45:50 +08:00
    支持大佬
    Showfom
        12
    Showfom  
    OP
       2017-05-09 23:52:27 +08:00
    @unique 忘记做解析了- - 已经加上 等生效
    syy
        13
    syy  
       2017-05-09 23:52:37 +08:00
    好漂亮的主题!
    xratzh
        14
    xratzh  
       2017-05-10 00:23:35 +08:00 via iPhone
    明天上一波,哈哈,谢谢大佬
    Loafer
        15
    Loafer  
       2017-05-10 08:01:38 +08:00
    裝上發現文章圖片沒有強制限定寬度,mba 上用 chrome 打开,很多圖片都超出了,提個小 bug :)

    http://i4.buimg.com/588926/41c48209770b3345.png
    sunjourney
        16
    sunjourney  
       2017-05-10 08:30:16 +08:00 via iPhone
    Ghost 对许多博客的刚需不提供支持,比如 category,可定制性也不够,感觉用一阵子想扩展特别无奈
    Showfom
        17
    Showfom  
    OP
       2017-05-10 09:53:16 +08:00 via iPhone
    @sunjourney 下个版本更新
    Showfom
        18
    Showfom  
    OP
       2017-05-10 13:04:55 +08:00
    @sunjourney 有 Tag 就行了,要分类干嘛
    sunjourney
        19
    sunjourney  
       2017-05-10 13:32:36 +08:00
    @Showfom #18 分类是一对多,tag 应该是多对多的概念,可以设成关键字,总之是有区别的
    Showfom
        20
    Showfom  
    OP
       2017-05-10 15:13:59 +08:00
    @sunjourney 大家都嫌弃太麻烦,而且好多分类和标签都重复,所以现在已经不流行分类了,直接一个 Tag 了事,你那么喜欢分类的话可以自己做插件呀
    sunjourney
        21
    sunjourney  
       2017-05-10 15:40:57 +08:00
    @Showfom #20 ghost 加分类可麻烦了,不是简单的插件能解决的,跟它的设计就是不兼容。
    Showfom
        22
    Showfom  
    OP
       2017-05-10 17:12:18 +08:00
    @sunjourney 是啊 他设计就没分类这东西的 所以你想用的话就放弃呗
    trai25
        23
    trai25  
       2017-05-18 02:17:19 +08:00
    不知道为什么,我的 Ghost 只有默认主题 casper 能用,无论用其它哪个主题都无法加载样式,完全裸奔的样子……😂 哪位知道该怎么破?
    Showfom
        24
    Showfom  
    OP
       2017-05-18 02:31:19 +08:00
    @trai25 重启试试,以及检查你 ghost 的目录的权限
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1022 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:37 · PVG 03:37 · LAX 12:37 · JFK 15:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.