jekyll-theme-fica 0.1.0 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c336f5ecd2e1c9f4737212b9c66e9b9b2456261fd2bf791c291a953fe76d6ad
4
- data.tar.gz: 21dac654b8ae31310422b23f1c3ee1cb1a55f917745d9bb56b8dc283594cbe10
3
+ metadata.gz: 1ec04477a6ed001e626c13403d6249d7b135f7cb4eb320b3a6e1f0a671f1e6f6
4
+ data.tar.gz: 653d8463cb6d551d283dc9e9124939fc3ad763a82bba5fe5cd0998ef3c5980b5
5
5
  SHA512:
6
- metadata.gz: 99ac7281cc1eefce49279acd4a376268c1f0656d4e3b341c16916bda66b71b5954aa51e22c7851d43dac77bff1c4682f244d256e24d2f2f855867ff1b20f230a
7
- data.tar.gz: 8c9e9ef14ca106a827ce8574f6473a65739c0ad8abd62eeb7dff2935520d26d36dc6bd2a51993ea839eed28bd9d004d287fdc8d47f13f111b2648c2e47d872a2
6
+ metadata.gz: d5ecbff44f07354e64419f7836c503e9fd368c7cc47fe5828e484792524e8bb0e64e2e6a896dd6d085510f7a305c1f5b7ee1e900724c4dcb0483b5aaaf48d622
7
+ data.tar.gz: 55e35b081aa779887b16eec7ceed95e5b6923be248ebde08e78ff10e2e641c39cb94f0c18ba085391d4ca72ac39d442d6b6f9f3f2283decdd590ab1a6b5e77e5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Involts
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/License.md ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ site-title: Fica Theme License
4
+ permalink: /License/
5
+ ---
6
+
7
+ # The MIT License (MIT)
8
+
9
+ ## Copyright (c) 2022 [Involts](https://github.com/Involts)
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in
19
+ all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,122 @@
1
+ <img src="https://user-images.githubusercontent.com/100028421/160099110-7571a93c-a1a1-4f45-b969-d7f4dccc3b4c.png"/>
2
+
3
+
4
+ You can preview the theme to [see what it looks like](https://involts.github.io/jekyll-theme-fica/) or
5
+ [download it today !](https://github.com/Involts/jekyll-theme-fica/zipball/master)
6
+
7
+ [![Gem Version](https://badge.fury.io/rb/jekyll-theme-fica.svg)](https://badge.fury.io/rb/jekyll-theme-fica)
8
+ ## Installation and first use
9
+
10
+ Add this line to your Jekyll site's `Gemfile`:
11
+
12
+ ```ruby
13
+ gem "jekyll-theme-fica"
14
+ ```
15
+
16
+ And add this line to your Jekyll site's `_config.yml`:
17
+
18
+ ```yaml
19
+ theme: jekyll-theme-fica
20
+ ```
21
+
22
+
23
+ to install all the dependencies:
24
+
25
+ $ script/bootstrap
26
+
27
+ and run, to run your jekyll site:
28
+
29
+ $ script/build
30
+ ## Note:
31
+ Before publishing the site to github-pages, replace the varable of baseurl:
32
+
33
+ if you have brought a doman remove the varable below:
34
+ ```
35
+ # _config.yml
36
+ baseurl: [Your Repository Name]
37
+ ```
38
+ If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header.html`:
39
+
40
+ Before:
41
+ ```
42
+ <div class="trigger">
43
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
44
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
45
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
46
+ </div>
47
+ ```
48
+
49
+ After:
50
+ ```
51
+ <div class="trigger">
52
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
53
+ <a class="page-link" href="{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
54
+ <a class="page-link" href="{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
55
+ </div>
56
+ ```
57
+
58
+
59
+
60
+ # Customizations
61
+
62
+ ## Customizing '_config.yml'
63
+
64
+ Fica Theme will respect the following variables, in your '_config.yml' file:
65
+
66
+ ```
67
+ title: [The title of your site]
68
+ author: [The auther of the site]
69
+ name: [The owner of the site]
70
+ description: [A short description of your site's purpose]
71
+ ```
72
+ Change the links of your site header:
73
+ ```
74
+ header:
75
+ header_name_1: Download
76
+ header_link_1: https://github.com/Involts/jekyll-theme-fica/zipball/master
77
+ header_name_2: Post
78
+ header_link_2: /Post/
79
+ header_name_3: About
80
+ header_link_3: /About/
81
+ ```
82
+ ## Customizing the Styles, Vriables and Color Scheme:
83
+ if you like to override the default styles of the theme, go to '_sass/Custom-Styles.scss'.
84
+
85
+ if you like to override the default Variables of the theme, go to '_sass/Custom-Variable.scss'.
86
+
87
+ if you like to change the colors of the site, go to '_sass/Color_scheme.scss'.
88
+
89
+
90
+ ## How to replace the logo on the header ?
91
+
92
+ Replace logo.png at the top of your site.
93
+ Make sure that the logo is 16x16 px to avoid overlapping the title.
94
+
95
+ ## how to replace the pictue at the homepage ?
96
+
97
+ Replace 'assets/img/fica_ad.png'.
98
+ # Customizing Google Analytics code
99
+
100
+ Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into _includes/Google-Analytics.html in your Jekyll site.
101
+
102
+ ## Contributing
103
+
104
+ Interested in contributing to Fica Theme? We'd love your help. Fica Theme is an open source project, built one contribution at a time by users like you. See [the contributing file](docs/contributing.md) for instructions on how to contribute.
105
+
106
+ ### Previewing the theme locally
107
+
108
+ If you'd like to preview the theme locally (for example, in the process of proposing a change):
109
+
110
+ 1. Clone down the theme's repository (`git clone https://github.com/Involts/jekyll-theme-fica`)
111
+ 2. `cd` into the theme's directory
112
+ 3. Run `script/bootstrap` to install the necessary dependencies
113
+ 4. Run `script/bootstrap` to start the preview server
114
+ 5. Visit [`localhost:4000`](http://localhost:4000) or [`localhost:4000/jekyll-theme-fica`](http://localhost:4000/jekyll-theme-fica) in your browser to preview the theme
115
+
116
+ ### Running tests
117
+
118
+ The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/build`. You'll need to run `script/bootstrap` once before the test script will work.
119
+ ## License
120
+
121
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
122
+
@@ -0,0 +1,9 @@
1
+ <!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
2
+
3
+ <!-- Setup Google Analytics -->
4
+ {% include google-analytics.html %}
5
+
6
+ <!-- You can set your favicon here -->
7
+ <!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
8
+
9
+ <!-- end custom head snippets -->
@@ -0,0 +1,72 @@
1
+ <footer class="site-footer h-card">
2
+ <data class="u-url" href="{{ "{{site.baseurl}}/" | relative_url }}"></data>
3
+ <div class="wrapper">
4
+
5
+ <div class="footer-col-wrapper">
6
+
7
+ <div class="footer-col">
8
+ <li class="Links_footer">
9
+ </svg><span>find me on</span>
10
+ </a>
11
+ </li>
12
+ <li class="Links_footer">
13
+ <a href="https://github.com/Involts">
14
+ <svg class="svg-icon github">
15
+ <use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
16
+ </svg><span>Github</span>
17
+ </a>
18
+ </li>
19
+ <li class="Links_footer">
20
+ <a href="/">
21
+ <svg class="svg-icon youtube">
22
+ <use xlink:href="{{ 'assets/fica-icons.svg#youtube' | relative_url }}"></use>
23
+ </svg><span>Youtube</span>
24
+ </a>
25
+ </li>
26
+ <li class="Links_footer">
27
+ <a href="/">
28
+ <svg class="svg-icon stackoverflow">
29
+ <use xlink:href="{{ 'assets/fica-icons.svg#stackoverflow' | relative_url }}"></use>
30
+ </svg>Stackoverflow</span>
31
+ </a>
32
+ </li>
33
+ </div>
34
+
35
+ <div class="footer-middle">
36
+ <li class="Links_footer">
37
+ </svg><span>You're site</span>
38
+ </a>
39
+ </li>
40
+ <li class="Links_footer">
41
+ <a
42
+ href="/">
43
+ <svg class="svg-icon github">
44
+ <use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
45
+ </svg><span>sit amet</span>
46
+ </a>
47
+ </li>
48
+ <li class="Links_footer">
49
+ <a href="/">
50
+ <svg class="svg-icon github">
51
+ <use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
52
+ </svg><span>consectetur</span>
53
+ </a>
54
+ </li>
55
+ <li class="Links_footer">
56
+ <a href="/">
57
+ <svg class="svg-icon github">
58
+ <use xlink:href="{{ 'assets/fica-icons.svg#github' | relative_url }}"></use>
59
+ </svg><span>ipsum</span>
60
+ </a>
61
+ </li>
62
+
63
+ </div>
64
+ <div class="footer-last">
65
+ <li class="Product_footer">{{site.title}}</li>
66
+ <li class="Product_footer">{{site.description}}</li>
67
+ </div>
68
+ </div>
69
+ </div>
70
+
71
+ </footer>
72
+
@@ -0,0 +1,10 @@
1
+ {% if site.google_analytics %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,11 @@
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
+ <link rel="stylesheet" href="{{ "/assets/css/Styles.css" | relative_url }}">
6
+ {%- if page.home-%}
7
+ <title>{{page.site-title}}</title>
8
+ {%- endif -%}
9
+ <title>{{page.site-title}} | {{site.title}}</title>
10
+ {% include Google-Analytics.html %}
11
+ </head>
@@ -0,0 +1,28 @@
1
+ <header class="site-header">
2
+ <data class="u-url" href="{{ "{{site.baseurl}}/" | relative_url }}"></data>
3
+ {%- assign default_paths = site.pages | map: "path" -%}
4
+ <div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
5
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
6
+ <label for="nav-trigger">
7
+ <span class="menu-icon">
8
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
9
+ <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
10
+ </svg>
11
+ </span>
12
+ </label>
13
+ <div class="trigger">
14
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
15
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
16
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
17
+ </div>
18
+ </nav></div>
19
+ <div class="trigger">
20
+ {%- for path in page_paths -%}
21
+ {%- assign my_page = site.pages | where: "path", path | first -%}
22
+ {%- if my_page.title -%}
23
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24
+ {%- endif -%}
25
+ {%- endfor -%}
26
+ </div>
27
+ </nav>
28
+ </header>
@@ -0,0 +1,13 @@
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="page-content" aria-label="Content">
7
+ <div class="wrapper">
8
+ {{ content }}
9
+ </div>
10
+ </main>
11
+ {% include Footer.html %}
12
+ </body>
13
+ </html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {%- include Head.html -%}
4
+
5
+ <body>
6
+ {%- include Header.html -%}
7
+ <header class="page-header" role="banner">
8
+ <div class="wrapper">
9
+ <p class="page-header-title">{{site.title}}</p>
10
+ <p class="page-header-description">{{site.description}}</p>
11
+ <img src="{{site.baseurl}}/assets/img/fica_ad.png" class="header-pic">
12
+ </div>
13
+ </header>
14
+ <main class="page-content" aria-label="Content">
15
+ <div class="wrapper">
16
+ {{ content }}
17
+ </div>
18
+ </main>
19
+ {%- include Footer.html -%}
20
+ </body>
21
+
22
+ </html>
@@ -0,0 +1,13 @@
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="page-content" aria-label="Content">
7
+ <div class="wrapper">
8
+ {{ content }}
9
+ </div>
10
+ </main>
11
+ {% include Footer.html %}
12
+ </body>
13
+ </html>
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {%- if page.modified_date -%}
14
+ ~
15
+ {%- assign mdate = page.modified_date | date_to_xmlschema -%}
16
+ <time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
17
+ {{ mdate | date: date_format }}
18
+ </time>
19
+ {%- endif -%}
20
+ {%- if page.author -%}
21
+ • {% for author in page.author %}
22
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
23
+ <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
24
+ {%- if forloop.last == false %}, {% endif -%}
25
+ {% endfor %}
26
+ {%- endif -%}</p>
27
+ <a href="{{site.baseurl}}/Post/" class="btn">Go Back</a>
28
+ </header>
29
+ <div class="post-content e-content" itemprop="articleBody">
30
+ {{ content }}
31
+
32
+
33
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
34
+ </article>
@@ -0,0 +1,56 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="home">
5
+ <h1>Posts</h1>
6
+ {{ content }}
7
+
8
+
9
+
10
+ {%- if site.paginate -%}
11
+ {% assign posts = paginator.posts %}
12
+ {% else %}
13
+ {% assign posts = site.posts %}
14
+ {% endif %}
15
+
16
+
17
+ {%- if posts.size > 0 -%}
18
+ {%- if page.list_title -%}
19
+ <h2 class="post-list-heading">{{ page.list_title }}</h2>
20
+ {%- endif -%}
21
+ <ul class="post-list">
22
+ {%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
23
+ {%- for post in posts -%}
24
+ <li>
25
+ <h3>
26
+ <a class="post-link" href="{{ post.url | relative_url }}">
27
+ {{ post.title | escape }}
28
+ </a>
29
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
30
+ </h3>
31
+ {%- if site.show_descriptions -%}
32
+ {{ post.excerpt }}
33
+ {%- endif -%}
34
+ </li>
35
+ {%- endfor -%}
36
+ </ul>
37
+
38
+ {%- if site.paginate -%}
39
+ <div class="pager">
40
+ <ul class="pagination">
41
+ {%- if paginator.previous_page %}
42
+ <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
43
+ {%- else %}
44
+ <li><div class="pager-edge">•</div></li>
45
+ {%- endif %}
46
+ <li><div class="current-page">{{ paginator.page }}</div></li>
47
+ {%- if paginator.next_page %}
48
+ <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
49
+ {%- else %}
50
+ <li><div class="pager-edge">•</div></li>
51
+ {%- endif %}
52
+ </ul>
53
+ </div>
54
+ {%- endif %}
55
+
56
+ {%- endif -%}