archie icon indicating copy to clipboard operation
archie copied to clipboard

How to change the default page?

Open FFY00 opened this issue 5 years ago • 6 comments

Hi, I would like to change the index to the about page. Would this be possible? If so, how can I do it?

FFY00 avatar Jul 18 '20 19:07 FFY00

I second this I'm looking into how to do the same thing

bastienboutonnet avatar Mar 24 '21 13:03 bastienboutonnet

Hey, You can change that with a new _index.md file in the contents directory and add a {{.Content}} tag in the index.html file in the layouts directory.

Also remove these lines from the index.html file. These lines are for showing the list of blog posts. You can add another file with these contents and you could achieve the blog list https://github.com/athul/archie/blob/ca5424f0632b42edf30865ad6387ababf869c785/layouts/index.html#L14-L30

athul avatar Mar 24 '21 14:03 athul

Super! I got it now. Thanks a lot for the pointers

bastienboutonnet avatar Mar 30 '21 22:03 bastienboutonnet

Apologies for diging up this old discussion, but I have run into a problem when deploying to Netlify. Basically, everything works fine when I build locally. However, when I deploy, the first step (removing the lines that call the blog posts) does work. However, the material I added to _index.md doesn't take its place.

So the local build displays the new content, but the Netlify version just shows an empty space on the homepage.

Sorry if this is badly expressed. I'm learning things as I go along.

EDIT: this mysteriously (to me) just started working after I changed my github username.

uncouthregions avatar Sep 23 '22 09:09 uncouthregions

Hello @uncouthregions, @bastienboutonnet and @athul After taking a look at this thread I still don't manage to change the default page. I want to change the current index page in order to show the about page.

I have removed the lines from archie/layouts/index.html but I don't get how to transform the _index.md file.

PabDJ avatar Nov 03 '22 11:11 PabDJ

Hello @uncouthregions, @bastienboutonnet and @athul After taking a look at this thread I still don't manage to change the default page. I want to change the current index page in order to show the about page.

I have removed the lines from archie/layouts/index.html but I don't get how to transform the _index.md file.

Fixed :)

PabDJ avatar Nov 13 '22 13:11 PabDJ