caressofsteel / hugo-story

A (modular, highly tweakable) responsive one-page Hugo template.
Other
213 stars 73 forks source link

How to add pages? #23

Closed AntoineSoetewey closed 2 years ago

AntoineSoetewey commented 2 years ago

Hello,

Thanks for this great theme!

I manage to build a first version with your theme (see the website and the repo), but I struggle to add pages for more content.

I tried the following:

but the pages do not look good, see for instance https://elsaetantoine.com/programme/

Could you please tell me what is the best way to edit the layout so that these pages look better? The home page is fine.

Thanks in advance!

caressofsteel commented 2 years ago

I suggest creating and referencing partials with the proper element and CSS syntax that your page is missing.

AntoineSoetewey commented 2 years ago

Thanks for your reply.

Sorry I’m not a programmer so I don’t really understand what I have to do with the banner.html file.

I copied the code of the file you mentioned and pasted it in my simple.html file but that doesn’t really solve my problem. Do I have to add it somewhere else ?

Am I the only one who uses your theme and needs to add pages ? If not, could you perhaps redirect me their repositories so I can try to replicate what they have done?

Thanks again for your help.

caressofsteel commented 2 years ago

I suggest first going through some good Hugo tutorials to get the basics down and learn how the system works. You should then visit the Hugo repository. There are hundreds of examples of how to implement partials and other elements.