TolgaTatli/Moon

How to add a new type of article?

MoienBowen opened this issue · 0 comments

Hi there,

For the original site, I could only get the file in "_post" with the name "date-title.md", and separated into "Posts" and "Projects".

I now wanna add a new type like "tools" with the folder "_tools".

What I had done:

  • add "- title: Tools" & "url: /tools/" in the file "navigation.yml".
  • create "tool-list.html" in "_layouts" just copied "post-list.html" with replacing some "post" into "tool". (I change the condition "{% if post.project == false %}" in"post-list.html" and "{% if post.project == null %}" in"tool-list.html" )

What I could not do for the moment:

  • How could I add my *.md into folder "_tools" and show it in the "Tools" tab not in projects nor posts?
  • How could I take off the date in the file name? (means that even there is no date in the file name, it's also accepted)
  • How could the file load the js in the same folder? (means in /_tools/js or /_tools/tool_name/)