Giter Club home page Giter Club logo

gridea-theme-breek's Introduction

gridea-theme-breek

https://i.immmmm.com/post/gridea-theme-breek/

update

  1. 更新项目结构为Gridea主题标准结构

  2. GiTalk评论配置下添加阅读量统计 gitalk.ejs:

    <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
    <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
    <script type="text/javascript" src="https://cdn.staticfile.org/valine/1.3.10/Valine.Pure.min.js"></script>
    
    <div id="gitalk-container"></div>
    
    <script>
    
    var valine = new Valine();
    valine.init({
            appId: '<%= site.customConfig.valineID %>' ,
            appKey: '<%= site.customConfig.valineKey %>',
            visitor: <%= site.customConfig.visitors %> // 阅读量统计
    })
    
    var gitalk = new Gitalk({
        clientID: '<%= commentSetting.gitalkSetting.clientId %>',
        clientSecret: '<%= commentSetting.gitalkSetting.clientSecret %>',
        repo: '<%= commentSetting.gitalkSetting.repository %>',
        owner: '<%= commentSetting.gitalkSetting.owner %>',
        admin: ['<%= commentSetting.gitalkSetting.owner %>'],
        id: (location.pathname).substring(0, 49),      // Ensure uniqueness and length less than 50
        distractionFreeMode: false  // Facebook-like distraction free mode
    })
    
    gitalk.render('gitalk-container')
    
    </script>
  3. 文章总数统计修正,减去关于的统计 footer.ejs:

    <p class="published border-effect">
        ©2019 共 <%= site.posts.length - 1 %> 篇文章
        <br/>
        Theme <a href="https://gridea.dev/" target="_blank"><%= themeConfig.themeName %></a> Powered by <a href="https://gridea.dev/" target="_blank">「Gridea」</a>
    </p>

    post-list-archives.ejs:

    <h2 class="year"><%= site.posts.length - 1 %> 篇文章</h2>
  4. 修改头部logo \assets\media\images\logoo.png

  5. 豆瓣读书详情链接修正 \assets\media\js\Bmdb.min.js

    c={API_BASE_URL:"https://bm.weajs.com/api/",DB_BASE_URL:"https://book.douban.com/subject/",
  6. BMDB插件 secret申请

    同步豆瓣看过的书籍,电影

    https://bm.weajs.com/

  7. 修改时间显示样式 post.dateFormat

gridea-theme-breek's People

Contributors

htdwade avatar lmm214 avatar

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.