plaintro 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f1fdee0a2656766630629e9455a7551f4b4546dabd814ab8d95ff1ec85d5db84
4
+ data.tar.gz: d4673e31b30d947b9590efafba2ff6cb4ef9d87e8023294b18f590d36160cc2f
5
+ SHA512:
6
+ metadata.gz: 96009b1f65fafaaa0ee63726211ba204ad1c2d9816dc9d220ff33fe4992b678dcfc716df96a6ff93c3a056234f8da10777893c9e61f67f7a83b8ef94ea5ec006
7
+ data.tar.gz: 8c4efe68684e82b70015175198aca721e2d41d326f6d617c2d4986b466f7b762b2441b16be79fad6daed7ea499e893b145dc5ed845b61e4a25f972d2be98d205
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020-2021 Chia-Yu Chou
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
+ # Plaintro
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 "plaintro"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: plaintro
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install plaintro
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 `plaintro.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
+
data/_config.yml ADDED
@@ -0,0 +1,62 @@
1
+ # Site configuration
2
+
3
+ title: 'Your Title Here'
4
+ author: 'Author Name Here'
5
+
6
+ # Starting year shown in the footer
7
+ # i.e. Copyright [start_year]-[this_year]
8
+ #
9
+ # if you only want to show this year, edit this value to blank.
10
+ # i.e. Copyright [this_year]
11
+ start_year: 2020
12
+
13
+ # Pagination setup
14
+ paginate: 4
15
+ paginate_path: "/blog/page:num/"
16
+
17
+ # Custom blog post file path
18
+ permalink: /blog/:year/:title.html
19
+
20
+ # Custom path to blog archive
21
+ # (feed is auto-generated at url/feed.xml through jekyll-feed)
22
+ blog:
23
+ archive: '/blog/archive.html'
24
+ feed: '/feed.xml'
25
+
26
+ # Default website url
27
+ url: https://xh5a5n6k6.github.io/plaintro
28
+ # Page title will link to defualt_url
29
+ default_url: '/'
30
+
31
+ # Menu pages shown in the top-navigation
32
+ #
33
+ # it's recommended to use up to five pages.
34
+ menu:
35
+ - {name: 'Home', url: '/'}
36
+
37
+ # If using blog page, url MUST match paginate_path
38
+ # set above
39
+ - {name: 'Blog', url: '/blog/'}
40
+ - {name: 'Portfolio', url: '/portfolio/'}
41
+ - {name: 'Resume', url: '/resume.html'}
42
+
43
+ # Social icons shown in the top-navigation
44
+ #
45
+ # it's recommended to use up to four icons.
46
+ #
47
+ # social icons are powered by Font Awesome
48
+ # more icons can be found there: https://fontawesome.com/
49
+ social:
50
+ - {icon: 'github-square', link: 'https://www.github.com/xh5a5n6k6/'}
51
+ - {icon: 'vimeo-square', link: 'https://vimeo.com/user108255640/'}
52
+ - {icon: 'twitter-square', link: 'https://twitter.com/xh5a5n6k6/'}
53
+ - {icon: 'linkedin', link: 'https://www.linkedin.com/in/chiayu-hank-chou/'}
54
+
55
+
56
+
57
+
58
+ # Plugins used in plaintro theme
59
+ plugins:
60
+ - jekyll-paginate
61
+ - jekyll-seo-tag
62
+ - jekyll-feed
@@ -0,0 +1,7 @@
1
+ <div class="site-footer-content">
2
+ {% if site.start_year %}
3
+ <p class="site-footer-p">Copyright &copy; {{ site.start_year }}-{{ site.time | date: '%Y' }} {{ site.author }} | Jekyll theme <a href="https://github.com/xh5a5n6k6/plaintro/">plaintro</a> by <a href="https://xh5a5n6k6.github.io/">Chia-Yu Chou</a></p>
4
+ {% else %}
5
+ <p class="site-footer-p">Copyright &copy; {{ site.time | date: '%Y' }} {{ site.author }} | Jekyll theme <a href="https://github.com/xh5a5n6k6/plaintro/">plaintro</a> by <a href="https://xh5a5n6k6.github.io/">Chia-Yu Chou</a></p>
6
+ {% endif %}
7
+ </div>
@@ -0,0 +1,30 @@
1
+ <!-------------------------------------
2
+ Setup title
3
+ -------------------------------------->
4
+ <title>
5
+ {{ page.title }} | {{ site.title }}
6
+ </title>
7
+
8
+ <!-------------------------------------
9
+ Setup metadata
10
+ -------------------------------------->
11
+ <meta charset="utf-8">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
13
+
14
+ {% seo %}
15
+ {% feed_meta %}
16
+
17
+ <!-------------------------------------
18
+ Link icons powered by Font Awesome
19
+ -------------------------------------->
20
+ <link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.7/css/all.css">
21
+
22
+ <!-------------------------------------
23
+ Link stylesheet css
24
+ -------------------------------------->
25
+ <link rel="stylesheet" href="/assets/css/stylesheet.css">
26
+
27
+ <!-------------------------------------
28
+ Link font css
29
+ -------------------------------------->
30
+ <link rel="stylesheet" href="/assets/font/style.css">
@@ -0,0 +1,3 @@
1
+ <div class="site-header-content">
2
+ <a href="{{ site.default_url }}">{{ site.title }}</a>
3
+ </div>
@@ -0,0 +1,2 @@
1
+ <h1 class="site-paragraph-title">{{ include.title }}</h1>
2
+ <hr>
@@ -0,0 +1,12 @@
1
+ <div class="site-portfolio-section">
2
+ <div class="site-portfolio-thumbnail">
3
+ <a href="{{ include.url }}"><img src="{{ include.image }}"></img></a>
4
+ </div>
5
+ <div class="site-portfolio-content">
6
+ {% capture description %}
7
+ {% include {{ include.description }} %}
8
+ {% endcapture %}
9
+
10
+ {{ description | markdownify }}
11
+ </div>
12
+ </div>
@@ -0,0 +1,6 @@
1
+
2
+ # [Project A with h1 Tag](/portfolio/project-a.html)
3
+
4
+ Describe what Project A is.
5
+
6
+ You can describe when and why you developed this project.
@@ -0,0 +1,16 @@
1
+ <div class="site-topnav-content">
2
+ <nav class="site-menu">
3
+ {% for item in site.menu %}
4
+ {% if item == site.menu.last %}
5
+ <a href="{{ item.url }}">{{ item.name }}</a>
6
+ {% else %}
7
+ <a href="{{ item.url }}">{{ item.name }}</a> |
8
+ {% endif %}
9
+ {% endfor %}
10
+ </nav>
11
+ <nav class="site-social">
12
+ {% for item in site.social %}
13
+ <a href="{{ item.link }}" target="_blank"><i class="fab fa-{{ item.icon }}" aria-hidden="true"></i></a>
14
+ {% endfor %}
15
+ </nav>
16
+ </div>
@@ -0,0 +1,29 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>Archive</h1>
6
+
7
+ {% assign posts = site.posts%}
8
+ {% for post in posts %}
9
+ {% if post == posts[0] %}
10
+ <h1 class="site-blog-post-title">{{ post.date | date: "%Y" }}</h1>
11
+ <hr>
12
+ {% else %}
13
+ {% comment %}
14
+ Tricky part here, the post order in posts is reverse,
15
+ but post.next points to 'actual' next post in forward order
16
+ {% endcomment %}
17
+
18
+ {% assign previous_year = post.next.date | date: "%Y" %}
19
+ {% assign current_year = post.date | date: "%Y" %}
20
+ {% if current_year != previous_year %}
21
+ <h1 class="site-blog-post-title">{{ current_year }}</h1>
22
+ <hr>
23
+ {% endif %}
24
+ {% endif %}
25
+
26
+ <p class="site-blog-archive">
27
+ {{ post.date | date: "%b %-d" }} | <a href="{{ post.url }}">{{ post.title }}</a>
28
+ </p>
29
+ {% endfor %}
@@ -0,0 +1,56 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>
6
+ <nav class="site-blog-title-left">
7
+ Blog
8
+ </nav>
9
+ <nav class="site-blog-title-right">
10
+ <a href="{{ site.blog.archive }}">Archive</a> | <a href="{{ site.blog.feed }}">Feed</a>
11
+ </nav>
12
+ </h1>
13
+
14
+ {% if paginator.total_pages > 0 %}
15
+ {% assign posts = paginator.posts %}
16
+ {% for post in posts %}
17
+ <h1 class="site-blog-post-title">
18
+ <a href="{{ post.url }}">{{ post.title }}</a>
19
+ </h1>
20
+ <p class="site-post-metadata">
21
+ {{ post.date | date: "%b %-d, %Y" }} | by {{ post.author }} | Tags:
22
+
23
+ {% for tag in post.tags %}
24
+ {% if tag == post.tags.last %}
25
+ {{ tag }}
26
+ {% else %}
27
+ {{ tag }},
28
+ {% endif %}
29
+ {% endfor %}
30
+ </p>
31
+
32
+ <hr>
33
+ {% endfor %}
34
+
35
+ <div class="site-blog-pagination">
36
+ <nav class="site-blog-page-number">
37
+ Page {{ paginator.page }} of {{ paginator.total_pages }}
38
+ </nav>
39
+
40
+ {% if paginator.previous_page %}
41
+ <nav class="site-blog-previous">
42
+ <a href="{{ paginator.previous_page_path }}">
43
+ ≪ Newer Posts
44
+ </a>
45
+ </nav>
46
+ {% endif %}
47
+
48
+ {% if paginator.next_page %}
49
+ <nav class="site-blog-next">
50
+ <a href="{{ paginator.next_page_path }}">
51
+ Older Posts ≫
52
+ </a>
53
+ </nav>
54
+ {% endif %}
55
+ </div>
56
+ {% endif %}
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ {% include head.html %}
5
+ </head>
6
+
7
+ <body>
8
+ <div class="site-wrapper">
9
+ <header class="site-header">
10
+ {% include header.html %}
11
+ </header>
12
+
13
+ <nav class="site-topnav">
14
+ {% include topnav.html %}
15
+ </nav>
16
+
17
+ <div class="site-content">
18
+ {{ content }}
19
+ </div>
20
+
21
+ <footer class="site-footer">
22
+ {% include footer.html %}
23
+ </footer>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>Portfolio</h1>
6
+
7
+ {{ content }}
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1 class="site-post-title">{{ page.title }}</h1>
6
+ <p class="site-post-metadata">
7
+ {{ page.date | date: "%b %-d, %Y" }} | by {{ page.author }} | Tags:
8
+
9
+ {% for tag in page.tags %}
10
+ {% if tag == page.tags.last %}
11
+ {{ tag }}
12
+ {% else %}
13
+ {{ tag }},
14
+ {% endif %}
15
+ {% endfor %}
16
+ </p>
17
+
18
+ <hr>
19
+
20
+ {{ content }}
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>Resume</h1>
6
+
7
+ <div class="site-resume">
8
+ {{ content }}
9
+ </div>
@@ -0,0 +1,69 @@
1
+
2
+ /**
3
+ * Using the same syntax highlight used in minima Jekyll theme with classic skin
4
+ *
5
+ * Reference:
6
+ * https://github.com/jekyll/minima/blob/master/_sass/minima/skins/classic.scss
7
+ */
8
+
9
+ .highlight {
10
+ .c { color: #998; font-style: italic } // Comment
11
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
12
+ .k { font-weight: bold } // Keyword
13
+ .o { font-weight: bold } // Operator
14
+ .cm { color: #998; font-style: italic } // Comment.Multiline
15
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
16
+ .c1 { color: #998; font-style: italic } // Comment.Single
17
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
18
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
19
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
20
+ .ge { font-style: italic } // Generic.Emph
21
+ .gr { color: #a00 } // Generic.Error
22
+ .gh { color: #999 } // Generic.Heading
23
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
24
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
25
+ .go { color: #888 } // Generic.Output
26
+ .gp { color: #555 } // Generic.Prompt
27
+ .gs { font-weight: bold } // Generic.Strong
28
+ .gu { color: #aaa } // Generic.Subheading
29
+ .gt { color: #a00 } // Generic.Traceback
30
+ .kc { font-weight: bold } // Keyword.Constant
31
+ .kd { font-weight: bold } // Keyword.Declaration
32
+ .kp { font-weight: bold } // Keyword.Pseudo
33
+ .kr { font-weight: bold } // Keyword.Reserved
34
+ .kt { color: #458; font-weight: bold } // Keyword.Type
35
+ .m { color: #099 } // Literal.Number
36
+ .s { color: #d14 } // Literal.String
37
+ .na { color: #008080 } // Name.Attribute
38
+ .nb { color: #0086B3 } // Name.Builtin
39
+ .nc { color: #458; font-weight: bold } // Name.Class
40
+ .no { color: #008080 } // Name.Constant
41
+ .ni { color: #800080 } // Name.Entity
42
+ .ne { color: #900; font-weight: bold } // Name.Exception
43
+ .nf { color: #900; font-weight: bold } // Name.Function
44
+ .nn { color: #555 } // Name.Namespace
45
+ .nt { color: #000080 } // Name.Tag
46
+ .nv { color: #008080 } // Name.Variable
47
+ .ow { font-weight: bold } // Operator.Word
48
+ .w { color: #bbb } // Text.Whitespace
49
+ .mf { color: #099 } // Literal.Number.Float
50
+ .mh { color: #099 } // Literal.Number.Hex
51
+ .mi { color: #099 } // Literal.Number.Integer
52
+ .mo { color: #099 } // Literal.Number.Oct
53
+ .sb { color: #d14 } // Literal.String.Backtick
54
+ .sc { color: #d14 } // Literal.String.Char
55
+ .sd { color: #d14 } // Literal.String.Doc
56
+ .s2 { color: #d14 } // Literal.String.Double
57
+ .se { color: #d14 } // Literal.String.Escape
58
+ .sh { color: #d14 } // Literal.String.Heredoc
59
+ .si { color: #d14 } // Literal.String.Interpol
60
+ .sx { color: #d14 } // Literal.String.Other
61
+ .sr { color: #009926 } // Literal.String.Regex
62
+ .s1 { color: #d14 } // Literal.String.Single
63
+ .ss { color: #990073 } // Literal.String.Symbol
64
+ .bp { color: #999 } // Name.Builtin.Pseudo
65
+ .vc { color: #008080 } // Name.Variable.Class
66
+ .vg { color: #008080 } // Name.Variable.Global
67
+ .vi { color: #008080 } // Name.Variable.Instance
68
+ .il { color: #099 } // Literal.Number.Integer.Long
69
+ }