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

Syntax highlighted code on the left side #11

Open
lukasmalkmus opened this issue Sep 11, 2017 · 4 comments
Open

Syntax highlighted code on the left side #11

lukasmalkmus opened this issue Sep 11, 2017 · 4 comments

Comments

@lukasmalkmus
Copy link

Is it possible to have highlighted code in the left section of the site? Some way of preventing Hugo from moving it to the "code area" on the right side.

If there is no way already, I might dig into Hugo and this template and submit a PR.

@cwarner818
Copy link

This would be great if anyone has some pointers on how to pull it off.

@metachris
Copy link
Contributor

Second that, would be great to have the ability to add code blocks into the main content.

@bep
Copy link
Owner

bep commented Jul 10, 2020

I agree that it would be useful, and I would welcome a fix -- but it needs to be a config flag that enables it (so we don't break existing sites).

@hoshsadiq
Copy link

For you can use these styles as a way to force it to be normal:

.content pre, .content blockquote {
  width: initial !important;
  float: none !important;
  clear: none !important;
}

.content > h1, .content > h2, .content > h3, .content > h4, .content > h5, .content > h6, .content > p, .content > table, .content > ul, .content > ol, .content > aside, .content > dl {
  margin-right: initial !important;
}

.dark-box {
  display: none !important;
}

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

No branches or pull requests

5 participants