Skip to content

Added syntax highlighting throug rougify [WIP] #365

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
title: Clean Blog
email: [email protected]
description: A Blog Theme by Start Bootstrap
author: Start Bootstrap
baseurl: "/startbootstrap-clean-blog-jekyll"
url: "https://startbootstrap.github.io"
title: Clean Blog
email: [email protected]
description: A Blog Theme by Start Bootstrap
author: Start Bootstrap
baseurl: "/startbootstrap-clean-blog-jekyll"
url: "https://startbootstrap.github.io"

# Social Profiles
twitter_username: SBootstrap
github_username: StartBootstrap
facebook_username: StartBootstrap
instagram_username:
twitter_username: SBootstrap
github_username: StartBootstrap
facebook_username: StartBootstrap
instagram_username:
linkedin_username:

# Add your google-analytics ID here to activate google analytics
google_analytics: UA-XXXXXXXXX-X # out your google-analytics code
google_analytics: UA-XXXXXXXXX-X # out your google-analytics code

# Build settings
markdown: kramdown
paginate: 5
paginate_path: "/posts/page:num/"
rougifytheme: github
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge

paginate: 5
paginate_path: "/posts/page:num/"
plugins:
- jekyll-feed
- jekyll-paginate
- jekyll-sitemap ## Uncomment this line to silently generate a sitemaps.org compliant sitemap for your Jekyll site
- jekyll-feed
- jekyll-paginate
- jekyll-sitemap ## Uncomment this line to silently generate a sitemaps.org compliant sitemap for your Jekyll site
18 changes: 12 additions & 6 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@
{% else %}{{ site.title | escape }}{% endif %}
</title>

<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<meta name="description"
content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">

<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet'
type='text/css'>
<link
href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
rel='stylesheet' type='text/css'>

<script src="https://use.fontawesome.com/releases/v5.15.3/js/all.js" crossorigin="anonymous"></script>

<link rel="stylesheet" href="{{"/assets/main.css" | relative_url }}">
<link rel="stylesheet" href="{{ site.baseurl }}/rougifycss/{{ site.rougifytheme }}.css">
<link rel="stylesheet" href="{{'/assets/main.css' | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ '/feed.xml' |
relative_url }}">

</head>
</head>
90 changes: 90 additions & 0 deletions rougifycss/base16.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
color: #383838;
}
.highlight .err {
color: #181818;
background-color: #ab4642;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
color: #585858;
}
.highlight .cp {
color: #f7ca88;
}
.highlight .nt {
color: #f7ca88;
}
.highlight .o, .highlight .ow {
color: #d8d8d8;
}
.highlight .p, .highlight .pi {
color: #d8d8d8;
}
.highlight .gi {
color: #a1b56c;
}
.highlight .gd {
color: #ab4642;
}
.highlight .gh {
color: #7cafc2;
background-color: #181818;
font-weight: bold;
}
.highlight .ge {
font-style: italic;
}
.highlight .ges {
font-weight: bold;
font-style: italic;
}
.highlight .gs {
font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
color: #ba8baf;
}
.highlight .kc {
color: #dc9656;
}
.highlight .kt {
color: #dc9656;
}
.highlight .kd {
color: #dc9656;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
color: #a1b56c;
}
.highlight .sa {
color: #ba8baf;
}
.highlight .sr {
color: #86c1b9;
}
.highlight .si {
color: #a16946;
}
.highlight .se {
color: #a16946;
}
.highlight .nn {
color: #f7ca88;
}
.highlight .nc {
color: #f7ca88;
}
.highlight .no {
color: #f7ca88;
}
.highlight .na {
color: #7cafc2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
color: #a1b56c;
}
.highlight .ss {
color: #a1b56c;
}
91 changes: 91 additions & 0 deletions rougifycss/base16.dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
color: #d8d8d8;
background-color: #181818;
}
.highlight .err {
color: #181818;
background-color: #ab4642;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
color: #585858;
}
.highlight .cp {
color: #f7ca88;
}
.highlight .nt {
color: #f7ca88;
}
.highlight .o, .highlight .ow {
color: #d8d8d8;
}
.highlight .p, .highlight .pi {
color: #d8d8d8;
}
.highlight .gi {
color: #a1b56c;
}
.highlight .gd {
color: #ab4642;
}
.highlight .gh {
color: #7cafc2;
background-color: #181818;
font-weight: bold;
}
.highlight .ge {
font-style: italic;
}
.highlight .ges {
font-weight: bold;
font-style: italic;
}
.highlight .gs {
font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
color: #ba8baf;
}
.highlight .kc {
color: #dc9656;
}
.highlight .kt {
color: #dc9656;
}
.highlight .kd {
color: #dc9656;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
color: #a1b56c;
}
.highlight .sa {
color: #ba8baf;
}
.highlight .sr {
color: #86c1b9;
}
.highlight .si {
color: #a16946;
}
.highlight .se {
color: #a16946;
}
.highlight .nn {
color: #f7ca88;
}
.highlight .nc {
color: #f7ca88;
}
.highlight .no {
color: #f7ca88;
}
.highlight .na {
color: #7cafc2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
color: #a1b56c;
}
.highlight .ss {
color: #a1b56c;
}
90 changes: 90 additions & 0 deletions rougifycss/base16.light.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight, .highlight .w {
color: #383838;
}
.highlight .err {
color: #181818;
background-color: #ab4642;
}
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
color: #585858;
}
.highlight .cp {
color: #f7ca88;
}
.highlight .nt {
color: #f7ca88;
}
.highlight .o, .highlight .ow {
color: #d8d8d8;
}
.highlight .p, .highlight .pi {
color: #d8d8d8;
}
.highlight .gi {
color: #a1b56c;
}
.highlight .gd {
color: #ab4642;
}
.highlight .gh {
color: #7cafc2;
background-color: #181818;
font-weight: bold;
}
.highlight .ge {
font-style: italic;
}
.highlight .ges {
font-weight: bold;
font-style: italic;
}
.highlight .gs {
font-weight: bold;
}
.highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
color: #ba8baf;
}
.highlight .kc {
color: #dc9656;
}
.highlight .kt {
color: #dc9656;
}
.highlight .kd {
color: #dc9656;
}
.highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
color: #a1b56c;
}
.highlight .sa {
color: #ba8baf;
}
.highlight .sr {
color: #86c1b9;
}
.highlight .si {
color: #a16946;
}
.highlight .se {
color: #a16946;
}
.highlight .nn {
color: #f7ca88;
}
.highlight .nc {
color: #f7ca88;
}
.highlight .no {
color: #f7ca88;
}
.highlight .na {
color: #7cafc2;
}
.highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
color: #a1b56c;
}
.highlight .ss {
color: #a1b56c;
}
Loading