jekyll-theme-fica 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +27 -0
- data/404.html +16 -0
- data/License.md +2 -0
- data/README.md +31 -13
- data/_includes/BTT.html +9 -0
- data/_includes/Google-Analytics.html +11 -10
- data/_includes/Head.html +5 -4
- data/_includes/Header.html +14 -19
- data/_layouts/default.html +12 -11
- data/_layouts/home.html +39 -36
- data/_layouts/page.html +1 -0
- data/_layouts/post.html +40 -23
- data/_layouts/post_home.html +72 -47
- data/_posts/2022-03-31-To-Know-if-the-nav-works.md +8 -0
- data/_posts/2022-04-1-Demo.md +114 -0
- data/_posts/2022-04-5-Getting-Started.md +103 -0
- data/_posts/2022-04-6-Creating-a-new-post.md +124 -0
- data/_sass/custom/styles.scss +1 -0
- data/_sass/custom/variables.scss +1 -0
- data/_sass/jekyll-theme-fica.scss +7 -0
- data/_sass/layouts/base.scss +573 -0
- data/_sass/layouts/layout.scss +676 -0
- data/_sass/layouts/variables.scss +89 -0
- data/_sass/themes/dark theme/highlight.scss +363 -0
- data/_sass/themes/dark theme/theme-dark.scss +135 -0
- data/_sass/themes/{Light_Theme.scss → light theme/highlight.scss } +8 -65
- data/_sass/themes/light theme/theme-light.scss +132 -0
- data/assets/404.svg +22 -0
- data/assets/css/Style.scss +42 -0
- data/assets/css/fica-icons.svg +68 -0
- data/assets/fica-icons.svg +12 -2
- data/bin/build +7 -0
- data/bin/server +7 -0
- data/docs/contributing.md +69 -0
- data/js/back-to-top.js +48 -0
- data/post/index.html +4 -0
- metadata +41 -10
- data/_sass/Base.scss +0 -401
- data/_sass/Custom-Styles.scss +0 -2
- data/_sass/Custom-Variables.scss +0 -1
- data/_sass/Initialize.scss +0 -71
- data/_sass/Layout.scss +0 -474
- data/_sass/themes/Dark_Theme.scss +0 -269
- data/assets/css/Styles.scss +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a12ee76fc793fdd77b2fa48c2499ede1634b11eb2cd7b1cddde1b64af427e395
|
4
|
+
data.tar.gz: 7316e301619255ac34ff9c5808fa3b87fbb884f3b49a85631dd3e431a36258a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7052eef6cf989acd97d6c19223a1dde48346c64f9604b7439947fa92ba7937de65391e8d5ec76c7df6419307781330799604d77539ac4d645ca0639ef77366d0
|
7
|
+
data.tar.gz: bd0080615fb02717033c278031cd493445e9feabf891596801ff4fbd66f00feb0930906098b6e1f4d6314a991eb1beb22e18a49aa478bd9de11fa068948d19ad
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: Working on it...
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- master
|
6
|
+
pull_request:
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: "Test with Jekyll ${{ matrix.jekyll }}"
|
12
|
+
runs-on: "ubuntu-latest"
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
jekyll: ["~> 3.9", "~> 4.2"]
|
16
|
+
env:
|
17
|
+
JEKYLL_VERSION: ${{ matrix.jekyll }}
|
18
|
+
steps:
|
19
|
+
- name: Checkout Repository
|
20
|
+
uses: actions/checkout@v2
|
21
|
+
- name: Set Up Ruby 2.7
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: 2.7
|
25
|
+
bundler-cache: true
|
26
|
+
- name: Run checks
|
27
|
+
run: bin/gp-load
|
data/404.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
permalink: /404.html
|
4
|
+
site-title: Page not found
|
5
|
+
---
|
6
|
+
|
7
|
+
<div class="container">
|
8
|
+
<svg>
|
9
|
+
<use xlink:href="{{ 'assets/404.svg#404_error' | relative_url }}"></use>
|
10
|
+
</svg>
|
11
|
+
<h1>Whoops!</h1>
|
12
|
+
<p>It seems like we couldn't</p>
|
13
|
+
<p>find the page you were</p>
|
14
|
+
<p>looking for</p>
|
15
|
+
<a class="btn-error" href="{{site.baseurl}}/">Home</a>
|
16
|
+
</div>
|
data/License.md
CHANGED
data/README.md
CHANGED
@@ -24,15 +24,20 @@ remote_theme: Involts/jekyll-theme-fica
|
|
24
24
|
```
|
25
25
|
to install all the dependencies:
|
26
26
|
```
|
27
|
-
$
|
27
|
+
$ bin/build
|
28
28
|
```
|
29
|
+
|
30
|
+
### `bin/build` installs all the dependencies and runs the server **LOCALY**
|
29
31
|
or
|
30
32
|
```
|
31
33
|
$ bundle install
|
32
34
|
```
|
33
|
-
|
35
|
+
|
36
|
+
### `bin/build` installs all the dependencies and runs the server **LOCALY**
|
37
|
+
|
38
|
+
OR run, to run your jekyll site:
|
34
39
|
```
|
35
|
-
$
|
40
|
+
$ bin/server
|
36
41
|
```
|
37
42
|
or
|
38
43
|
```
|
@@ -40,6 +45,8 @@ or
|
|
40
45
|
```
|
41
46
|
## Note:
|
42
47
|
|
48
|
+
`bin/build` installs all the dependencies and runs the server **LOCALY**
|
49
|
+
|
43
50
|
Before publishing the site to github-pages, replace the varable of baseurl:
|
44
51
|
|
45
52
|
if you have brought a doman remove the varable below:
|
@@ -98,19 +105,19 @@ header:
|
|
98
105
|
|
99
106
|
## Customizing the Styles, Vriables and Color Scheme:
|
100
107
|
|
101
|
-
if you like to override the default styles of the theme, go to `_sass/Custom
|
108
|
+
if you like to override the default styles of the theme, go to `_sass/Custom/Styles.scss`.
|
102
109
|
|
103
|
-
if you like to override the default Variables of the theme, go to `_sass/Custom
|
110
|
+
if you like to override the default Variables of the theme, go to `_sass/Custom/Variable.scss`.
|
104
111
|
|
105
|
-
if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/Dark_Theme.scss`.
|
112
|
+
if you like to change the colors of the Dark Theme in the site, go to `_sass/themes/dark theme/Dark_Theme.scss`.
|
106
113
|
|
107
|
-
if you like to change the colors of the Light Theme in the site, go to `_sass/themes/Light_Theme.scss`.
|
114
|
+
if you like to change the colors of the Light Theme in the site, go to `_sass/themes/dark theme/Light_Theme.scss`.
|
108
115
|
|
109
116
|
Want to change [the themes?](#how-to-change-dark-mode-to-light-mode)
|
110
117
|
## How to replace the logo on the header ?
|
111
118
|
|
112
119
|
Replace logo.png at the top of your site.
|
113
|
-
Make sure that the logo is
|
120
|
+
Make sure that the logo is 36x36 pixels to avoid overlapping the title.
|
114
121
|
|
115
122
|
## how to replace the pictue at the homepage ?
|
116
123
|
|
@@ -119,6 +126,18 @@ Replace `assets/img/fica_ad.png`
|
|
119
126
|
|
120
127
|
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
128
|
|
129
|
+
## how to change dark mode to light mode
|
130
|
+
|
131
|
+
Replace:
|
132
|
+
|
133
|
+
```diff
|
134
|
+
- "themes/dark theme/theme-dark",
|
135
|
+
|
136
|
+
+ "themes/light theme/theme-light",
|
137
|
+
```
|
138
|
+
in `_sass/jekyll-theme-fica.scss`.
|
139
|
+
|
140
|
+
|
122
141
|
## Contributing
|
123
142
|
|
124
143
|
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.
|
@@ -129,13 +148,12 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|
129
148
|
|
130
149
|
1. Clone down the theme's repository (`git clone https://github.com/Involts/jekyll-theme-fica`)
|
131
150
|
2. `cd` into the theme's directory
|
132
|
-
3. Run `
|
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
|
151
|
+
3. Run `bin/build` to install the necessary dependencies
|
135
152
|
|
136
|
-
###
|
153
|
+
### `bin/build` installs all the dependencies and runs the server **LOCALY**
|
137
154
|
|
138
|
-
|
155
|
+
4. Run `script/server` to start the preview server
|
156
|
+
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
|
139
157
|
|
140
158
|
## License
|
141
159
|
|
data/_includes/BTT.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- BTT = Back To Top -->
|
2
|
+
|
3
|
+
<buttton id="back-to-top" role="button" title=" Return to top" data-toggle="tooltip" data-placement="left">
|
4
|
+
<svg viewBox="0 0 24 24" width="40px" height="40px">
|
5
|
+
<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z" />
|
6
|
+
</svg>
|
7
|
+
</buttton>
|
8
|
+
|
9
|
+
<script src="{{site.baseurl}}/js/back-to-top.js"></script>
|
@@ -1,10 +1,11 @@
|
|
1
|
-
{
|
2
|
-
<script>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
{%- if site.google_analytics -%}
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
3
|
+
<script>
|
4
|
+
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
6
|
+
function gtag(){window.dataLayer.push(arguments);}
|
7
|
+
gtag('js', new Date());
|
8
|
+
|
9
|
+
gtag('config', '{{ site.google_analytics }}');
|
10
|
+
</script>
|
11
|
+
{%- endif -%}
|
data/_includes/Head.html
CHANGED
@@ -2,10 +2,11 @@
|
|
2
2
|
<meta charset="utf-8">
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
-
<link rel="stylesheet" href="{{ "/assets/css/
|
5
|
+
<link rel="stylesheet" href="{{ "/assets/css/Style.css" | relative_url }}">
|
6
6
|
{%- if page.home-%}
|
7
|
-
<title>{{
|
7
|
+
<title>{{site.title}} | {{site.description}}</title>
|
8
|
+
{%- else -%}
|
9
|
+
<title>{{page.site-title}} | {{site.title}}</title>
|
8
10
|
{%- endif -%}
|
9
|
-
|
10
|
-
{% include Google-Analytics.html %}
|
11
|
+
{%- include Custom-Head.html-%}
|
11
12
|
</head>
|
data/_includes/Header.html
CHANGED
@@ -1,28 +1,23 @@
|
|
1
1
|
<header class="site-header">
|
2
|
-
|
2
|
+
<data class="u-url" href="{{ " {{site.baseurl}}/" | relative_url }}"></data>
|
3
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
|
4
|
+
<div class="wrapper_header"><a class="site-title" rel="author" href="{{site.baseurl}}/">{{site.title}}</a>
|
5
|
+
<nav class="site-nav">
|
5
6
|
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
6
7
|
<label for="nav-trigger">
|
7
8
|
<span class="menu-icon">
|
8
9
|
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
9
|
-
<path
|
10
|
+
<path
|
11
|
+
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
12
|
</svg>
|
11
13
|
</span>
|
12
14
|
</label>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
</nav
|
19
|
-
|
20
|
-
|
21
|
-
|
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>
|
15
|
+
<div class="trigger">
|
16
|
+
<a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
17
|
+
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
|
18
|
+
<a class="page-link" href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
|
19
|
+
</div>
|
20
|
+
</nav>
|
21
|
+
</div>
|
22
|
+
</nav>
|
23
|
+
</header>
|
data/_layouts/default.html
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
<html>
|
3
|
+
{%- include Head.html-%}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
{%- include Header.html-%}
|
7
|
+
|
8
|
+
<main class="page-content">
|
9
|
+
<div class="wrapper">{{ content }}</div>
|
10
|
+
</main>
|
11
|
+
{%- include BTT.html-%}
|
12
|
+
{%- include Footer.html-%}
|
13
|
+
</body>
|
13
14
|
</html>
|
data/_layouts/home.html
CHANGED
@@ -1,48 +1,51 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
{%- include Head.html -%}
|
3
|
+
{%- include Head.html -%}
|
4
4
|
|
5
|
-
<body>
|
6
|
-
|
5
|
+
<body>
|
6
|
+
<header class="site-header-home">
|
7
7
|
{%- assign default_paths = site.pages | map: "path" -%}
|
8
|
-
<div class="wrapper_header"><a class="site-title" rel="author"
|
8
|
+
<div class="wrapper_header"><a class="site-title" rel="author"
|
9
|
+
href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
|
9
10
|
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
10
11
|
<label for="nav-trigger">
|
11
12
|
<span class="menu-icon">
|
12
13
|
<svg viewBox="0 0 18 15" width="18px" height="15px">
|
13
|
-
<path
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
<path
|
15
|
+
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
|
16
|
+
h15.032C17.335,0,18,0.665,18,1.484L18,1.484z
|
17
|
+
M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0
|
18
|
+
c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z
|
19
|
+
M18,13.516C18,14.335,17.335,15,16.516,15H1.484
|
20
|
+
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"
|
21
|
+
/>
|
22
|
+
</svg>
|
23
|
+
</span>
|
24
|
+
</label>
|
23
25
|
<div class="trigger">
|
24
|
-
|
25
|
-
|
26
|
-
{
|
27
|
-
|
28
|
-
{
|
29
|
-
{%- endfor -%}
|
26
|
+
<a class="page-link" href="{{site.header.header_link_1}}">{{site.header.header_name_1}}</a>
|
27
|
+
<a class="page-link"
|
28
|
+
href="{{site.baseurl}}{{site.header.header_link_2}}">{{site.header.header_name_2}}</a>
|
29
|
+
<a class="page-link"
|
30
|
+
href="{{site.baseurl}}{{site.header.header_link_3}}">{{site.header.header_name_3}}</a>
|
30
31
|
</div>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<
|
35
|
-
<
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
</
|
32
|
+
</nav></div>
|
33
|
+
</nav>
|
34
|
+
</header>
|
35
|
+
<header class="page-header" role="banner">
|
36
|
+
<div class="wrapper">
|
37
|
+
<p class="page-header-title">{{site.title}}</p>
|
38
|
+
<p class="page-header-description">{{site.description}}</p>
|
39
|
+
<img src="{{site.baseurl}}/assets/img/fica_ad.png" class="header-pic">
|
40
|
+
</div>
|
41
|
+
</header>
|
42
|
+
<main class="page-content" aria-label="Content">
|
43
|
+
<div class="wrapper">
|
44
|
+
{{ content }}
|
45
|
+
</div>
|
46
|
+
{%- include BTT.html-%}
|
47
|
+
</main>
|
48
|
+
{%- include Footer.html -%}
|
49
|
+
</body>
|
47
50
|
|
48
51
|
</html>
|
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
@@ -1,34 +1,51 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<article class="post h-entry" itemscope
|
4
|
+
<article class="post h-entry" itemscope
|
5
|
+
itemtype="http://schema.org/BlogPosting">
|
5
6
|
|
6
7
|
<header class="post-header">
|
7
|
-
<h1 class="post-title p-name" itemprop="name headline">{{ page.title |
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
{
|
14
|
-
|
8
|
+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title |
|
9
|
+
escape }}</h1>
|
10
|
+
<div class="post-meta text-muted">
|
11
|
+
{% if site.author %}
|
12
|
+
{% assign author = site.author %}
|
13
|
+
{% endif %}
|
14
|
+
{% if page.author %}
|
15
|
+
{% assign author = page.author %}
|
16
|
+
{% endif %}
|
17
|
+
By
|
18
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
19
|
+
<span class="p-author h-card text-unmuted" itemprop="name">{{ author }}</span></span>
|
20
|
+
</div>
|
21
|
+
<span class="post-meta text-muted">
|
22
|
+
Posted
|
23
|
+
{%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
|
24
|
+
<time class="dt-published text-unmuted"datetime="{{ page.date |
|
25
|
+
date_to_xmlschema }}" itemprop="datePublished">
|
26
|
+
{{ page.date | date: date_format }}
|
27
|
+
</time>
|
28
|
+
</span>
|
29
|
+
<span class="post-meta text-muted">
|
30
|
+
{%- if page.modified_date -%}
|
31
|
+
•
|
32
|
+
Modified
|
15
33
|
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
16
|
-
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
|
34
|
+
<time class="dt-modified text-unmuted" datetime="{{ mdate }}" itemprop="dateModified">
|
17
35
|
{{ mdate | date: date_format }}
|
18
36
|
</time>
|
19
|
-
|
20
|
-
|
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>
|
37
|
+
{%- endif -%}
|
38
|
+
</span>
|
28
39
|
</header>
|
29
40
|
<div class="post-content e-content" itemprop="articleBody">
|
30
41
|
{{ content }}
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
42
|
+
<div class="post-footer">
|
43
|
+
<a href="{{site.baseurl}}/Post/">
|
44
|
+
<svg>
|
45
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#arw-back' | relative_url
|
46
|
+
}}"></use>
|
47
|
+
</svg>
|
48
|
+
</a>
|
49
|
+
</div>
|
50
|
+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
51
|
+
</article>
|
data/_layouts/post_home.html
CHANGED
@@ -2,55 +2,80 @@
|
|
2
2
|
layout: default
|
3
3
|
---
|
4
4
|
<div class="home">
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
{%- if page.title -%}
|
6
|
+
<h1 class="page-heading">{{ page.title }}</h1>
|
7
|
+
{%- endif -%}
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
{{ content }}
|
10
|
+
|
11
|
+
<h1>Posts</h1>
|
12
|
+
|
13
|
+
{%- if site.paginate -%}
|
14
|
+
{% assign posts = paginator.posts %}
|
15
|
+
{% else %}
|
16
|
+
{% assign posts = site.posts %}
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
|
20
|
+
{%- if posts.size > 0 -%}
|
21
|
+
{%- if page.list_title -%}
|
22
|
+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
|
23
|
+
{%- endif -%}
|
24
|
+
<ul class="post-list">
|
25
|
+
{%- assign date_format = site.fica.date_format | default: "%b %-d, %Y" -%}
|
26
|
+
{%- for post in posts -%}
|
27
|
+
<li>
|
28
|
+
<h3>
|
29
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
30
|
+
{{ post.title | escape }}
|
31
|
+
</a>
|
32
|
+
<span class="post-meta text-muted">{{ post.date | date: date_format }}</span>
|
33
|
+
</h3>
|
34
|
+
{%- if site.show_descriptions -%}
|
35
|
+
{{ post.excerpt }}
|
20
36
|
{%- endif -%}
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
{
|
32
|
-
|
33
|
-
|
37
|
+
</li>
|
38
|
+
{%- endfor -%}
|
39
|
+
</ul>
|
40
|
+
|
41
|
+
{%- if site.paginate -%}
|
42
|
+
<ul class="post-nav">
|
43
|
+
<li>
|
44
|
+
{% if paginator.previous_page %}
|
45
|
+
<a href="{{ paginator.previous_page_path | relative_url }}"">
|
46
|
+
<svg class="post-nav-svg">
|
47
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#arw-back' | relative_url
|
48
|
+
}}"></use>
|
49
|
+
</svg>
|
50
|
+
</a>
|
51
|
+
{% else %}
|
52
|
+
<a>
|
53
|
+
<svg class="post-nav-svg disable-svg">
|
54
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#arw-back' | relative_url
|
55
|
+
}}"></use>
|
56
|
+
</svg>
|
57
|
+
</a>
|
58
|
+
{% endif %}
|
59
|
+
</li>
|
60
|
+
<li class="post-nav-num">{{ paginator.page }} / {{ paginator.total_pages }}</li>
|
61
|
+
<li>
|
62
|
+
{%- if paginator.next_page %}
|
63
|
+
<a href="{{ paginator.next_page_path | relative_url }}">
|
64
|
+
<svg class="post-nav-svg">
|
65
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#arw-front' | relative_url
|
66
|
+
}}"></use>
|
67
|
+
</svg>
|
68
|
+
</a>
|
69
|
+
{%- else %}
|
70
|
+
<a>
|
71
|
+
<svg class="post-nav-svg disable-svg">
|
72
|
+
<use xlink:href="{{ 'assets/fica-icons.svg#arw-front' | relative_url
|
73
|
+
}}"></use>
|
74
|
+
</svg>
|
75
|
+
</a>
|
76
|
+
{%- endif %}
|
34
77
|
</li>
|
35
|
-
{%- endfor -%}
|
36
78
|
</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
79
|
{%- endif %}
|
55
|
-
|
56
|
-
|
80
|
+
|
81
|
+
{%- endif -%}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
site-title: To Know if the nav works
|
4
|
+
author: Involts
|
5
|
+
modified_date: 2022-04-3
|
6
|
+
---
|
7
|
+
|
8
|
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?Lorem ipsum dolor sit amet consectetur adipisicing elit. Ullam maxime dolor incidunt eligendi eum magni velit, quam cum eos, quo reprehenderit blanditiis unde! Esse excepturi porro, inventore nulla quo eaque?
|