-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Added pelican-bootstrap3 theme
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
|
||
Copyright (C) 2013 Daan Debie <debie.daan@gmail.com> | ||
|
||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
0. You just DO WHAT THE FUCK YOU WANT TO. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# pelican-bootstrap3 | ||
|
||
This is a Bootstrap 3 theme for Pelican. It's fully responsive. Bootstrap 3 has seen an official, final release now, so I don't expect any breaking changes anymore. I will try to keep it up-to-date. | ||
|
||
## Installation | ||
|
||
First: | ||
|
||
`git clone https://github.com/DandyDev/pelican-bootstrap3.git` | ||
|
||
Then: | ||
|
||
Point the `THEME` variable in your `pelicanconf.py` to `/path/to/pelican-bootstrap3` | ||
|
||
## Usage | ||
|
||
This theme honors the following standard Pelican settings: | ||
|
||
* Putting feeds in the `<head>` section: | ||
* `FEED_ALL_ATOM` | ||
* `FEED_ALL_RSS` | ||
* Template settings: | ||
* `DISPLAY_PAGES_ON_MENU` | ||
* `DISPLAY_CATEGORIES_ON_MENU` | ||
* `MENUITEMS` | ||
* Analytics & Comments | ||
* `GOOGLE_ANALYTICS` | ||
* `DISQUS_SITENAME` | ||
|
||
It uses the `tag_cloud` variable for displaying tags in the sidebar. You can control the amount of tags shown with: `TAG_CLOUD_MAX_ITEMS` | ||
|
||
Categories are disabled by default because I don't use them myself. If you want to show them in the sidebar, uncomment the relevant section in `includes/sidebar.html` | ||
|
||
## Extras | ||
|
||
### GitHub | ||
|
||
The theme can show your most recently active GitHub repos in the sidebar. To enable, provide a `GITHUB_USER`. Appearance and behaviour can be controlled using the following variables: | ||
|
||
* `GITHUB_REPO_COUNT` | ||
* `GITHUB_SKIP_FORK` | ||
* `GITHUB_SHOW_USER_LINK` | ||
|
||
### Bootswatch and other Bootstrap 3 themes | ||
|
||
I included all the lovely Bootstrap 3 themes from [Bootswatch](http://bootswatch.com/), built by [Thomas Park](https://github.com/thomaspark). You can tell Pelican what Bootswatch theme to use, by setting `BOOTSTRAP_THEME` to the desired theme, in lowercase (ie. 'readable' or 'cosmo' etc.). My own site is using _Readable_. If you want to use any other Bootstrap 3 compatible theme, just put the minified CSS in the `static/css` directory and rename it using the following naming scheme: `bootstrap.{theme-name}.min.css`. Then update the `BOOTSTRAP_THEME` variable with the _theme-name_ used. | ||
|
||
### AddThis | ||
|
||
You can enable sharing buttons through [AddThis](http://www.addthis.com/) by setting `ADDTHIS_PROFILE` to your AddThis profile-id. This will display a **Tweet**, **Facebook Like** and **Google +1** button under each post. | ||
|
||
### Facebook Open Graph | ||
|
||
In order to make the Facebook like button work better, the template contains Open Graph metatags like `<meta property="og:type" content="article"/>`. You can disable them by setting `USE_OPEN_GRAPH` to `False`. You can use `OPEN_GRAPH_FB_APP_ID` to provide a Facebook _app id_. You can also provide a default image that will be passed to Facebook for the homepage of you site by setting `OPEN_GRAPH_IMAGE` to a relative file path, which will be prefixed by your site's static directory. | ||
|
||
## Screenshot | ||
|
||
![](screenshot.png) | ||
|
||
![](screenshot-article.png) | ||
|
||
## Live example | ||
|
||
[This is my website](http://dandydev.net) |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.hll { background-color: #404040 } | ||
.c { color: #999999; font-style: italic } /* Comment */ | ||
.err { color: #a61717; background-color: #e3d2d2 } /* Error */ | ||
.g { color: #d0d0d0 } /* Generic */ | ||
.k { color: #6ab825; font-weight: bold } /* Keyword */ | ||
.l { color: #d0d0d0 } /* Literal */ | ||
.n { color: #d0d0d0 } /* Name */ | ||
.o { color: #d0d0d0 } /* Operator */ | ||
.x { color: #d0d0d0 } /* Other */ | ||
.p { color: #d0d0d0 } /* Punctuation */ | ||
.cm { color: #999999; font-style: italic } /* Comment.Multiline */ | ||
.cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */ | ||
.c1 { color: #999999; font-style: italic } /* Comment.Single */ | ||
.cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ | ||
.gd { color: #d22323 } /* Generic.Deleted */ | ||
.ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */ | ||
.gr { color: #d22323 } /* Generic.Error */ | ||
.gh { color: #ffffff; font-weight: bold } /* Generic.Heading */ | ||
.gi { color: #589819 } /* Generic.Inserted */ | ||
.go { color: #cccccc } /* Generic.Output */ | ||
.gp { color: #aaaaaa } /* Generic.Prompt */ | ||
.gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */ | ||
.gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */ | ||
.gt { color: #d22323 } /* Generic.Traceback */ | ||
.kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */ | ||
.kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */ | ||
.kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */ | ||
.kp { color: #6ab825 } /* Keyword.Pseudo */ | ||
.kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */ | ||
.kt { color: #6ab825; font-weight: bold } /* Keyword.Type */ | ||
.ld { color: #d0d0d0 } /* Literal.Date */ | ||
.m { color: #3677a9 } /* Literal.Number */ | ||
.s { color: #ed9d13 } /* Literal.String */ | ||
.na { color: #bbbbbb } /* Name.Attribute */ | ||
.nb { color: #24909d } /* Name.Builtin */ | ||
.nc { color: #447fcf; text-decoration: underline } /* Name.Class */ | ||
.no { color: #40ffff } /* Name.Constant */ | ||
.nd { color: #ffa500 } /* Name.Decorator */ | ||
.ni { color: #d0d0d0 } /* Name.Entity */ | ||
.ne { color: #bbbbbb } /* Name.Exception */ | ||
.nf { color: #447fcf } /* Name.Function */ | ||
.nl { color: #d0d0d0 } /* Name.Label */ | ||
.nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */ | ||
.nx { color: #d0d0d0 } /* Name.Other */ | ||
.py { color: #d0d0d0 } /* Name.Property */ | ||
.nt { color: #6ab825; font-weight: bold } /* Name.Tag */ | ||
.nv { color: #40ffff } /* Name.Variable */ | ||
.ow { color: #6ab825; font-weight: bold } /* Operator.Word */ | ||
.w { color: #666666 } /* Text.Whitespace */ | ||
.mf { color: #3677a9 } /* Literal.Number.Float */ | ||
.mh { color: #3677a9 } /* Literal.Number.Hex */ | ||
.mi { color: #3677a9 } /* Literal.Number.Integer */ | ||
.mo { color: #3677a9 } /* Literal.Number.Oct */ | ||
.sb { color: #ed9d13 } /* Literal.String.Backtick */ | ||
.sc { color: #ed9d13 } /* Literal.String.Char */ | ||
.sd { color: #ed9d13 } /* Literal.String.Doc */ | ||
.s2 { color: #ed9d13 } /* Literal.String.Double */ | ||
.se { color: #ed9d13 } /* Literal.String.Escape */ | ||
.sh { color: #ed9d13 } /* Literal.String.Heredoc */ | ||
.si { color: #ed9d13 } /* Literal.String.Interpol */ | ||
.sx { color: #ffa500 } /* Literal.String.Other */ | ||
.sr { color: #ed9d13 } /* Literal.String.Regex */ | ||
.s1 { color: #ed9d13 } /* Literal.String.Single */ | ||
.ss { color: #ed9d13 } /* Literal.String.Symbol */ | ||
.bp { color: #24909d } /* Name.Builtin.Pseudo */ | ||
.vc { color: #40ffff } /* Name.Variable.Class */ | ||
.vg { color: #40ffff } /* Name.Variable.Global */ | ||
.vi { color: #40ffff } /* Name.Variable.Instance */ | ||
.il { color: #3677a9 } /* Literal.Number.Integer.Long */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
body { | ||
padding-top: 70px; | ||
} | ||
|
||
#sidebar .list-group, #sidebar .list-group-item { | ||
background-color: transparent; | ||
} | ||
|
||
.list-group-item { | ||
border: none; | ||
} | ||
|
||
.tag-1 { | ||
font-size: 13pt; | ||
} | ||
|
||
.tag-2 { | ||
font-size: 10pt; | ||
} | ||
|
||
.tag-2 { | ||
font-size: 8pt; | ||
} | ||
|
||
.tag-4 { | ||
font-size: 6pt; | ||
} | ||
|
||
#sidebar { | ||
padding-top: 0px; | ||
} | ||
|
||
#sidebar a { | ||
color: inherit; | ||
} | ||
|
||
i { | ||
margin-right: 10px; | ||
} | ||
|
||
a, a:hover { | ||
color: inherit; | ||
} | ||
|
||
.entry-content a { | ||
text-decoration: none; | ||
border-bottom: 1px dotted; | ||
} | ||
|
||
.entry-content a:hover { | ||
text-decoration: none; | ||
border-bottom: 1px solid; | ||
} | ||
|
||
.entry-content img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
.highlight pre { | ||
background-color: #202020; | ||
color: #777; | ||
} | ||
|
||
#categories ul, #tags ul { | ||
list-style: none; | ||
padding: 0; | ||
margin-left: 0; | ||
} |