Comments (5)
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.
@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.
@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.
@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
.
from startbootstrap-clean-blog-jekyll.
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)
- The 'Posts' page is not populating with posts HOT 1
- URGENT: Path Issue
- Formspree is phasing out legacy forms HOT 3
- Can not publish it on github
- Modifying the navbar.html in _includes breaks my clean blog site HOT 1
- failed to build HOT 14
- Create New Posts_The Date Must Be 2020 HOT 2
- github-pages 223 | Error: The jekyll-theme-clean-blog theme could not be found. HOT 4
- font awesom icons
- When installing as a `gem` notify the extra dependencies to add
- Bug issues HOT 3
- Migrating to Bootstrap v5
- syntax coloring for code doesn't work HOT 1
- Github Pages not displaying theme HOT 1
- DEPRECATION WARNING: Using / for division outside of calc() is deprecated HOT 3
- Images not displaying HOT 2
- New Issue
- My blog posts are not displaying correctly. HOT 1
- Question: How to add custom stylesheets
- Error 404 for URL: https://startbootstrap.com/themes/clean-blog-jekyll HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from startbootstrap-clean-blog-jekyll.