Giter Site home page Giter Site logo

Comments (5)

i-a-n avatar i-a-n commented on May 18, 2024

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.

from startbootstrap-clean-blog-jekyll.

Huang-Libo avatar Huang-Libo commented on May 18, 2024

@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?

from startbootstrap-clean-blog-jekyll.

i-a-n avatar i-a-n commented on May 18, 2024

@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.

from startbootstrap-clean-blog-jekyll.

Huang-Libo avatar Huang-Libo commented on May 18, 2024

@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

from startbootstrap-clean-blog-jekyll.

davidtmiller avatar davidtmiller commented on May 18, 2024

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.

from startbootstrap-clean-blog-jekyll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.