jekyll-theme-fica 0.1.2 → 0.1.5

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: 22d3ef716ca6e5badb776ad02fade07c0f2dfee8c5e2a916614d47636f0971f0
4
- data.tar.gz: 5b4cf1c8562afddcfb734ab3550687b6b598f92da278e67fbd3bedaac5e6aed9
3
+ metadata.gz: 694089c011995f8ed477a3369ec936642a0adf7ee939d285adcf908206b4d484
4
+ data.tar.gz: 3c47e2fbc0b51f2be2fabdabd00533cdcba4b4f396f12c68de2317a15e148fe1
5
5
  SHA512:
6
- metadata.gz: 72376230cac700d01bb2e833599a38a3f8545b1c22c137e6b5d800ac7614b77def3ed0f74a2a8700078cb521e725b459b0f384fc28663756d874086966ffd052
7
- data.tar.gz: 7717018c3f26f620548fe41b82f44f8e213f0678e8a4ff1df6ac602966cc0f8eac9fa704c0788dd45f6ff28e65382e5d9df5e03b9c5fc07fec293440c6c3809e
6
+ metadata.gz: 6dd4aad6bbb015043784b0056367cee24e25a6121f2d03951e07e1ee89c2742d1da37236704ad7c6e3906dc871899b5e6e96046f52420525fb694830746b6a4e
7
+ data.tar.gz: 63624b586cda01eb3dd32e17dd28f44ea83fc7e5e94f50fbb1a82b51905a0c1b7224322d21f1489de8eee0a363548669af95280daf7900a1c0933b3745671242
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 CHANGED
@@ -1,8 +1,9 @@
1
- <img src="logo.png" align="left" />
2
- <h1 align="left">Fica Theme</h1>
1
+ <img src="https://user-images.githubusercontent.com/100028421/160099110-7571a93c-a1a1-4f45-b969-d7f4dccc3b4c.png"/>
3
2
 
4
3
  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)
4
+ [download it today!](https://github.com/Involts/jekyll-theme-fica/zipball/master)
5
+
6
+ [![Gem Version](https://badge.fury.io/rb/jekyll-theme-fica.svg)](https://badge.fury.io/rb/jekyll-theme-fica)
6
7
 
7
8
  ## Installation and first use
8
9
 
@@ -15,30 +16,66 @@ gem "jekyll-theme-fica"
15
16
  And add this line to your Jekyll site's `_config.yml`:
16
17
 
17
18
  ```yaml
19
+ # if you run it locally:
18
20
  theme: jekyll-theme-fica
19
- ```
20
21
 
22
+ # if you using GitHub-Pages:
23
+ remote_theme: Involts/jekyll-theme-fica
24
+ ```
21
25
  to install all the dependencies:
22
-
26
+ ```
23
27
  $ script/bootstrap
24
-
28
+ ```
29
+ or
30
+ ```
31
+ $ bundle install
32
+ ```
25
33
  and run, to run your jekyll site:
26
-
34
+ ```
27
35
  $ script/build
36
+ ```
37
+ or
38
+ ```
39
+ $ bundle exec jekyll serve
40
+ ```
28
41
  ## Note:
29
- Before publishing the site to github-pages, replace the varable of baseurl:
30
42
 
31
- if you have brought a doman remove the varable below:
32
- ```
33
- # _config.yml
34
- baseurl: [Your Repository Name]
35
- ```
43
+ Before publishing the site to github-pages, replace the varable of baseurl:
44
+
45
+ if you have brought a doman remove the varable below:
46
+
47
+ ```
48
+ # _config.yml
49
+ baseurl: /jekyll-fica-theme
50
+ ```
51
+
52
+ If you want to create a external link in the headers Links remove `{{site.baseurl}}` on `_includes/Header.html`:
53
+
54
+ Before:
55
+
56
+ ```
57
+ <div class="trigger">
58
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
59
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
60
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
61
+ </div>
62
+ ```
63
+
64
+ After:
65
+
66
+ ```
67
+ <div class="trigger">
68
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
69
+ <a class="page-link" href="{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
70
+ <a class="page-link" href="{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
71
+ </div>
72
+ ```
36
73
 
37
74
  # Customizations
38
75
 
39
- ## Customizing '_config.yml'
76
+ ## Customizing `_config.yml`
40
77
 
41
- Cayman will respect the following variables, in your '_config.yml' file:
78
+ Fica Theme will respect the following variables, in your `_config.yml` file:
42
79
 
43
80
  ```
44
81
  title: [The title of your site]
@@ -46,7 +83,9 @@ author: [The auther of the site]
46
83
  name: [The owner of the site]
47
84
  description: [A short description of your site's purpose]
48
85
  ```
86
+
49
87
  Change the links of your site header:
88
+
50
89
  ```
51
90
  header:
52
91
  header_name_1: Download
@@ -56,34 +95,48 @@ header:
56
95
  header_name_3: About
57
96
  header_link_3: /About/
58
97
  ```
98
+
59
99
  ## Customizing the Styles, Vriables and Color Scheme:
60
- if you like to override the default styles of the theme, go to '_sass/Custom-Styles.scss'.
61
- if you like to override the default Variables of the theme, go to '_sass/Custom-Variable.scss'.
62
- if you like to change the colors of the site, go to '_sass/Color_scheme.scss'.
63
100
 
101
+ if you like to override the default styles of the theme, go to `_sass/Custom-Styles.scss`.
64
102
 
103
+ if you like to override the default Variables of the theme, go to `_sass/Custom-Variable.scss`.
104
+
105
+ if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/Dark_Theme.scss`.
106
+
107
+ if you like to change the colors of the Light Theme in the site, go to `_sass/themes/Light_Theme.scss`.
108
+
109
+ Want to change [the themes?](#how-to-change-dark-mode-to-light-mode)
65
110
  ## How to replace the logo on the header ?
66
111
 
67
112
  Replace logo.png at the top of your site.
68
- Make sure that the logo is 16x16 px to avoid overlapping the title.
113
+ Make sure that the logo is 16x16 px to avoid overlapping the title.
69
114
 
70
115
  ## how to replace the pictue at the homepage ?
71
116
 
72
- Replace 'assets/img/fica_ad.png'.
117
+ Replace `assets/img/fica_ad.png`
73
118
  # Customizing Google Analytics code
74
119
 
75
- 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.
120
+ 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.
121
+
122
+ ## Contributing
76
123
 
77
- # Contributing
124
+ 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.
78
125
 
79
- Bug reports and pull requests are welcome on GitHub at [Fica Theme](https://github.com/Involts/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.
126
+ ### Previewing the theme locally
80
127
 
81
- # Development
128
+ If you'd like to preview the theme locally (for example, in the process of proposing a change):
82
129
 
83
- To set up your environment to develop this theme, run `script/bootstrap`.
130
+ 1. Clone down the theme's repository (`git clone https://github.com/Involts/jekyll-theme-fica`)
131
+ 2. `cd` into the theme's directory
132
+ 3. Run `script/bootstrap` to install the necessary dependencies
133
+ 4. Run `script/bootstrap` to start the preview server
134
+ 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
135
+
136
+ ### Running tests
137
+
138
+ 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.
84
139
 
85
- Your theme is setup just like a normal Jekyll site! To test your theme, run `script/build` and open your browser at `http://localhost:4000/jekyll-theme-fica/` or 'http://localhost:4000(site.baseurl)'. This starts a Jekyll server using the Fica 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.
86
140
  ## License
87
141
 
88
142
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
89
-
@@ -11,7 +11,7 @@
11
11
  </span>
12
12
  </label>
13
13
  <div class="trigger">
14
- <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
14
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
15
15
  <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
16
16
  <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
17
17
  </div>
data/_layouts/home.html CHANGED
@@ -3,7 +3,33 @@
3
3
  {%- include Head.html -%}
4
4
 
5
5
  <body>
6
- {%- include Header.html -%}
6
+ <header class="site-header-home">
7
+ {%- assign default_paths = site.pages | map: "path" -%}
8
+ <div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
9
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
10
+ <label for="nav-trigger">
11
+ <span class="menu-icon">
12
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
13
+ <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"/>
14
+ </svg>
15
+ </span>
16
+ </label>
17
+ <div class="trigger">
18
+ <a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
19
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
20
+ <a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
21
+ </div>
22
+ </nav></div>
23
+ <div class="trigger">
24
+ {%- for path in page_paths -%}
25
+ {%- assign my_page = site.pages | where: "path", path | first -%}
26
+ {%- if my_page.title -%}
27
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ </div>
31
+ </nav>
32
+ </header>
7
33
  <header class="page-header" role="banner">
8
34
  <div class="wrapper">
9
35
  <p class="page-header-title">{{site.title}}</p>
@@ -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>
data/_layouts/post.html CHANGED
@@ -1,34 +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>
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>
@@ -2,13 +2,10 @@
2
2
  layout: default
3
3
  ---
4
4
  <div class="home">
5
- {%- if page.title -%}
6
- <h1 class="page-heading">{{ page.title }}</h1>
7
- {%- endif -%}
8
-
5
+ <h1>Posts</h1>
9
6
  {{ content }}
10
7
 
11
- <h1>Posts</h1>
8
+
12
9
 
13
10
  {%- if site.paginate -%}
14
11
  {% assign posts = paginator.posts %}