forked from hexojs/hexo-theme-light
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc46491
commit 2cabb93
Showing
1 changed file
with
8 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,7 @@ | |
See [this example site](http://hexo-example.s3-website.eu-central-1.amazonaws.com/) for a demo. | ||
|
||
- optimized for readability (~70 characters per line, enough margin between body and sidebar) | ||
- done for offline writing: (almost) all css and js files are part of the theme, the blog looks the same online as offline | ||
|
||
- done for offline writing: (almost) all css and js files are part of the theme, the blog looks the same online as offline and loads also without internet connnection | ||
|
||
# Installation | ||
|
||
|
@@ -94,38 +93,23 @@ scripts: | |
--- | ||
``` | ||
|
||
## Other features of this theme | ||
|
||
- ported from the [docpad theme of Erv Walter](https://github.com/ervwalter/ewalnet-docpad) | ||
- based on twitter bootstrap using LESS and variables.css ⇒ colors should be very easy to customize | ||
- highlightjs support | ||
- addthis support | ||
- about me is a slick bootstrap carousel | ||
- custom javascripts per page (add them in YAML front matter with scripts: …) | ||
- captionjs: if you add `class="caption"` to an image then it gets an automated caption beneath | ||
## Captions on images | ||
|
||
### custom javascript per page | ||
If you add a image like this, it'll show the caption "Raspberry pi" right below the image: | ||
|
||
If you need to include a custom javascript on one of your pages add this to front matter: | ||
|
||
``` | ||
scripts: | ||
- /scripts/jquery.dataTables.min.js | ||
- /scripts/table_scroll.js | ||
```html | ||
<img src="/images/pi.jpg" alt="Raspberry pi" class="caption" /> | ||
``` | ||
|
||
### install | ||
## Other features of this theme | ||
|
||
``` | ||
npm install hexo-renderer-less --save | ||
git clone [email protected]/philippkeller/hexo-theme-ewal.git themes/ewal | ||
``` | ||
There's support for disqus, addthis, subscripe to mailchimp mailing list, etc. Have a look at [the example config](_config.example.yml) | ||
|
||
## Update | ||
|
||
Execute the following command to update: | ||
|
||
``` | ||
cd themes/ewal | ||
cd themes/hexo-theme-twbootstrap | ||
git pull | ||
``` |