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

Use highlight.js in startbootstrap-clean-blog-jekyll #109

Closed
Huang-Libo opened this issue Apr 4, 2017 · 5 comments
Closed

Use highlight.js in startbootstrap-clean-blog-jekyll #109

Huang-Libo opened this issue Apr 4, 2017 · 5 comments

Comments

@Huang-Libo
Copy link

Can I use highlight.js in startbootstrap-clean-blog-jekyll?

@i-a-n
Copy link

i-a-n commented Apr 4, 2017

I use a customized highlight.js theme on my Clean Blog install. and I use a custom variable to decide whether to load the CSS/JS or not. an example post with it is here, and you can see my commit to add the whole thing on my repo.

@Huang-Libo
Copy link
Author

Huang-Libo commented Apr 4, 2017

@i-a-n
Hi, I use your method step by step and I successfully install the union-syntaxhighlighter-theme, however I want to use tomorrow-night-bright.css theme and my own highlight.pack.js, I try to replace union-syntaxhighlighter-slim.min.js with my own highlight.pack.js, and replace union-syntaxhighlighter.css with tomorrow-night-bright.css, and delete includeSyntax variable in related css files, but it do not work, what's wrong with my method?

@i-a-n
Copy link

i-a-n commented Apr 4, 2017

@Huang-Libo — I can't really say what's wrong without seeing the code. maybe if you publish it to a repo and link to it, I can help. but I'm not sure what's wrong just based on your description.

@Huang-Libo
Copy link
Author

@i-a-n
Hi, finally I solve this problem by add the code below to head.html and footer.html, and delete the code related with syntax.css in this theme.

<link rel="stylesheet" href="/css/tomorrow-night-bright.css">
<script src="/js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

But another problem come: how can I Remove the border in code block? It seems have relationship with bootstrap.min.css or bootstrap.css.

highlightjs

@davidtmiller
Copy link
Member

I'm going to close this for now. Jekyll has it's defaults, and if there are conflicts with Bootstrap rather than the theme itself then it's not relevant to the theme styles.

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

3 participants