sundrycodes 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/breadcrumbs.html +12 -0
  5. data/_includes/head.html +54 -0
  6. data/_includes/header.html +49 -0
  7. data/_includes/plex.html +8 -0
  8. data/_includes/previewed_post.html +66 -0
  9. data/_includes/script.html +29 -0
  10. data/_includes/sidebar.html +132 -0
  11. data/_includes/taglist_post.html +17 -0
  12. data/_layouts/category.html +32 -0
  13. data/_layouts/default.html +30 -0
  14. data/_layouts/home.html +26 -0
  15. data/_layouts/page.html +14 -0
  16. data/_layouts/post.html +35 -0
  17. data/_layouts/tag.html +32 -0
  18. data/assets/css/font/D2Coding.eot +0 -0
  19. data/assets/css/font/D2Coding.svg +39897 -0
  20. data/assets/css/font/D2Coding.ttf +0 -0
  21. data/assets/css/font/D2Coding.woff +0 -0
  22. data/assets/css/font/D2Coding.woff2 +0 -0
  23. data/assets/css/font/D2CodingBold.eot +0 -0
  24. data/assets/css/font/D2CodingBold.svg +39897 -0
  25. data/assets/css/font/D2CodingBold.ttf +0 -0
  26. data/assets/css/font/D2CodingBold.woff +0 -0
  27. data/assets/css/font/D2CodingBold.woff2 +0 -0
  28. data/assets/css/font/License +85 -0
  29. data/assets/css/font/README.md +115 -0
  30. data/assets/css/font/d2coding.css +27 -0
  31. data/assets/css/main.css +531 -0
  32. data/assets/ico/android-icon-144x144.png +0 -0
  33. data/assets/ico/android-icon-192x192.png +0 -0
  34. data/assets/ico/android-icon-36x36.png +0 -0
  35. data/assets/ico/android-icon-48x48.png +0 -0
  36. data/assets/ico/android-icon-72x72.png +0 -0
  37. data/assets/ico/android-icon-96x96.png +0 -0
  38. data/assets/ico/apple-icon-114x114.png +0 -0
  39. data/assets/ico/apple-icon-120x120.png +0 -0
  40. data/assets/ico/apple-icon-144x144.png +0 -0
  41. data/assets/ico/apple-icon-152x152.png +0 -0
  42. data/assets/ico/apple-icon-180x180.png +0 -0
  43. data/assets/ico/apple-icon-57x57.png +0 -0
  44. data/assets/ico/apple-icon-60x60.png +0 -0
  45. data/assets/ico/apple-icon-72x72.png +0 -0
  46. data/assets/ico/apple-icon-76x76.png +0 -0
  47. data/assets/ico/apple-icon-precomposed.png +0 -0
  48. data/assets/ico/apple-icon.png +0 -0
  49. data/assets/ico/favicon-16x16.png +0 -0
  50. data/assets/ico/favicon-32x32.png +0 -0
  51. data/assets/ico/favicon-96x96.png +0 -0
  52. data/assets/ico/favicon.ico +0 -0
  53. data/assets/ico/home.png +0 -0
  54. data/assets/ico/manifest.json +41 -0
  55. data/assets/ico/ms-icon-144x144.png +0 -0
  56. data/assets/ico/ms-icon-150x150.png +0 -0
  57. data/assets/ico/ms-icon-310x310.png +0 -0
  58. data/assets/ico/ms-icon-70x70.png +0 -0
  59. data/assets/js/html5shiv.js +8 -0
  60. data/assets/js/respond.min.js +6 -0
  61. metadata +145 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2dc4e6c275fb75092c10794d8838f1e030fce500283c05b8b35b1ab4e7f7a4db
4
+ data.tar.gz: 717c39ce79e76b56896130056fd672e053c82580dcf9eda1dbb869f025e30c31
5
+ SHA512:
6
+ metadata.gz: 927d53a54e7a95bd596a3452bdef6781554197c9953aa7830368deb1cf638e0c7f4b53bdde8ce1c9eb63fd470b0679e97527e10d3dde9f8fdeb8e7bef4dab9f2
7
+ data.tar.gz: 535b90a4709b98b566fa2293b146eb27c6f609b856aee52a66fbf0ab9dbcc0b19404d1f52e9bf922aac7c8157cd2698defbb09596c846cc50b289b8753b5b8e7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Rockheung
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # sundrycodes
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "sundrycodes"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: sundrycodes
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install sundrycodes
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `sundrycodes.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
@@ -0,0 +1,12 @@
1
+ <div class="breadcrumbs">
2
+ <ul class="breadcrumb">
3
+ {% assign date_array = page.date | date: "^%Y^%b^%-d^" %}
4
+ {% assign breadcrumbs = page.bread | default: "Post" | append: date_array | append: page.title | split: '^' %}
5
+ {% for crumb in breadcrumbs %}
6
+ <li {% if forloop.last %}{% else %}class="deactive"{% endif %}>
7
+ {{ crumb }}
8
+ </li>
9
+ {% endfor %}
10
+ </ul>
11
+ </div>
12
+
@@ -0,0 +1,54 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <title>{{ site.title }} - {% if page.title %}
4
+ {{ page.title }}
5
+ {% else %}
6
+ {{ site.description }}
7
+ {% endif %}</title>
8
+ <meta name="robots" content="follow, all">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
10
+ <meta name="description" content="{{ site.description }}">
11
+ <meta name="keywords" content="{{ site.posts | map: "tags" | uniq | sort | join: ", "}}">
12
+ <meta name="author" content="Rockheung">
13
+ <link rel="pingback" href="/xmlrpc/">
14
+ <link rel="home" href="/">
15
+
16
+ <!-- Scrollbar Custom CSS -->
17
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
18
+
19
+ <!-- Latest compiled and minified CSS -->
20
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
21
+
22
+ <!-- D2-coding webfont -->
23
+ <link rel="stylesheet" href="/assets/css/font/d2coding.css" type="text/css">
24
+ <link href="https://fonts.googleapis.com/css?family=Monofett|Zilla+Slab+Highlight:700" rel="stylesheet">
25
+
26
+ <!--[if lt IE 9]>
27
+ <script src="/assets/js/html5shiv.js"></script>
28
+ <script src="/assets/js/respond.min.js"></script>
29
+ <![endif]-->
30
+
31
+ <!-- Generarted by https://www.favicon-generator.org -->
32
+ <link rel="shortcut icon" href="/assets/ico/favicon.ico">
33
+ <link rel="apple-touch-icon" sizes="57x57" href="/assets/ico/apple-icon-57x57.png">
34
+ <link rel="apple-touch-icon" sizes="60x60" href="/assets/ico/apple-icon-60x60.png">
35
+ <link rel="apple-touch-icon" sizes="72x72" href="/assets/ico/apple-icon-72x72.png">
36
+ <link rel="apple-touch-icon" sizes="76x76" href="/assets/ico/apple-icon-72x72.png">
37
+ <link rel="apple-touch-icon" sizes="114x114" href="/assets/ico/apple-icon-144x144.png">
38
+ <link rel="apple-touch-icon" sizes="120x120" href="/assets/ico/apple-icon-120x120.png">
39
+ <link rel="apple-touch-icon" sizes="144x144" href="/assets/ico/apple-icon-144x144.png">
40
+ <link rel="apple-touch-icon" sizes="152x152" href="/assets/ico/apple-icon-152x152.png">
41
+ <link rel="apple-touch-icon" sizes="180x180" href="/assets/ico/apple-icon-180x180.png">
42
+ <link rel="icon" type="image/png" sizes="192x192" href="/assets/ico/android-icon-192x192.png">
43
+ <link rel="icon" type="image/png" sizes="32x32" href="/assets/ico/favicon-32x32.png">
44
+ <link rel="icon" type="image/png" sizes="96x96" href="/assets/ico/favicon-96x96.png">
45
+ <link rel="icon" type="image/png" sizes="16x16" href="/assets/ico/favicon-16x16.png">
46
+ <link rel="manifest" href="/assets/ico/manifest.json">
47
+ <meta name="msapplication-TileColor" content="#FFFFFF">
48
+ <meta name="msapplication-TileImage" content="/assets/ico/ms-icon-144x144.png">
49
+ <meta name="theme-color" content="#FFFFFF">
50
+
51
+ <link href="https://fonts.googleapis.com/css?family=Nanum+Gothic|Nanum+Myeongjo" rel="stylesheet">
52
+
53
+ <link rel="stylesheet" href="/assets/css/main.css" type="text/css">
54
+ </head>
@@ -0,0 +1,49 @@
1
+ <nav class="navbar" role="navigation">
2
+ <div class="container-fluid">
3
+ <div class="navbar-header">
4
+ </div>
5
+
6
+ <div class="container-fluid">
7
+ <div class="row">
8
+
9
+ <!-- toggle button -->
10
+ <div class="col-xs-2 col-sm-3">
11
+ <button type="button" id="sidebarCollapse" class="btn navbar-btn">
12
+ <span class="sr-only">Toggle navigation</span>
13
+ <i class="glyphicon glyphicon-align-left"></i>
14
+ </button>
15
+ </div>
16
+
17
+ <div class="visible-xs col-xs-2 col-xs-push-8">
18
+ <div class="pull-right">
19
+ <a href="/" title="Rockheung's Sundry" class="navbar-brand" rel="home">
20
+ <img src="/assets/ico/home.png" class="img-rounded home-img" alt="Rockheung's Sundry" >
21
+ </a>
22
+ </div>
23
+ </div>
24
+
25
+ <div class="hidden-xs col-sm-6">
26
+ <div class="col-sm-12 text-center">
27
+ <a href="/" title="Rockheung's Sundry" class="navbar-brand aps-pos" rel="home">
28
+ <img src="/assets/ico/home.png" class="img-rounded home-img" alt="Rockheung's Sundry" >
29
+ </a>
30
+ </div>
31
+ </div>
32
+
33
+ <div class="clearfix visible-xs"></div>
34
+
35
+ <div class="col-xs-12 col-sm-3 hidden-xs">
36
+ <form action="" class="search-form">
37
+ <div class="form-group has-feedback">
38
+ <label for="search" class="sr-only">Search</label>
39
+ <input type="text" class="search-query form-control" placeholder="Search" name="pattern" value="" >
40
+ <span class="glyphicon glyphicon-search form-control-feedback"></span>
41
+ </div>
42
+ </form>
43
+ </div>
44
+ </div>
45
+
46
+ </div>
47
+ </div>
48
+ </nav>
49
+
@@ -0,0 +1,8 @@
1
+ <div class="container-fluid">
2
+ <div id="banner" class="hidden-xs col-sm-12">
3
+ <a href="http://plex.rockheung.xyz" target="_blank">
4
+ <img src="https://res.cloudinary.com/rockheung/image/upload/v1518684835/plex-logo_cn5za9.png"/>
5
+ </a>
6
+ </div>
7
+ </div>
8
+
@@ -0,0 +1,66 @@
1
+ <article id="{{ post.slug }}" class="hentry" >
2
+ <header class="entry-header page-header">
3
+ <h2 class="entry-title">
4
+
5
+ <a href="{{ post.url | relative_url }}" title="{{ post.title }}" rel="bookmark">
6
+ {{ post.title }}
7
+ </a>
8
+
9
+ <br>
10
+ <small class="entry-info pull-right">
11
+
12
+ <time class="published" datetime="{{ post.date | date: "%b %-d, %Y" }}" pubdate="pubdate">{{ post.date | date: "%b %-d, %Y" }}</time>
13
+
14
+ {% if post.categories.size > 0 %}
15
+ <br>
16
+ in
17
+ {% for category in post.categories %}
18
+ <a href="{{ base_url }}category/#{{ category }}"
19
+ title="Show all posts in {{ category }}"
20
+ rel="tag category">{{ category }}
21
+ {% if forloop.last %}.{% else %}, {% endif %}</a>
22
+ {% endfor %}
23
+ {% endif %}
24
+ </small>
25
+
26
+ </h2>
27
+
28
+ </header>
29
+
30
+
31
+ <div class="entry-body">
32
+
33
+ <!--
34
+ {% comment %}
35
+ {% if post.image %}
36
+ <div class="entry-image">
37
+ <p>
38
+ {% if continue_reading %}
39
+ <a href="{{ post.get_absolute_url }}" title="{{ post.title }}" rel="bookmark">
40
+ {% endif %}
41
+ <img src="{{ post.image.url }}" alt="{{ post.title }}" class="img-thumbnail img-responsive" >
42
+ {% if continue_reading %}
43
+ </a>
44
+ {% endif %}
45
+ </p>
46
+ </div>
47
+ {% endif %}
48
+ {% endcomment %}
49
+ -->
50
+
51
+ <div class="entry-content lead">
52
+ {{ post.excerpt | truncatewords: 55 }}
53
+ </div>
54
+
55
+ <p class="continue-reading">
56
+ <a href="{{ post.url | relative_url }}"
57
+ rel="bookmark">
58
+ Continue reading
59
+ </a>
60
+ </p>
61
+
62
+ </div>
63
+
64
+
65
+
66
+ </article>
@@ -0,0 +1,29 @@
1
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
2
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
3
+ <!-- Latest compiled and minified JavaScript -->
4
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
5
+ <!-- jQuery Custom Scroller CDN -->
6
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
7
+ <!-- Custom -->
8
+ <script type="text/javascript">
9
+ $(document).ready(function () {
10
+
11
+ $("#sidebar").mCustomScrollbar({
12
+ theme: "minimal"
13
+ });
14
+
15
+ $('#sidebarCollapse').on('click', function () {
16
+ // open or close navbar
17
+ $('#sidebar, #content, #banner').toggleClass('active');
18
+ // close dropdowns
19
+ $('#sidebar.collapse.in').toggleClass('in');
20
+ // and also adjust aria-expanded attributes we use for the open/closed arrows
21
+ // in our CSS
22
+ $('.page-header').toggleClass('active');
23
+ //Custom for entry_title
24
+ $('a[aria-expanded=true]').attr('aria-expanded', 'false');
25
+ });
26
+
27
+ });
28
+ </script>
29
+
@@ -0,0 +1,132 @@
1
+ <nav id="sidebar">
2
+ <!-- Sidebar Header -->
3
+ <div class="sidebar-header text-center">
4
+ <a href="/">
5
+ Sundry Codes
6
+ </a>
7
+ </div>
8
+
9
+ <div class="sidebar-search visible-xs">
10
+ <div class="col-xs-12">
11
+ <form action="" class="search-form">
12
+ <div class="form-group has-feedback">
13
+ <label for="search" class="sr-only">Search</label>
14
+ <input type="text" class="search-query form-control" placeholder="Search" name="pattern" value="pattern" >
15
+ <span class="glyphicon glyphicon-search form-control-feedback"></span>
16
+ </div>
17
+ </form>
18
+ </div>
19
+ </div>
20
+
21
+ <!-- Sidebar Links -->
22
+ <div class="container">
23
+
24
+ <ul class="list-unstyled components">
25
+ <!-- Here would be better off instorucing my Info. -->
26
+
27
+ <li class="active">
28
+ <a href="#categorySubmenu" data-toggle="collapse" aria-expanded="true">
29
+ Categories
30
+ </a>
31
+ <ul class="collapse in list-unstyled" id="categorySubmenu">
32
+ {% assign lists_categories = site.posts | map: "categories" %}
33
+ {% assign categories = lists_categories | uniq | sort %}
34
+ {% if categories != empty %}
35
+ {% for category in categories %}
36
+ <li class="{% if page.categories contains category %}current{% endif %}">
37
+ <a href="/category/#{{ category }}"
38
+ title="Show all entries in {{ category }}">{{ category }}
39
+ <span class="label pull-right">
40
+ {% assign post_count = 0 %}
41
+ {% for i in lists_categories %}
42
+ {% if i contains category %}
43
+ {% assign post_count = post_count | plus: 1 %}
44
+ {% endif %}
45
+ {% endfor %}
46
+
47
+ {% case post_count %}
48
+ {% when 0 %}No post
49
+ {% when 1 %}{{ post_count }} post
50
+ {% else %}{{ post_count }} posts
51
+ {% endcase %}
52
+ </span>
53
+ </a>
54
+ </li>
55
+ {% endfor %}
56
+ {% else %}
57
+ <li class="">
58
+ <a href="#">No categories yet.</a>
59
+ </li>
60
+ {% endif %}
61
+ </ul>
62
+ </li>
63
+
64
+ <li class="active">
65
+ <a href="#recententriesSubmenu" data-toggle="collapse" aria-expanded="true">
66
+ Recent posts
67
+ </a>
68
+ <ul class="collapse in list-unstyled" id="recententriesSubmenu">
69
+ {% if site.posts != empty %}
70
+ {% for post in site.posts %}
71
+ {% if forloop.index > 10 %}
72
+ {% break %}
73
+ {% endif %}
74
+ <li class="">
75
+ <a href="{{ post.url | absolute_url }}" title="{{ post.title }}" rel="bookmark">{{ post.title }}</a>
76
+ </li>
77
+ {% endfor %}
78
+ {% else %}
79
+ <li class="">
80
+ <a href="#">No posts yet.</a>
81
+ </li>
82
+ {% endif %}
83
+ </ul>
84
+ </li>
85
+
86
+ <li class="active">
87
+ <a href="#tagcloudSubmenu" data-toggle="collapse" aria-expanded="true">
88
+ Tags
89
+ </a>
90
+ {% assign lists_tags = site.posts | map: "tags" %}
91
+ {% assign tags = lists_tags | uniq | sort %}
92
+ {% assign avg = tags.size | times: 1.0 | divided_by: lists_tags.size %}
93
+ <ul id="tagcloudSubmenu" class="callapse in list-unstyled {% if tags == empty %}no-{% endif %}tag-cloud">
94
+ {% if tags != empty %}
95
+ {% for tag in tags %}
96
+ {% assign post_count = 0 %}
97
+ {% for i in lists_tags %}
98
+ {% if i contains tag %}
99
+ {% assign post_count = post_count | plus: 1 %}
100
+ {% endif %}
101
+ {% endfor %}
102
+
103
+ <li>
104
+ <a href="/tag/#{{ tag }}"
105
+ title="{% case post_count %}
106
+ {% when 0 %}No post
107
+ {% when 1 %}{{ post_count }} post tagged by {{ tag }}
108
+ {% else %}{{ post_count }} posts tagged by {{ tag }}
109
+ {% endcase %}"
110
+ class="tag-{{ post_count | divided_by: avg | times: 2.5 | floor }}{% if post.tags contains tag %} current{% endif %}">{{ tag }}</a>
111
+ </li>
112
+ {% endfor %}
113
+ {% else %}
114
+ <li>
115
+ No tags yet.
116
+ </li>
117
+ {% endif %}
118
+ </ul>
119
+ </li>
120
+
121
+
122
+ <li class="active">
123
+ <a href="#recentcomments" data-toggle="collapse" aria-expanded="true">
124
+ Recent comments
125
+ </a>
126
+ <div id="recentcomments" class="dsq-widget collapse in"><script type="text/javascript" src="https://sundry-rockheung.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=1&avatar_size=32&excerpt_length=200"></script></div>
127
+ </li>
128
+
129
+ </ul>
130
+ </div>
131
+ </nav>
132
+