Comments (3)
Also how can we modify the code rendering style ... I want to modify it to the way Layon renders code snippets.
by the way great work !!! I really loved Gravity
from gravity.
Hey @euler16 , font size on preview page of posts is on https://github.com/hemangsk/Gravity/blob/master/css/style.scss#L294
and for posts themselves is at https://github.com/hemangsk/Gravity/blob/master/css/style.scss#L586
So you can change the values in em, rem, px to the best settings as per your choice.
For snippet highlighting you just need to include this syntax.css (can be found at https://github.com/mojombo/tpw/blob/master/css/syntax.css) in the includes/head.html
file of Gravity.
Then you can write code like,
{% highlight ruby linenos %}
def foo
puts 'foo'
end
{% endhighlight %}
it'll do the job. feel free to ping me if there's any issue, alright :)
Reference http://jekyllrb.com/docs/templates/#stylesheets-for-syntax-highlighting
from gravity.
thanks it worked!!!
from gravity.
Related Issues (20)
- How to add icon HOT 7
- Center pages under title
- Unable to install jekyll on Ubuntu16.04 HOT 4
- Does it support timeline in the archive layout? HOT 2
- Your theme is listed on jekyll-themes.com
- post.excerpt not work in chinese HOT 6
- Filter homepage posts HOT 3
- Hosting fonts locally? HOT 7
- blank entries on home page HOT 7
- how to make design.md homepage
- You can look at my changes HOT 6
- How do you change the order of the pages on the main navigation? HOT 3
- Add coafile HOT 16
- Create a dark theme for Gravity HOT 3
- Website not picking up my latest post HOT 2
- Github page does not exist. HOT 2
- Post Title turning red? HOT 9
- How to build up this theme with Github Page? HOT 4
- Refactor Plan
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 gravity.