Giter VIP home page Giter VIP logo

hexo-post-urger's Introduction

一个督促你写博客的 Hexo 脚本

灵感来自于 not-paid 以及懒癌末期,为了自己的网站不变成透明,赶紧写博客吧,纯属娱乐 ^ . ^

效果

  • 构建生成静态文件的时候设置一个以传入的时间为 deadline
  • 长时间不写博客,博客就会逐渐透明
  • 每次构建都会刷新 deadline

使用方法:

  1. 把脚本放置在 Hexo 博客根目录的 scripts 文件夹。
  2. themes/你的主题/layout/layout.ejs 如下的位置加上字段:
<body>
  <!---  layout 的内容  --->
  <!---  60代表天数  --->
  <%- post_urger(60) %>
</body>
  1. 然后重新生成博客静态文件并部署就可以啦~

hexo-post-urger's People

Contributors

felixyoungzz avatar

Watchers

 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.