security-onigiri 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d3379c2a80a0528e1cceee860cf8f2385b654799
4
+ data.tar.gz: b60c05e4a8c39dc8a1202dcf33f7f648edec8533
5
+ SHA512:
6
+ metadata.gz: 5d5b992ce4afa0add76ac53d2d2adb69ad3c1ba448547ab1aaee3a36bb78a5fb21a5204b2ea3df2de037e763601dfafdca2eaeca325d8df78753f202ae845401
7
+ data.tar.gz: '097eff7fc6cfc7dbfc6a98ff1f5bfc9fdd7f48a86fb53dff15244b3794bde02dc7a4b700619a721c2e2cd8d476caeb0f6c4572e5dae3cf43d3da93bbf78cf0db'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 bananaappletw
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,47 @@
1
+ # security onigiri
2
+
3
+ [Theme preview]()
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ git clone https://github.com/security-onigiri/security-onigiri [your_github_username].github.io
9
+ cd [your_github_username].github.io
10
+ bundle install
11
+ jekyll serve
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ### Enabling comments (via Disqus)
17
+
18
+ Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
19
+
20
+ To enable it, add the following lines to your Jekyll site:
21
+
22
+ ```yaml
23
+ disqus:
24
+ shortname: my_disqus_shortname
25
+ ```
26
+
27
+ You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
28
+
29
+ Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
30
+
31
+ If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
32
+
33
+ --
34
+
35
+ ### Enabling Google Analytics
36
+
37
+ To enable Google Anaytics, add the following lines to your Jekyll site:
38
+
39
+ ```yaml
40
+ google_analytics: UA-NNNNNNNN-N
41
+ ```
42
+
43
+ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
44
+
45
+ ## License
46
+
47
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,20 @@
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+
3
+ <div id="disqus_thread" class="ui comment"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ <link rel="shortcut icon" type="image/png" href="{% asset_path favicon.ico %}">
2
+ <link rel="apple-touch-icon" sizes="180x180" href="{% asset_path apple-touch-icon.png %}">
3
+ <link rel="icon" type="image/png" sizes="32x32" href="{% asset_path favicon-32x32.png %}">
4
+ <link rel="icon" type="image/png" sizes="16x16" href="{% asset_path favicon-16x16.png %}">
5
+ <link rel="manifest" href="{% asset_path manifest.json %}">
6
+ <link rel="mask-icon" href="{% asset_path safari-pinned-tab.svg %}" color="#5bbad5">
7
+ <meta name="theme-color" content="#ffffff">
@@ -0,0 +1,3 @@
1
+ <a href="{{ "/" | relative_url }}" class="item">
2
+ <i class="fast backward icon"></i>
3
+ </a>
@@ -0,0 +1,45 @@
1
+ <footer id="footer" class="ui inverted segment">
2
+
3
+ <div class="ui center aligned container">
4
+ <div>
5
+ Theme by
6
+ <a class="item" href="https://github.com/bananaappletw/simplicity/">
7
+ <i class="github icon"></i>
8
+ simplicity
9
+ </a>
10
+ </div>
11
+ <div class="ui inverted divider"></div>
12
+ <div class="ui inverted horizontal divided link list">
13
+ {% if site.facebook %}
14
+ <a class="item" href="{{site.facebook}}">
15
+ <i class="facebook icon"></i>
16
+ Facebook
17
+ </a>
18
+ {% endif %}
19
+ {% if site.github %}
20
+ <a class="item" href="{{ site.github }}">
21
+ <i class="github icon"></i>
22
+ Github
23
+ </a>
24
+ {% endif %}
25
+ {% if site.linkedin%}
26
+ <a class="item" href="{{ site.linkedin }}">
27
+ <i class="linkedin icon"></i>
28
+ Linkedin
29
+ </a>
30
+ {% endif %}
31
+ {% if site.stack_overflow %}
32
+ <a class="item" href="{{ site.stack_overflow }}">
33
+ <i class="stack overflow icon"></i>
34
+ Stack Overflow
35
+ </a>
36
+ {% endif %}
37
+ {% if site.twitter %}
38
+ <a class="item" href="{{ site.twitter }}">
39
+ <i class="twitter icon"></i>
40
+ Twitter
41
+ </a>
42
+ {% endif %}
43
+ </div>
44
+ </div>
45
+ </footer>
@@ -0,0 +1,11 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
11
+
@@ -0,0 +1,17 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8
+
9
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
10
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
11
+
12
+ {% if jekyll.environment == 'production' and site.google_analytics %}
13
+ {% include google-analytics.html %}
14
+ {% endif %}
15
+ {% css simplicity %}
16
+ {% js simplicity %}
17
+ </head>
@@ -0,0 +1,25 @@
1
+ <header id="header" class="ui stackable inverted menu">
2
+ <div class="left menu">
3
+ {% assign default_paths = site.pages | map: "path" %}
4
+ {% assign page_paths = site.header_pages | default: default_paths %}
5
+ <a class="item ui image" href="{{ "/" | relative_url }}">
6
+ </a>
7
+ {% if page_paths %}
8
+ {% for path in page_paths %}
9
+ {% assign my_page = site.pages | where: "path", path | first %}
10
+ {% if my_page.title %}
11
+ <a class="item" href="{{ my_page.url | relative_url }}">
12
+ <i class="{{my_page.icon}} icon"></i>
13
+ {{ my_page.title | escape }}
14
+ </a>
15
+ {% endif %}
16
+ {% endfor %}
17
+ {% endif %}
18
+ </div>
19
+ <div class="right menu">
20
+ <a class="item" href="{{ "/feed.xml" | relative_url }}">
21
+ <i class="rss icon"></i>
22
+ Subscribe
23
+ </a>
24
+ </div>
25
+ </header>
@@ -0,0 +1,3 @@
1
+ <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', paginator.total_pages }}" class="item">
2
+ <i class="fast forward icon"></i>
3
+ </a>
@@ -0,0 +1,3 @@
1
+ <a href="{{ paginator.next_page_path }}" class="item">
2
+ <i class="right arrow icon"></i>
3
+ </a>
@@ -0,0 +1,15 @@
1
+ {% if page == 1 %}
2
+ {% assign page = '' %}
3
+ {% endif %}
4
+ <a href="
5
+ {% if page == 1 %}
6
+ {{ "/" | relative_url }}
7
+ {% else %}
8
+ {{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}
9
+ {% endif %}
10
+ " class="item
11
+ {% if page == paginator.page %}
12
+
13
+ active
14
+ {% endif %}
15
+ ">{{ page }}</a>
@@ -0,0 +1,15 @@
1
+ <nav class="ui pagination menu">
2
+ {% if paginator.previous_page %}
3
+ {% include first_page.html %}
4
+ {% include prev_page.html %}
5
+ {% endif %}
6
+
7
+ {% for page in (1..paginator.total_pages) %}
8
+ {% include page.html %}
9
+ {% endfor %}
10
+
11
+ {% if paginator.next_page %}
12
+ {% include next_page.html %}
13
+ {% include last_page.html %}
14
+ {% endif %}
15
+ </nav>
@@ -0,0 +1,3 @@
1
+ <a href="{{ paginator.previous_page_path }}" class="item">
2
+ <i class="left arrow icon"></i>
3
+ </a>
@@ -0,0 +1,34 @@
1
+ <div class="four wide column">
2
+ <aside class="ui tertiary blue raised segment">
3
+ <h1 class="header">Categories</h1>
4
+ <div class="ui accordion">
5
+ {% for category in site.categories %}
6
+ <div class="title">
7
+ <i class="dropdown icon"></i>
8
+ {{category | first}}
9
+ </div>
10
+ <div class="content">
11
+ <div class="ui list">
12
+ {% for posts in category %}
13
+ {% for post in posts %}
14
+ {% if post.url %}
15
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
16
+ <div class="item">
17
+ <div class="content">
18
+ <a class="header" href="{{ post.url | relative_url }}">
19
+ {{ post.title | escape }}
20
+ </a>
21
+ <div class="right floated">
22
+ {{ post.date | date: date_format }}
23
+ </div>
24
+ </div>
25
+ </div>
26
+ {% endif %}
27
+ {% endfor %}
28
+ {% endfor %}
29
+ </div>
30
+ </div>
31
+ {% endfor %}
32
+ </div>
33
+ </aside>
34
+ </div>
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="ten wide column">
6
+ <article class="ui green raised segment">
7
+ <h1 class="header">Posts</h1>
8
+ <div class="ui items">
9
+ {% for post in paginator.posts %}
10
+ <div class="item">
11
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
12
+ <div class="content">
13
+ <a class="header" href="{{ post.url | relative_url }}">
14
+ {{ post.title | escape }}
15
+ </a>
16
+ <div class="meta">
17
+ {{ post.date | date: date_format }}
18
+ </div>
19
+ </div>
20
+ </div>
21
+ {% endfor %}
22
+ </div>
23
+ {% include paginator.html %}
24
+ </article>
25
+ </div>
26
+
27
+
28
+ <div class="four wide column">
29
+ {% include sidebar.html %}
30
+ </div>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ {% include head.html %}
4
+ <body>
5
+ {% include header.html %}
6
+ <main class="ui centered stackable grid">
7
+ {{ content }}
8
+ </main>
9
+ {% include footer.html %}
10
+ </body>
11
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="fourteen wide column">
5
+ <article class="ui green raised segment">
6
+ <header>
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+ <div class="post-content">
10
+ {{ content }}
11
+ </div>
12
+ </article>
13
+ {% include disqus_comments.html %}
14
+ </div>
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="ten wide column">
5
+ <article class="ui green raised segment">
6
+ <header>
7
+ <h1 class="header">{{ page.title | escape }}</h1>
8
+ <p>
9
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {% if page.author %}
14
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
15
+ {% endif %}</p>
16
+ </header>
17
+
18
+ <div class="ui text">
19
+ {{ content }}
20
+ </div>
21
+
22
+ </article>
23
+ {% include disqus_comments.html %}
24
+ </div>
25
+ <div class="four wide column">
26
+ {% include sidebar.html %}
27
+ </div>
metadata ADDED
@@ -0,0 +1,175 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: security-onigiri
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - bananaappletw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-11-03 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: '3.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-assets
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-coffeescript
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-paginate
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jekyll-feed
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jekyll-sitemap
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bundler
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.12'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.12'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '10.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '10.0'
125
+ description:
126
+ email:
127
+ - bananaappletw@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - LICENSE.txt
133
+ - README.md
134
+ - _includes/disqus_comments.html
135
+ - _includes/favicon.html
136
+ - _includes/first_page.html
137
+ - _includes/footer.html
138
+ - _includes/google-analytics.html
139
+ - _includes/head.html
140
+ - _includes/header.html
141
+ - _includes/last_page.html
142
+ - _includes/next_page.html
143
+ - _includes/page.html
144
+ - _includes/paginator.html
145
+ - _includes/prev_page.html
146
+ - _includes/sidebar.html
147
+ - _layouts/blog.html
148
+ - _layouts/default.html
149
+ - _layouts/page.html
150
+ - _layouts/post.html
151
+ homepage: https://github.com/security-onigiri/security-onigiri
152
+ licenses:
153
+ - MIT
154
+ metadata: {}
155
+ post_install_message:
156
+ rdoc_options: []
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ requirements: []
170
+ rubyforge_project:
171
+ rubygems_version: 2.6.8
172
+ signing_key:
173
+ specification_version: 4
174
+ summary: 'security onigiri: jekyll theme for translated articles'
175
+ test_files: []