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

[request] A full page made from the sidebar #20

Open
mwpher opened this issue Apr 1, 2015 · 1 comment
Open

[request] A full page made from the sidebar #20

mwpher opened this issue Apr 1, 2015 · 1 comment

Comments

@mwpher
Copy link
Contributor

mwpher commented Apr 1, 2015

I'm sure that sounds vague; basically, I really like the sidebar, and since my site has no real content on it, I want to make an "under construction" page from it. It takes two changes, and possibly one more:

  • Sidebar color becomes background color
  • Sidebar content is centered on page
  • (Ideally) the ability to generate this page standalone so that it's just one HTML file.

That last one is presuming it doesn't depend on any static files that can't be in the page. Depending on Hugo's architecture, this may not be doable without needing a seperate theme directory that only makes this page. (I would probably use it anyway, honestly.)

@zyro
Copy link
Owner

zyro commented Apr 2, 2015

Off the top of my head you could probably get the general result you want by overriding a few things from the theme:

  • Add your own custom CSS file that overrides some of the sidebar's styles to stretch it across the page and align the content.
  • Override layouts/partials/head.html to also reference your new CSS file.
  • Override layouts/index.html to essentially do nothing.

I don't think it's possible to pack it all into a single file, there are too many secondary resources like CSS, JS, 404 page, license page etc

As far as doing all of this out of the box, I'm not sure there's an elegant way to seamlessly handle sites both with and without content. I'll give it some thought.

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

2 participants