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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +27 -0
  3. data/404.html +16 -0
  4. data/License.md +2 -0
  5. data/README.md +31 -13
  6. data/_includes/BTT.html +9 -0
  7. data/_includes/Google-Analytics.html +11 -10
  8. data/_includes/Head.html +5 -4
  9. data/_includes/Header.html +14 -19
  10. data/_layouts/default.html +12 -11
  11. data/_layouts/home.html +39 -36
  12. data/_layouts/page.html +1 -0
  13. data/_layouts/post.html +40 -23
  14. data/_layouts/post_home.html +72 -47
  15. data/_posts/2022-03-31-To-Know-if-the-nav-works.md +8 -0
  16. data/_posts/2022-04-1-Demo.md +114 -0
  17. data/_posts/2022-04-5-Getting-Started.md +103 -0
  18. data/_posts/2022-04-6-Creating-a-new-post.md +124 -0
  19. data/_sass/custom/styles.scss +1 -0
  20. data/_sass/custom/variables.scss +1 -0
  21. data/_sass/jekyll-theme-fica.scss +7 -0
  22. data/_sass/layouts/base.scss +573 -0
  23. data/_sass/layouts/layout.scss +676 -0
  24. data/_sass/layouts/variables.scss +89 -0
  25. data/_sass/themes/dark theme/highlight.scss +363 -0
  26. data/_sass/themes/dark theme/theme-dark.scss +135 -0
  27. data/_sass/themes/{Light_Theme.scss → light theme/highlight.scss } +8 -65
  28. data/_sass/themes/light theme/theme-light.scss +132 -0
  29. data/assets/404.svg +22 -0
  30. data/assets/css/Style.scss +42 -0
  31. data/assets/css/fica-icons.svg +68 -0
  32. data/assets/fica-icons.svg +12 -2
  33. data/bin/build +7 -0
  34. data/bin/server +7 -0
  35. data/docs/contributing.md +69 -0
  36. data/js/back-to-top.js +48 -0
  37. data/post/index.html +4 -0
  38. metadata +41 -10
  39. data/_sass/Base.scss +0 -401
  40. data/_sass/Custom-Styles.scss +0 -2
  41. data/_sass/Custom-Variables.scss +0 -1
  42. data/_sass/Initialize.scss +0 -71
  43. data/_sass/Layout.scss +0 -474
  44. data/_sass/themes/Dark_Theme.scss +0 -269
  45. data/assets/css/Styles.scss +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 694089c011995f8ed477a3369ec936642a0adf7ee939d285adcf908206b4d484
4
- data.tar.gz: 3c47e2fbc0b51f2be2fabdabd00533cdcba4b4f396f12c68de2317a15e148fe1
3
+ metadata.gz: a12ee76fc793fdd77b2fa48c2499ede1634b11eb2cd7b1cddde1b64af427e395
4
+ data.tar.gz: 7316e301619255ac34ff9c5808fa3b87fbb884f3b49a85631dd3e431a36258a3
5
5
  SHA512:
6
- metadata.gz: 6dd4aad6bbb015043784b0056367cee24e25a6121f2d03951e07e1ee89c2742d1da37236704ad7c6e3906dc871899b5e6e96046f52420525fb694830746b6a4e
7
- data.tar.gz: 63624b586cda01eb3dd32e17dd28f44ea83fc7e5e94f50fbb1a82b51905a0c1b7224322d21f1489de8eee0a363548669af95280daf7900a1c0933b3745671242
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
@@ -2,6 +2,8 @@
2
2
  layout: default
3
3
  site-title: Fica Theme License
4
4
  permalink: /License/
5
+ pagination:
6
+ enabled: false
5
7
  ---
6
8
 
7
9
  # The MIT License (MIT)
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
- $ script/bootstrap
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
- and run, to run your jekyll site:
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
- $ script/build
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-Styles.scss`.
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-Variable.scss`.
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 16x16 px to avoid overlapping the title.
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 `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
151
+ 3. Run `bin/build` to install the necessary dependencies
135
152
 
136
- ### Running tests
153
+ ### `bin/build` installs all the dependencies and runs the server **LOCALY**
137
154
 
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.
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
 
@@ -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
- {% 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 %}
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/Styles.css" | relative_url }}">
5
+ <link rel="stylesheet" href="{{ "/assets/css/Style.css" | relative_url }}">
6
6
  {%- if page.home-%}
7
- <title>{{page.site-title}}</title>
7
+ <title>{{site.title}} | {{site.description}}</title>
8
+ {%- else -%}
9
+ <title>{{page.site-title}} | {{site.title}}</title>
8
10
  {%- endif -%}
9
- <title>{{page.site-title}} | {{site.title}}</title>
10
- {% include Google-Analytics.html %}
11
+ {%- include Custom-Head.html-%}
11
12
  </head>
@@ -1,28 +1,23 @@
1
1
  <header class="site-header">
2
- <data class="u-url" href="{{ "{{site.baseurl}}/" | relative_url }}"></data>
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><nav class="site-nav">
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 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
+ <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
- <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>
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>
@@ -1,13 +1,14 @@
1
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>
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
- <header class="site-header-home">
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" href="{{site.baseurl}}/">{{site.title}}</a><nav class="site-nav">
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 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>
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
- {%- 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 -%}
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
- </header>
33
- <header class="page-header" role="banner">
34
- <div class="wrapper">
35
- <p class="page-header-title">{{site.title}}</p>
36
- <p class="page-header-description">{{site.description}}</p>
37
- <img src="{{site.baseurl}}/assets/img/fica_ad.png" class="header-pic">
38
- </div>
39
- </header>
40
- <main class="page-content" aria-label="Content">
41
- <div class="wrapper">
42
- {{ content }}
43
- </div>
44
- </main>
45
- {%- include Footer.html -%}
46
- </body>
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
@@ -8,6 +8,7 @@
8
8
  {{ content }}
9
9
  </div>
10
10
  </main>
11
+ {%- include BTT.html-%}
11
12
  {% include Footer.html %}
12
13
  </body>
13
14
  </html>
data/_layouts/post.html CHANGED
@@ -1,34 +1,51 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
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 | 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
- ~
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
- {%- 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>
37
+ {%- endif -%}
38
+ </span>
28
39
  </header>
29
40
  <div class="post-content e-content" itemprop="articleBody">
30
41
  {{ content }}
31
-
32
-
33
- <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
34
- </article>
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>
@@ -2,55 +2,80 @@
2
2
  layout: default
3
3
  ---
4
4
  <div class="home">
5
- <h1>Posts</h1>
6
- {{ content }}
7
-
5
+ {%- if page.title -%}
6
+ <h1 class="page-heading">{{ page.title }}</h1>
7
+ {%- endif -%}
8
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>
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
- <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 -%}
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
- {%- endif -%}
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?