Molunerfinn / hexo-theme-melody

:musical_keyboard:A simple & beautiful & fast theme for Hexo.
https://molunerfinn.com
Other
1.59k stars 213 forks source link

[feedback]how to hid exact article from index #220

Closed sino1641 closed 5 years ago

sino1641 commented 5 years ago

I want to create a new issue

Melody Information

**Melody Version:1.6.1

**Platform:Windows

**Browser:Chrome

Expected behavior

I want to hide exact article from index like About post.

Actual behavior

I'm a beginner of hexo and programming and I've tried searching all links above for solutions but nothing could help me. There is a para called ''notshow'' but it seems does not work on melody.

Steps to reproduce the behavior

Feature Request


Starred =w=

sheey11 commented 5 years ago

Create a folder in source, and put something you want to show in it (like index.md), then hexo g, BINGO! Now you can visit this page in yoursite.com/foldername.

sino1641 commented 5 years ago

Create a folder in source, and put something you want to show in it (like index.md), then hexo g, BINGO! Now you can visit this page in yoursite.com/foldername.

THX! I tried but it didn't work as well. Also, there is no toc catalog sidebar on that page. (⊙ˍ⊙)

sheey11 commented 5 years ago

According to hexo docs, you can try put something.md right into source folder and set layout to page, I never tried this before, hope this would be helpful.

sheey11 commented 5 years ago

I realized there is a feature which allows you to enable toc, see melody docs.

Molunerfinn commented 5 years ago
  1. create folder in source/: https://github.com/Molunerfinn/Molunerfinn.github.io/tree/hexo/source/about

  2. create index.md in folder: https://github.com/Molunerfinn/Molunerfinn.github.io/blob/hexo/source/about/index.md

  3. add type in front matter of index.md: image

  4. hexo clean && hexo g

  5. open yoursite.com/about/

for example: https://molunerfinn.com/about/