Giter Site home page Giter Site logo

Comments (7)

stkevintan avatar stkevintan commented on July 17, 2024

maybe,the format of your source/_data/widgets.yml is wrong. can you paste it's content here?

from hexo-theme-material-flow.

SincerelyUnique avatar SincerelyUnique commented on July 17, 2024
- about
- friendly-links
- categories
- tagcloud

from hexo-theme-material-flow.

SincerelyUnique avatar SincerelyUnique commented on July 17, 2024

Please have a look,thanks!

from hexo-theme-material-flow.

SincerelyUnique avatar SincerelyUnique commented on July 17, 2024

2017-02-20 08 34 37

from hexo-theme-material-flow.

kevinetc123 avatar kevinetc123 commented on July 17, 2024

add following code at the beginning of your side.ejs and paste the output in the webpage

<%- site.data.widgets %>

from hexo-theme-material-flow.

SincerelyUnique avatar SincerelyUnique commented on July 17, 2024

Thanks for your reply,I just solve this problem in this way:

  1. Add widgets in "themes/material-flow/_config.yml", like this
widgets:
- about         # See also: `about_content`
- categories
- tagcloud
  1. Then change "side.ejs" to :
<% theme.widgets.forEach(function(name){ %>
  <%- partial('_widget/'+name) %>
<% }) %>

then it works!

from hexo-theme-material-flow.

stkevintan avatar stkevintan commented on July 17, 2024

Ok!

from hexo-theme-material-flow.

Related Issues (20)

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.