Posts are not displayed in cayman theme


#1

I added the _post folder into the root folder.
But when I run it on local server, the home page is still index.md.
Do I need to write the index.md myself just to let it show all the post I have in the root folder?


#2

That depends upon the theme you are using.

If you are starting from scratch then you have to create index.md file.


#3

i see. thanks! (20 characters)

I do have index.md in there, but it is blank. I think I need to create my own layouts then use {{…}} to put those layout into index.md.

Eventually what I wanna achieve is that I have a list of all the articles I have written and different categories for users to navigate.


#4

Which theme are you using?


#5

cayman


#6

According the theme you have mentioned.

The index.md file should contain.

---
layout: default
---

Text can be **bold**, _italic_, or ~~strikethrough~~.

[Link to another page](./another-page.html).

There should be whitespace between paragraphs.

There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.

# Header 1

This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

## Header 2

> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.

### Header 3

```js
// Javascript code with syntax highlighting.
var fun = function lang(l) {
  dateformat.i18n = require('./lang/' + l)
  return true;
}
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
  s.add_dependency(gem, "= #{version}")
end

Header 4

  • This is an unordered list following a header.
  • This is an unordered list following a header.
  • This is an unordered list following a header.
Header 5
  1. This is an ordered list following a header.
  2. This is an ordered list following a header.
  3. This is an ordered list following a header.
Header 6
head1 head two three
ok good swedish fish nice
out of stock good and plenty nice
ok good oreos hmm
ok good zoute drop yumm

There’s a horizontal rule below this.


Here is an unordered list:

  • Item foo
  • Item bar
  • Item baz
  • Item zip

And an ordered list:

  1. Item one
  2. Item two
  3. Item three
  4. Item four

And a nested list:

  • level 1 item
    • level 2 item
    • level 2 item
      • level 3 item
      • level 3 item
  • level 1 item
    • level 2 item
    • level 2 item
    • level 2 item
  • level 1 item
    • level 2 item
    • level 2 item
  • level 1 item

Small image

Octocat

Large image

Definition lists can be used with HTML syntax.

Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
The final element.

#7

yes. sorry I forgot to mention that I deleted all that, I just want to create a default page that looks like this:


#8

Use the minima theme if you want a similar page.

Set theme: minima in your _config.yml

minima comes up with GitHub Pages gem, if that’s what you’re using.
If not add gem: "minima" to your Gemfile.