Comments (6)
I saw on your blog that you used the pelican-bootstrap3 theme from the pelican-themes repository. That one hasn't been updated for a while now. I have yet to create a PR to merge the newest version in. In any case, it's better to use this repo instead :)
Let me know if you still encounter the problem with the most recent version!
from pelican-bootstrap3.
Thank you! I switched over per your recommendation. I'm getting some really weird rendering for code blocks now.
Long lines are not wrapping and short lines have very wide line numbering blocks.
Here's an example: http://crunk.io/chat-proxy-ubuntu-14.04.html
from pelican-bootstrap3.
I've tried to reproduce the issues. The line numbers consistently show, also the double-digit ones:
I do see strange behaviour with short code blocks:
But I have no idea what causes this. I'm by no means a CSS guru. It might be related to the Bootswatch theme I use. I see that you're website is not online anymore. Are you planning to put it online again, so I can check what's going on?
from pelican-bootstrap3.
Sorry - it's still online - it's still brand new so I've been working with URL rules and rewriting the few bits of content that I've published - the URL changed for that article I linked and I don't have a 404 page up yet - new URL for that post is currently: http://crunk.io/setting-up-a-comm-server-on-ubuntu-14-04.html
It seems that (like you said) the spacing for the code blocks is relative to the length of text (at least on mine).
Code blocks that have very short content have a very wide line numbering block. Code blocks that have longer content have a line numbering block that is the correct width - however the code in the code block doesn't wrap and will extend on the right past the edge of where it should be wrapped.
from pelican-bootstrap3.
I'm experiencing the same issue; however I always get wide line numbering blocks no matter the length of the code (in lines). Are there any workarounds to this issue? Thanks for your help.
from pelican-bootstrap3.
Same issue with short, or really any code blocks. No two line numbering widths are the same on a given page. Is there some custom css that we could inject to the Bootswatch theme to fix the width of line number columns?
Edit: no idea if this has further ramifications, but these changes got my number widths working correctly
pelicanconf.py
CUSTOM_CSS = 'static/custom.css'
STATIC_PATHS = ['images', 'extra/custom.css']
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/custom.css'}
}
content/extra/custom.css
.code { width: 100%; }
from pelican-bootstrap3.
Related Issues (20)
- Disqus comments not loading on all articles HOT 3
- Question about using tique_search HOT 3
- Path to sidebar image HOT 2
- code block wrapping HOT 2
- Add Category as a class of <body> HOT 1
- PAGES got removed in master HOT 2
- Disqus comments not working HOT 2
- Disqus comment count script is loaded if displaying comments is disabled HOT 1
- Can't show disqus comments HOT 4
- tipue search failed to generate correct url HOT 7
- Square FontAwesome icons exemption and custom icons HOT 1
- enabling pelican-bootstrap3 affects 'codehilite' extension in MD_EXTENSIONS HOT 1
- Add icon for Goodreads account (social link)? HOT 1
- Margin problems on 'post-info' class HOT 1
- Wiki HOT 2
- Update embedded shariff version HOT 2
- Add support for rst admonitions HOT 1
- Anchor link colors HOT 1
- The piwik url HOT 1
- Tipue search box pinned to top of viewport 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 pelican-bootstrap3.