Skip to content

Commit a17b5fd

Browse files
committed
Added: themes/pandollo
1 parent 14943e3 commit a17b5fd

File tree

108 files changed

+9933
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+9933
-0
lines changed

themes/pandollo/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
_config.yml
3+
node_modules
4+
npm-debug.log
5+
source/libs/noto-sans-kr
6+
source/libs/spoqa-han-sans
7+
.idea
8+
*.iml

themes/pandollo/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Lyndon Ohhyung Chun
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

themes/pandollo/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Pandollo
2+
3+
[![license-img](https://img.shields.io/github/license/lyndonoc/hexo-theme-pandollo.svg?style=flat-square)](https://raw.githubusercontent.com/lyndonoc/hexo-theme-pandollo/master/LICENSE)
4+
[![devDependency Status"](https://img.shields.io/david/dev/lyndonoc/hexo-theme-pandollo.svg?style=flat-square)](https://david-dm.org/lyndonoc/hexo-theme-pandollo?type=dev)
5+
6+
![hexo-theme-apollo](https://github.com/lyndonoc/hexo-theme-pandollo/raw/master/source/screenshots/pandollo.png)
7+
8+
> Clean and minimal theme for [Hexo](https://hexo.io/ko/index.html), inspired by [Panda Syntax theme](https://github.com/PandaTheme/Panda-Kit) and [Hexo Apollo theme](https://github.com/pinggod/hexo-theme-apollo).
9+
10+
## Demo
11+
[https://lyndonoc.github.io/](https://lyndonoc.github.io/)
12+
13+
## Installation
14+
```
15+
npm install -g hexo-cli
16+
hexo init <site>
17+
cd <site>
18+
git clone https://github.com/lyndonoc/hexo-theme-pandollo.git themes/pandollo
19+
```
20+
Then set your `theme` in `_config.yml` to `pandollo`.
21+
22+
## Features & Configurations
23+
24+
## Features
25+
The following features can be enabled and configured in `_config.yml`.
26+
27+
### Site Menus
28+
```yaml
29+
menu:
30+
Home: /
31+
Archive: /archives/
32+
LinkedIn: url for your linkedin page
33+
GitHub: url for your github page
34+
```
35+
items in `menu` list will be listed with corresponding urls
36+
37+
### Disqus Comments
38+
```yaml
39+
disqus: your_disqus_shortname
40+
```
41+
replace `your_disqus_shortname` with your disqus shortname to enable disqus on posts.
42+
43+
### Google Analytics
44+
```yaml
45+
googleAnalytics: UA-00000000-0
46+
```
47+
replace `UA-00000000-0` with your google analytics tracking id to enable google analytics.
48+
49+
### Syntax Highlighting
50+
```yaml
51+
syntax_highlight: darkula
52+
```
53+
replace `darkula` with your choice of syntax highlighting within a post.
54+
[Available syntax highlight styles](https://github.com/lyndonoc/yt-studio/tree/master/source/css/highlights)
55+
56+
### Favicon
57+
```yaml
58+
favicon: path_to_favicon
59+
```
60+
replace `path_to_favicon` with the path to a favicon file.

themes/pandollo/_config.yml.example

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#theme settings
2+
menu:
3+
Home: /
4+
Archive: /archives/
5+
LinkedIn: https://www.linkedin.com/in/username/
6+
GitHub: https://github.com/username
7+
8+
favicon: /images/favicon.png
9+
10+
# syntax highlight
11+
syntax_highlight: darkula
12+
13+
# disqus
14+
disqus: disqus
15+
16+
# google-analytics:
17+
googleAnalytics: UA-00000000-0

themes/pandollo/gulpfile.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const gulp = require('gulp');
2+
const sass = require('gulp-sass');
3+
const autoPrefixer = require('gulp-autoprefixer');
4+
5+
gulp.task('sass', function () {
6+
7+
return gulp
8+
.src('./source/scss/main.scss')
9+
.pipe(sass({ outputStyle: 'compressed' }))
10+
.pipe(autoPrefixer())
11+
.pipe(gulp.dest('./source/css'));
12+
13+
});
14+
15+
gulp.task('default', ['sass'], function () {
16+
17+
gulp.watch('./source/scss/**/*.scss', ['sass']);
18+
19+
});

themes/pandollo/layout/archive.pug

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends includes/layout
2+
3+
block container
4+
include mixins/post
5+
+articlesByType()
6+
7+
block pagination
8+
include mixins/paginator
9+
+forList()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
if theme.disqus
2+
section.comments
3+
#disqus_thread
4+
script.
5+
var disqus_shortname = '#{theme.disqus}';
6+
(function () {
7+
var dsq = document.createElement('script');
8+
dsq.type = 'text/javascript';
9+
dsq.async = true;
10+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
11+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
12+
})();
13+
script(id='dsq-count-scr' src='//#{theme.disqus}.disqus.com/count.js' async)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
footer.footer.metadata
2+
- var hexoURL = 'https://hexo.io/';
3+
- var githubPage = 'https://pages.github.com/';
4+
- var apolloURL = 'https://github.com/pinggod/hexo-theme-apollo';
5+
- var year = new Date().getFullYear();
6+
p.footer__text © #{year} #{config.author}
7+
p.footer__text Powered by #[a(class='footer__text__link', href=hexoURL, target='_blank') Hexo] &amp; #[a(class='footer__text__link', href=githubPage, target='_blank') Github Page]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
- var highlight = theme.syntax_highlight ? theme.syntax_highlight : 'dracula';
2+
- var favicon = theme.favicon;
3+
- var xml = config.url + '/atom.xml';
4+
- var ga = theme.googleAnalytics;
5+
6+
meta(charset='UTF-8')
7+
meta(name='X-UA-Compatible', content='IE=edge')
8+
meta(name='viewport', content='width=device-width, initial-scale=1')
9+
10+
title
11+
block site_title
12+
= config.title
13+
14+
block description
15+
meta(name='description', content= config.description ? config.description : 'A Blog Powered By Hexo')
16+
17+
if favicon
18+
link(rel='icon', href=url_for(favicon))
19+
20+
link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700')
21+
link(rel='stylesheet' href=`/css/highlights/${highlight}.css`)
22+
link(rel='stylesheet', href=url_for('css/main.css'))
23+
24+
link(rel='search', type='application/opensearchdescription+xml', href=xml, title=config.title)
25+
26+
if ga
27+
script.
28+
(function (i, s, o, g, r, a, m) {
29+
i['GoogleAnalyticsObject'] = r;
30+
i[r] = i[r] || function () {
31+
(i[r].q = i[r].q || []).push(arguments)
32+
}, i[r].l = 1 * new Date();
33+
a = s.createElement(o),
34+
m = s.getElementsByTagName(o)[0];
35+
a.async = 1;
36+
a.src = g;
37+
m.parentNode.insertBefore(a, m)
38+
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
39+
ga('create', '#{ga}', 'auto');
40+
ga('send', 'pageview');
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
header.main-header
2+
h1.main-header__title.uplize
3+
a(class='main-header__title__link', href=url_for())
4+
!= config.title
5+
nav.main-header__nav
6+
ul.main-nav
7+
each value, key in theme.menu
8+
li.main-nav__list
9+
- var re = /^(http|https):\/\/*/gi;
10+
- var tar = re.test(value) ? "_blank" : "_self"
11+
- var act = !re.test(value) && "/"+page.current_url === value
12+
a.main-nav__list__link(class={ active: act } href=url_for(value) target=tar)
13+
!= key.toUpperCase()

0 commit comments

Comments
 (0)