Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to move the index.html from root content to other file in page folder? #47

Open
XieSandi opened this issue Feb 6, 2022 · 0 comments

Comments

@XieSandi
Copy link

XieSandi commented Feb 6, 2022

Hey there, thanks for making such an amazing Jekyll theme/template.

So, I trying to make a custom home page/index page. but I want to migrate the current index page as blog page
The structure will be :
Home (my custom page)
├── About
├── Blog (the previous index.html content move into here)
└── Contact

I'm trying to copy this code from the default index into the blog page (change the title inside the code too)

---
layout: default
title: Home
---

<!-- Posts Index
================================================== -->
<div class="blog-grid-container">
    {% for post in paginator.posts %}
        {% include postbox.html %}
    {% endfor %}
</div>

<!-- Pagination
================================================== -->
<div class="bottompagination">
<span class="navigation" role="navigation">
    {% include pagination.html %}
</span>
</div>

But the blog page is blank, there is no rendered content.

Sorry for the silly question, but I'm new to Jekyll.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant