Coder Social home page Coder Social logo

hexo-helper-post-top's Introduction

你好,我是立音喵。

喜欢尝试各种新鲜技术。有时候有很多脑洞,但很多时候做着一半就被自己扔进垃圾桶了。想做的东西又会感叹时间不够也做不完。

空余时间喜欢做做视频,或者折腾折腾网络。

有空可以来看看我的博客~ 虽然近几个月没怎么写博客.... 咕...

如果你是因为 Chordata 前来,欢迎联系我~

hexo-helper-post-top's People

Contributors

cubesky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pidupuis zexyj

hexo-helper-post-top's Issues

安装插件以后,必须要有一篇文章`top: true`

如题,安装了插件以后,如果没有文章是top: true的,在hexo g时就会报错。

$ hexo g && hexo s
INFO  Start processing
INFO  Files loaded in 38 s
INFO  Deleted: categories/博客/index.html
INFO  Deleted: tags/HEXO/index.html
INFO  Deleted: tags/NPM/index.html
INFO  Deleted: tags/MARKDOWN/index.html
ERROR /mnt/c/Users/lyh/OneDrive/lyh543.github.io/themes/material/layout/index.ejs:13
    11|     <% if(typeof hasposttop === 'function') { %>
    12|         <% if(hasposttop(site.posts)) { %>
 >> 13|             <% getposttop(site.posts).each(function(toppost){ %>
    14|                 <% if(theme.scheme === 'Paradox'){ %>
    15|                     <!-- Paradox Thumbnail -->
    16|                     <%- partial('_partial/Paradox-post_entry', { post: toppost, index: true, pin: true }) %>

Cannot read property 'each' of null
TypeError: /mnt/c/Users/lyh/OneDrive/lyh543.github.io/themes/material/layout/index.ejs:13
    11|     <% if(typeof hasposttop === 'function') { %>
    12|         <% if(hasposttop(site.posts)) { %>
 >> 13|             <% getposttop(site.posts).each(function(toppost){ %>
    14|                 <% if(theme.scheme === 'Paradox'){ %>
    15|                     <!-- Paradox Thumbnail -->
    16|                     <%- partial('_partial/Paradox-post_entry', { post: toppost, index: true, pin: true }) %>

Cannot read property 'each' of null

目前临时解决办法是在不需要该插件的时候就删除该插件。

(当然这个小bug也可以不用修复)

Top Post not global.

Set top: true will pin posts on the top of the list which it appear. It should top posts global

bug反馈与新想法的提出

I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

  • bug report | 反馈一个 bug
  • feature request | 申请添加新的特性或功能
  • support request | 请求技术支持

开发者,您好!我在使用Material的过程中使用了该插件~

  • 出现了一个bug,即当在生成模板post.md中的front-matter部分设置top: 无论后面填入true或者false都会出现[TOP]置顶效果,所以目前方法是,仅对需要的文章添加top: true字段。

  • 希望增加新的功能——希望在不同的catagory都有特殊的置顶功能。

十分感谢!

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.