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

Feature Request: More Width for Custom Index on Homepage #29

Closed
saurabh-sm opened this issue Sep 2, 2023 · 5 comments · Fixed by #30
Closed

Feature Request: More Width for Custom Index on Homepage #29

saurabh-sm opened this issue Sep 2, 2023 · 5 comments · Fixed by #30
Labels
enhancement New feature or request

Comments

@saurabh-sm
Copy link
Contributor

saurabh-sm commented Sep 2, 2023

If we're using a custom _index.md in the content/ directory, the width of the text is too narrow.

In my opinion it makes sense for this text to span a little wider (10% - 15% more), because there are no navigation menus or either side.

@saurabh-sm saurabh-sm changed the title Feature Request: Wider Text on Homepage Feature Request: More Width for Custom Index Page Homepage Sep 2, 2023
@saurabh-sm saurabh-sm changed the title Feature Request: More Width for Custom Index Page Homepage Feature Request: More Width for Custom Index on Homepage Sep 2, 2023
@imfing
Copy link
Owner

imfing commented Sep 2, 2023

Thanks for the feedback, I was also considering adding a global flag for setting the width of the page.

@imfing imfing added the enhancement New feature or request label Sep 2, 2023
@saurabh-sm
Copy link
Contributor Author

saurabh-sm commented Sep 2, 2023

Thanks for the feedback, I was also considering adding a global flag for setting the width of the page.

I'm just looking to have a better homepage :)
The file content/_index.md is too narrow when it's text-only, and adding layout: hextra-home front matter in content/_index.md doesn't support custom content.

@imfing
Copy link
Owner

imfing commented Sep 3, 2023

I'm just looking to have a better homepage :)

If you don't mind overriding the layout, you can copy the layouts/index.html and modify the second line:

<div class="mx-auto flex max-w-screen-xl">

to:

-  <div class="mx-auto flex max-w-screen-xl">
+  <div class="mx-auto flex max-w-[90rem]">

which should make it a bit wider. This may be the best option for this case.

@imfing
Copy link
Owner

imfing commented Sep 3, 2023

Never mind, I think it makes more sense to make the text-only index page wider. Fixed in #30

@saurabh-sm
Copy link
Contributor Author

Thanks Xin !

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

Successfully merging a pull request may close this issue.

2 participants