ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
765 stars 202 forks source link

Showing pages #35

Closed joshanderson99 closed 6 years ago

joshanderson99 commented 6 years ago

I've got pages as well as posts (in docs treated as separate "layouts"), and want to show the these pages from the theme's menu bar, similar to the Archives page. Though this is not strictly a theme issue, more how to in its extension, do you know how this might be done, or know of a relevant article that may help? In the theme there's a page.ejs, but it's content refers to a post.

joshanderson99 commented 6 years ago

It appears page.ejs, referred to above, might be an entry point, pages received being passed to article.ejs. But then it seems that entry point is only getting post pages, plain pages being ignored. Maybe setting a layout in page front matter could get plain pages working within the theme.

joshanderson99 commented 6 years ago

Solved. Hexo doesn't automatically process pages I discovered, unlike posts. The page.ejs fragment is invoked when a page is explicitly invoked in the browser.