jekyll-theme-hyde-dark 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: df629e735a3cd7287c54ed0b0ff1ba33717f71271473dbde01256824c8df4c47
4
+ data.tar.gz: 81d532055f04a49fae208f72e812fd489da3c89c39d354f1601d0b18a6bed865
5
+ SHA512:
6
+ metadata.gz: 39cf26ddcbae36922e89b40480db1ea37a9b437acb0821256c402a75e73123b1afd03877c5a782cb4ec88b3aed22eb5ea18e9333980331649939091419ef5a32
7
+ data.tar.gz: 647458f13dbd777525edb9212135f1610c7d480bf68db42d2865af5f5d85354b7d2c72119b9906a744f1e0d23979306ba62a78fc201f0f3af51eea8e29835892
@@ -0,0 +1,9 @@
1
+ # Released under MIT License
2
+
3
+ Copyright (c) 2013 Mark Otto.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,118 @@
1
+ # Hyde
2
+
3
+ Hyde is a brazen two-column [Jekyll](http://jekyllrb.com) theme that pairs a prominent sidebar with uncomplicated content. It's based on [Poole](http://getpoole.com), the Jekyll butler.
4
+
5
+ ![Hyde screenshot](https://f.cloud.github.com/assets/98681/1831228/42af6c6a-7384-11e3-98fb-e0b923ee0468.png)
6
+
7
+
8
+ ## Contents
9
+
10
+ - [Usage](#usage)
11
+ - [Options](#options)
12
+ - [Sidebar menu](#sidebar-menu)
13
+ - [Sticky sidebar content](#sticky-sidebar-content)
14
+ - [Themes](#themes)
15
+ - [Reverse layout](#reverse-layout)
16
+ - [Development](#development)
17
+ - [Author](#author)
18
+ - [License](#license)
19
+
20
+
21
+ ## Usage
22
+
23
+ Hyde is a theme built on top of [Poole](https://github.com/poole/poole), which provides a fully furnished Jekyll setup—just download and start the Jekyll server. See [the Poole usage guidelines](https://github.com/poole/poole#usage) for how to install and use Jekyll.
24
+
25
+
26
+ ## Options
27
+
28
+ Hyde includes some customizable options, typically applied via classes on the `<body>` element.
29
+
30
+
31
+ ### Sidebar menu
32
+
33
+ Create a list of nav links in the sidebar by assigning each Jekyll page the correct layout in the page's [front-matter](http://jekyllrb.com/docs/frontmatter/).
34
+
35
+ ```
36
+ ---
37
+ layout: page
38
+ title: About
39
+ ---
40
+ ```
41
+
42
+ **Why require a specific layout?** Jekyll will return *all* pages, including the `atom.xml`, and with an alphabetical sort order. To ensure the first link is *Home*, we exclude the `index.html` page from this list by specifying the `page` layout.
43
+
44
+
45
+ ### Sticky sidebar content
46
+
47
+ By default Hyde ships with a sidebar that affixes it's content to the bottom of the sidebar. You can optionally disable this by removing the `.sidebar-sticky` class from the sidebar's `.container`. Sidebar content will then normally flow from top to bottom.
48
+
49
+ ```html
50
+ <!-- Default sidebar -->
51
+ <div class="sidebar">
52
+ <div class="container sidebar-sticky">
53
+ ...
54
+ </div>
55
+ </div>
56
+
57
+ <!-- Modified sidebar -->
58
+ <div class="sidebar">
59
+ <div class="container">
60
+ ...
61
+ </div>
62
+ </div>
63
+ ```
64
+
65
+
66
+ ### Themes
67
+
68
+ Hyde ships with eight optional themes based on the [base16 color scheme](https://github.com/chriskempson/base16). Apply a theme to change the color scheme (mostly applies to sidebar and links).
69
+
70
+ ![Hyde in red](https://f.cloud.github.com/assets/98681/1831229/42b0b354-7384-11e3-8462-31b8df193fe5.png)
71
+
72
+ There are eight themes available at this time.
73
+
74
+ ![Hyde theme classes](https://f.cloud.github.com/assets/98681/1817044/e5b0ec06-6f68-11e3-83d7-acd1942797a1.png)
75
+
76
+ To use a theme, add anyone of the available theme classes to the `<body>` element in the `default.html` layout, like so:
77
+
78
+ ```html
79
+ <body class="theme-base-08">
80
+ ...
81
+ </body>
82
+ ```
83
+
84
+ To create your own theme, look to the Themes section of [included CSS file](https://github.com/poole/hyde/blob/master/public/css/hyde.css). Copy any existing theme (they're only a few lines of CSS), rename it, and change the provided colors.
85
+
86
+ ### Reverse layout
87
+
88
+ ![Hyde with reverse layout](https://f.cloud.github.com/assets/98681/1831230/42b0d3ac-7384-11e3-8d54-2065afd03f9e.png)
89
+
90
+ Hyde's page orientation can be reversed with a single class.
91
+
92
+ ```html
93
+ <body class="layout-reverse">
94
+ ...
95
+ </body>
96
+ ```
97
+
98
+
99
+ ## Development
100
+
101
+ Hyde has two branches, but only one is used for active development.
102
+
103
+ - `master` for development. **All pull requests should be submitted against `master`.**
104
+ - `gh-pages` for our hosted site, which includes our analytics tracking code. **Please avoid using this branch.**
105
+
106
+
107
+ ## Author
108
+
109
+ **Mark Otto**
110
+ - <https://github.com/mdo>
111
+ - <https://twitter.com/mdo>
112
+
113
+
114
+ ## License
115
+
116
+ Open sourced under the [MIT license](LICENSE.md).
117
+
118
+ <3
@@ -0,0 +1,41 @@
1
+ <head>
2
+ <link href="http://gmpg.org/xfn/11" rel="profile" />
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+
6
+ <!-- Enable responsiveness on mobile devices-->
7
+ <meta
8
+ name="viewport"
9
+ content="width=device-width, initial-scale=1.0, maximum-scale=1"
10
+ />
11
+
12
+ <title>
13
+ {% if page.title == "Home" %} {{ site.title }} &middot; {{ site.tagline }}
14
+ {% else %} {{ page.title }} &middot; {{ site.title }} {% endif %}
15
+ </title>
16
+
17
+ <!-- CSS -->
18
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css" />
19
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css" />
20
+ <link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css" />
21
+ <link
22
+ rel="stylesheet"
23
+ href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface|Fira+Mono:wght@400;700"
24
+ />
25
+
26
+ <!-- Icons -->
27
+ <link
28
+ rel="apple-touch-icon-precomposed"
29
+ sizes="144x144"
30
+ href="{{ site.baseurl }}public/apple-touch-icon-144-precomposed.png"
31
+ />
32
+ <link rel="shortcut icon" href="{{ site.baseurl }}public/favicon.ico" />
33
+
34
+ <!-- RSS -->
35
+ <link
36
+ rel="alternate"
37
+ type="application/rss+xml"
38
+ title="RSS"
39
+ href="/atom.xml"
40
+ />
41
+ </head>
@@ -0,0 +1,58 @@
1
+ <strong id="nav-handler">
2
+ MENU
3
+ </strong>
4
+
5
+ <div class="sidebar" id="sidebar">
6
+ <div class="container">
7
+ <div class="sidebar-about">
8
+ <h1>
9
+ <a href="{{ site.baseurl }}">
10
+ {{ site.title }}
11
+ </a>
12
+ </h1>
13
+ <p class="lead">{{ site.description }}</p>
14
+ </div>
15
+
16
+ <nav class="sidebar-nav">
17
+ <a
18
+ class="sidebar-nav-item{% if page.url == site.baseurl %} active{% endif %}"
19
+ href="{{ site.baseurl }}"
20
+ >Home</a
21
+ >
22
+
23
+ {% comment %} The code below dynamically generates a sidebar nav of pages
24
+ with `layout: page` in the front-matter. See readme for usage. {%
25
+ endcomment %} {% assign pages_list = site.pages %} {% for node in
26
+ pages_list %} {% if node.title != null %} {% if node.layout == "page" %}
27
+ <a
28
+ class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}"
29
+ href="{{ node.url }}"
30
+ >{{ node.title }}</a
31
+ >
32
+ {% endif %} {% endif %} {% endfor %}
33
+
34
+ <a
35
+ class="sidebar-nav-item"
36
+ href="{{ site.github.repo }}/archive/v{{ site.version }}.zip"
37
+ >Download</a
38
+ >
39
+ <a class="sidebar-nav-item" href="{{ site.github.repo }}"
40
+ >GitHub project</a
41
+ >
42
+ <span class="sidebar-nav-item"
43
+ >Currently not supporting anything. So, keep mum</span
44
+ >
45
+ </nav>
46
+
47
+ <p>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>
48
+ </div>
49
+ </div>
50
+
51
+ <script>
52
+ const navHandler = document.querySelector('#nav-handler');
53
+ const sidebar = document.querySelector('#sidebar');
54
+
55
+ navHandler.addEventListener('click', () => {
56
+ sidebar.classList.toggle('show');
57
+ });
58
+ </script>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ {% include head.html %}
4
+
5
+ <body class="theme-base-dark">
6
+ {% include sidebar.html %}
7
+
8
+ <div class="content container">
9
+ {{ content }}
10
+ </div>
11
+ </body>
12
+ </html>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="page">
6
+ <h1 class="page-title">{{ page.title }}</h1>
7
+ {{ content }}
8
+ </div>
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="post">
6
+ <h1 class="post-title">{{ page.title }}</h1>
7
+ <span class="post-date">{{ page.date | date_to_string }}</span>
8
+ {{ content }}
9
+ </div>
10
+
11
+ <div class="related">
12
+ <h2>Related Posts</h2>
13
+ <ul class="related-posts">
14
+ {% for post in site.related_posts limit:3 %}
15
+ <li>
16
+ <h3>
17
+ <a href="{{ post.url }}">
18
+ {{ post.title }}
19
+ <small>{{ post.date | date_to_string }}</small>
20
+ </a>
21
+ </h3>
22
+ </li>
23
+ {% endfor %}
24
+ </ul>
25
+ </div>
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-hyde-dark
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Abdus
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - mail@abdus.xyz
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.md
63
+ - README.md
64
+ - _includes/head.html
65
+ - _includes/sidebar.html
66
+ - _layouts/default.html
67
+ - _layouts/page.html
68
+ - _layouts/post.html
69
+ homepage: https://github.com/thisisabdus/hyde-dark
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
73
+ post_install_message:
74
+ rdoc_options: []
75
+ require_paths:
76
+ - lib
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ requirements: []
88
+ rubygems_version: 3.1.2
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: Hyde, with a dark theme
92
+ test_files: []