mediumish-theme-jekyll icon indicating copy to clipboard operation
mediumish-theme-jekyll copied to clipboard

Help needed: customize header for list vs post

Open arthabus opened this issue 4 years ago • 0 comments

Hi, thanks for the great project!

I'm stuck with a customization as I'm quite new to the internals of vuepress so hopefully I can get a bit of help.

Is there a way to distinguish if current page is a post or a list layout from inside of a GlobalLayout.vue?

I was trying to examine $pagination == null but it crashes internally saying TypeError: Cannot read property 'pages' of undefined

Any advice on this?

arthabus avatar Jan 07 '21 19:01 arthabus