Giter Site home page Giter Site logo

Posts don't show up about grav-theme-masonry HOT 3 CLOSED

Kadoffe avatar Kadoffe commented on May 12, 2024
Posts don't show up

from grav-theme-masonry.

Comments (3)

koca avatar koca commented on May 12, 2024

Well, i believe it should work with any kind of blog skeletons in getgrav repos.
For example:
https://github.com/getgrav/grav-skeleton-mediator-site

Pages Hierarchy

Under your/site/user/pages

├── 01.blog (Main folder for blog posts)
│   ├── default.md (blog settings)
|   |── header.jpg (blog cover image if you want to)
|   |
│   ├── post-with-cover (folder for a blog post)
│   │   ├── post.md 
│   │   └── unsplash.jpg
│   ├── tooling-grunt (folder for a blog post)
│   │   └── post.md
|
└── 02.about (Page Folder)
    └── page.md

Maybe you are missing default blog settings, in the your/site/user/pages/blog/default.md file check/add these lines:

---
#cover: header.jpg  this is optional...
sitemap:
    changefreq: weekly
    priority: 1.03
content:
    items: '@self.children'
    order:
        by: date
        dir: desc
    limit: 8
    pagination: true
feed:
    description: 'Sample Blog Description'
    limit: 3
pagination: true
---

I think that should do it let me know if it doesnt or something i'm missing ^^

from grav-theme-masonry.

Kadoffe avatar Kadoffe commented on May 12, 2024

thx was missin the "content: ..." part
maybe you should note the use/difference of 'cover:' and 'image:' somewhere in the readme

from grav-theme-masonry.

koca avatar koca commented on May 12, 2024

Okay cool. Yes you are right, will do.

from grav-theme-masonry.

Related Issues (18)

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.