crane-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/_layouts/default.html +18 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +39 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9fb566df772aedab80a6497ac7e44bb72c7c155e9169e9638c2a6e7b15f104a0
|
4
|
+
data.tar.gz: 0fb6931be6412d551608ba59f3c380aad80e48482779b631e995e93435d23e7e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc53f2e023ff901fca1e8cd60abc1fc8c603460ee8940c57ad9f22820e0a827130d1be4c6f26e81b385f48e49b52f69f6ca0bd0108ca743999d8dbf5f43ec7f6
|
7
|
+
data.tar.gz: b05e1020026e6a53d79e384bae0480f681f4e0e60cd1fa03294be3152f87373353f18debe1db077347f52608552e6d1860ed1b5f0d91e4e8aac55de205342e8b
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 Adrian Garza
|
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,49 @@
|
|
1
|
+
# crane-theme
|
2
|
+
|
3
|
+
This is a Jekyll theme for my personal website. You can use or fork it if you'd like. I've made minimal efforts to generalize it.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your Jekyll site's `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "crane-theme"
|
12
|
+
```
|
13
|
+
|
14
|
+
And add this line to your Jekyll site's `_config.yml`:
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
theme: crane-theme
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install crane-theme
|
27
|
+
|
28
|
+
## Configuration
|
29
|
+
|
30
|
+
This theme supports an archive and a home page link. They'll be populated automatically if supplied. Just add these to your `_config.yml`:
|
31
|
+
```yaml
|
32
|
+
archive_page: index
|
33
|
+
home_page: index
|
34
|
+
```
|
35
|
+
|
36
|
+
## Contributing
|
37
|
+
|
38
|
+
Bug reports and pull requests are unwelcome on GitHub at https://github.com/garzaa/crane-theme. This project is intended to be an unwelcoming, hostile 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
|
+
To test this theme, run `bundle exec jekyll serve` and open your browser at `localhost:4000`.
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
49
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
{%- include header.html -%}
|
8
|
+
<main class="page-content" aria-label="Content">
|
9
|
+
<div class="post-container">
|
10
|
+
{{ content }}
|
11
|
+
</div>
|
12
|
+
</main>
|
13
|
+
|
14
|
+
{%- include footer.html -%}
|
15
|
+
|
16
|
+
</body>
|
17
|
+
|
18
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
6
|
+
|
7
|
+
<header class="post-header">
|
8
|
+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
9
|
+
<p class="post-meta">
|
10
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
11
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
12
|
+
{{ page.date | date: date_format }}
|
13
|
+
</time>
|
14
|
+
{%- if page.modified_date -%}
|
15
|
+
~
|
16
|
+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
17
|
+
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
|
18
|
+
{{ mdate | date: date_format }}
|
19
|
+
</time>
|
20
|
+
{%- endif -%}
|
21
|
+
{%- if page.author -%}
|
22
|
+
• {% for author in page.author %}
|
23
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
24
|
+
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
|
25
|
+
{%- if forloop.last == false %}, {% endif -%}
|
26
|
+
{% endfor %}
|
27
|
+
{%- endif -%}</p>
|
28
|
+
</header>
|
29
|
+
|
30
|
+
<div class="post-content" itemprop="articleBody">
|
31
|
+
{{ content }}
|
32
|
+
</div>
|
33
|
+
|
34
|
+
{%- if site.disqus.shortname -%}
|
35
|
+
{%- include disqus_comments.html -%}
|
36
|
+
{%- endif -%}
|
37
|
+
|
38
|
+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
39
|
+
</article>
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: crane-theme
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adrian Garza
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-07-30 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.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- adrianhgarza@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE.txt
|
35
|
+
- README.md
|
36
|
+
- _layouts/default.html
|
37
|
+
- _layouts/page.html
|
38
|
+
- _layouts/post.html
|
39
|
+
homepage: https://github.com/garzaa/crane-theme
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubygems_version: 3.1.4
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: A simple theme for my website
|
62
|
+
test_files: []
|