aivesoft-jekyll-theme 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +261 -0
- data/_includes/disqus_comments.html +20 -0
- data/_includes/footer.html +32 -0
- data/_includes/google-analytics.html +9 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +89 -0
- data/_includes/social.html +19 -0
- data/_layouts/default.html +20 -0
- data/_layouts/home.html +60 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +41 -0
- data/_sass/aivesoft-jekyll-theme/_base.scss +259 -0
- data/_sass/aivesoft-jekyll-theme/_layout.scss +565 -0
- data/_sass/aivesoft-jekyll-theme/_syntax-highlighting.scss +71 -0
- data/_sass/aivesoft-jekyll-theme.scss +58 -0
- data/assets/css/fontawesome.all.min.css +5 -0
- data/assets/css/style.scss +5 -0
- data/assets/images/appstore.png +0 -0
- data/assets/images/logo_transparent.png +0 -0
- data/assets/images/playstore.png +0 -0
- data/assets/images/screenshot.png +0 -0
- data/assets/images/social-icons.svg +41 -0
- data/assets/webfonts/fa-brands-400.eot +0 -0
- data/assets/webfonts/fa-brands-400.svg +3496 -0
- data/assets/webfonts/fa-brands-400.ttf +0 -0
- data/assets/webfonts/fa-brands-400.woff +0 -0
- data/assets/webfonts/fa-brands-400.woff2 +0 -0
- data/assets/webfonts/fa-regular-400.eot +0 -0
- data/assets/webfonts/fa-regular-400.svg +803 -0
- data/assets/webfonts/fa-regular-400.ttf +0 -0
- data/assets/webfonts/fa-regular-400.woff +0 -0
- data/assets/webfonts/fa-regular-400.woff2 +0 -0
- data/assets/webfonts/fa-solid-900.eot +0 -0
- data/assets/webfonts/fa-solid-900.svg +4667 -0
- data/assets/webfonts/fa-solid-900.ttf +0 -0
- data/assets/webfonts/fa-solid-900.woff +0 -0
- data/assets/webfonts/fa-solid-900.woff2 +0 -0
- metadata +144 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c04c1ba7fef6038567c9e21ff554b6b693cedbc54b25d82e89a14e9b9d679d5b
|
4
|
+
data.tar.gz: bab96a8062278f39c83a8f3943e15145eeb80be86d5b6437e2cb9da03e543538
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8f5b3deef2e095c6a93a567b667a5efbea462dbcdec06dd724b14284cf463dc9e1b3b435caa59b60e5bc97e191208202918a024be109e9f9e96131917d45e483
|
7
|
+
data.tar.gz: 0df812bfecbe5a252661571e38c83865ad4a716c37f55a18a533bf4b815fdf735624bddaf83c19c70b9356f0eb90551956a8ec4185910efce2fc9a31a91169b8
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016-present Parker Moore and the aivesoft-jekyll-theme contributors
|
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,261 @@
|
|
1
|
+
# aivesoft-jekyll-theme
|
2
|
+
|
3
|
+
aivesoft-jekyll-theme. customized version of [jekyll minima theme](https://github.com/jekyll/minima).
|
4
|
+
|
5
|
+
> **_NOTE: README is currently under writing. not completed._**
|
6
|
+
|
7
|
+
[Theme preview](https://aivesoft.github.io/)
|
8
|
+
|
9
|
+
![theme preview image](/assets/images/screenshot.png)
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your Jekyll site's Gemfile:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem "aivesoft-jekyll-theme"
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
|
24
|
+
### Layouts
|
25
|
+
|
26
|
+
Refers to files within the `_layouts` directory, that define the markup for your theme.
|
27
|
+
|
28
|
+
- `default.html` — The base layout that lays the foundation for subsequent layouts. The derived layouts inject their contents into this file at the line that says ` {{ content }} ` and are linked to this file via [FrontMatter](https://jekyllrb.com/docs/frontmatter/) declaration `layout: default`.
|
29
|
+
- `home.html` — The layout for your landing-page / home-page / index-page. [[More Info.](#home-layout)]
|
30
|
+
- `page.html` — The layout for your documents that contain FrontMatter, but are not posts.
|
31
|
+
- `post.html` — The layout for your posts.
|
32
|
+
|
33
|
+
#### Home Layout
|
34
|
+
|
35
|
+
`home.html` is a flexible HTML layout for the site's landing-page / home-page / index-page. <br/>
|
36
|
+
|
37
|
+
##### *Main Heading and Content-injection*
|
38
|
+
|
39
|
+
From Minima v2.2 onwards, the *home* layout will inject all content from your `index.md` / `index.html` **before** the **`Posts`** heading. This will allow you to include non-posts related content to be published on the landing page under a dedicated heading. *We recommended that you title this section with a Heading2 (`##`)*.
|
40
|
+
|
41
|
+
Usually the `site.title` itself would suffice as the implicit 'main-title' for a landing-page. But, if your landing-page would like a heading to be explicitly displayed, then simply define a `title` variable in the document's front matter and it will be rendered with an `<h1>` tag.
|
42
|
+
|
43
|
+
##### *Post Listing*
|
44
|
+
|
45
|
+
This section is optional from Minima v2.2 onwards.<br/>
|
46
|
+
It will be automatically included only when your site contains one or more valid posts or drafts (if the site is configured to `show_drafts`).
|
47
|
+
|
48
|
+
The title for this section is `Posts` by default and rendered with an `<h2>` tag. You can customize this heading by defining a `list_title` variable in the document's front matter.
|
49
|
+
|
50
|
+
|
51
|
+
### Includes
|
52
|
+
|
53
|
+
Refers to snippets of code within the `_includes` directory that can be inserted in multiple layouts (and another include-file as well) within the same theme-gem.
|
54
|
+
|
55
|
+
- `disqus_comments.html` — Code to markup disqus comment box.
|
56
|
+
- `footer.html` — Defines the site's footer section.
|
57
|
+
- `google-analytics.html` — Inserts Google Analytics module (active only in production environment).
|
58
|
+
- `head.html` — Code-block that defines the `<head></head>` in *default* layout.
|
59
|
+
- `header.html` — Defines the site's main header section. By default, pages with a defined `title` attribute will have links displayed here.
|
60
|
+
- `social.html` — Renders social-media icons based on the `aivesoft-jekyll-theme:social_links` data in the config file.
|
61
|
+
|
62
|
+
|
63
|
+
### Sass
|
64
|
+
|
65
|
+
Refers to `.scss` files within the `_sass` directory that define the theme's styles.
|
66
|
+
|
67
|
+
- `aivesoft-jekyll-theme.scss` — The core file imported by preprocessed `css/style.scss`, it defines the variable defaults for the theme and also further imports sass partials to supplement itself.
|
68
|
+
- `aivesoft-jekyll-theme/_base.scss` — Resets and defines base styles for various HTML elements.
|
69
|
+
- `aivesoft-jekyll-theme/_layout.scss` — Defines the visual style for various layouts.
|
70
|
+
- `aivesoft-jekyll-theme/_syntax-highlighting.scss` — Defines the styles for syntax-highlighting.
|
71
|
+
|
72
|
+
|
73
|
+
### Assets
|
74
|
+
|
75
|
+
Refers to various asset files within the `assets` directory.
|
76
|
+
Contains the `css/style.scss` that imports sass files from within the `_sass` directory. This `css/style.scss` is what gets processed into the theme's main stylesheet `main.css` called by `_layouts/default.html` via `_includes/head.html`.
|
77
|
+
|
78
|
+
This directory can include sub-directories to manage assets of similar type (`img`, `fonts`, `svg`), and will be copied over as is, to the final transformed site directory.
|
79
|
+
|
80
|
+
|
81
|
+
### Plugins
|
82
|
+
|
83
|
+
aivesoft-jekyll-theme comes with [`jekyll-seo-tag`](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See [usage](https://github.com/jekyll/jekyll-seo-tag#usage) to know how to set it up.
|
84
|
+
|
85
|
+
|
86
|
+
## Usage
|
87
|
+
|
88
|
+
Have the following line in your config file:
|
89
|
+
|
90
|
+
```yaml
|
91
|
+
theme: aivesoft-jekyll-theme
|
92
|
+
```
|
93
|
+
|
94
|
+
|
95
|
+
### Customizing templates
|
96
|
+
|
97
|
+
To override the default structure and style of minima, simply create the concerned directory at the root of your site, copy the file you wish to customize to that directory, and then edit the file.
|
98
|
+
e.g., to override the [`_includes/head.html `](_includes/head.html) file to specify a custom style path, create an `_includes` directory, copy `_includes/head.html` from minima gem folder to `<yoursite>/_includes` and start editing that file.
|
99
|
+
|
100
|
+
The site's default CSS has now moved to a new place within the gem itself, [`assets/css/style.scss`](assets/css/style.scss). To **override the default CSS**, the file has to exist at your site source. Do either of the following:
|
101
|
+
- Create a new instance at site source.
|
102
|
+
- Create a new file at `<your-site>/assets/css/style.scss`
|
103
|
+
- Add the frontmatter dashes, and
|
104
|
+
- Add `@import "minima";`
|
105
|
+
- Add your custom CSS.
|
106
|
+
- Download the file from this repo
|
107
|
+
- Create a new file at `<your-site>/assets/css/style.scss`
|
108
|
+
- Copy the contents at [assets/css/style.scss](assets/css/style.scss) onto the `css/style.scss` you just created, and edit away!
|
109
|
+
- Copy directly from minima gem
|
110
|
+
- Go to your local minima gem installation directory ( run `bundle show minima` to get the path to it ).
|
111
|
+
- Copy the `assets/` folder from there into the root of `<your-site>`
|
112
|
+
- Change whatever values you want, inside `<your-site>/assets/css/style.scss`
|
113
|
+
|
114
|
+
|
115
|
+
When you override only a minima-sass-partial, it is not automatically imported because we're still importing the `minima.scss` within the theme-gem and that subsequently imports the partials with respect to itself, i.e. partials within the gem. Hence you should either include a *copy of `minima.scss` from the gem* inside the `_sass` directory at source or the overriding `/assets/css/style.scss` file should explicitly import the edited partial. :
|
116
|
+
e.g. To have an **edited** `_syntax-highlighting.scss` be rendered, you should either have
|
117
|
+
|
118
|
+
```sass
|
119
|
+
/* <your-site>/assets/css/style.scss */
|
120
|
+
|
121
|
+
@import "minima";
|
122
|
+
@import "minima/syntax-highlighting";
|
123
|
+
```
|
124
|
+
or
|
125
|
+
your `<your-site>/_sass/` should look like:
|
126
|
+
|
127
|
+
```
|
128
|
+
.
|
129
|
+
├── minima.scss
|
130
|
+
└── minima
|
131
|
+
└── _syntax-highlighting.scss
|
132
|
+
```
|
133
|
+
|
134
|
+
To have your CSS overrides in sync with upstream changes released in future versions, collect all your overrides into a single partial sass-file and then import that partial after importing minima, like so:
|
135
|
+
|
136
|
+
```sass
|
137
|
+
/* <your-site>/assets/css/style.scss */
|
138
|
+
|
139
|
+
@import "minima";
|
140
|
+
@import "my_overrides";
|
141
|
+
```
|
142
|
+
|
143
|
+
|
144
|
+
### Customize navigation links
|
145
|
+
|
146
|
+
This allows you to set which pages you want to appear in the navigation area and configure order of the links.
|
147
|
+
|
148
|
+
For instance, to only link to the `about` and the `portfolio` page, add the following to your `_config.yml`:
|
149
|
+
|
150
|
+
```yaml
|
151
|
+
header_pages:
|
152
|
+
- about.md
|
153
|
+
- portfolio.md
|
154
|
+
```
|
155
|
+
|
156
|
+
|
157
|
+
### Change default date format
|
158
|
+
|
159
|
+
You can change the default date format by specifying `site.minima.date_format`
|
160
|
+
in `_config.yml`.
|
161
|
+
|
162
|
+
```
|
163
|
+
# Minima date format
|
164
|
+
# refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
|
165
|
+
minima:
|
166
|
+
date_format: "%b %-d, %Y"
|
167
|
+
```
|
168
|
+
|
169
|
+
|
170
|
+
### Add your favicons
|
171
|
+
|
172
|
+
1. Head over to [https://realfavicongenerator.net/](https://realfavicongenerator.net/) to add your own favicons.
|
173
|
+
2. [Customize](#customization) default `_includes/head.html` in your source directory and insert the given code snippet.
|
174
|
+
|
175
|
+
|
176
|
+
### Enabling comments (via Disqus)
|
177
|
+
|
178
|
+
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
|
179
|
+
|
180
|
+
To enable it, add the following lines to your Jekyll site:
|
181
|
+
|
182
|
+
```yaml
|
183
|
+
disqus:
|
184
|
+
shortname: my_disqus_shortname
|
185
|
+
```
|
186
|
+
|
187
|
+
You can find out more about Disqus' shortnames [here](https://help.disqus.com/installation/whats-a-shortname).
|
188
|
+
|
189
|
+
Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
|
190
|
+
|
191
|
+
If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
|
192
|
+
|
193
|
+
:warning: `url`, e.g. `https://example.com`, must be set in you config file for Disqus to work.
|
194
|
+
|
195
|
+
|
196
|
+
### Social networks
|
197
|
+
|
198
|
+
You can add links to the accounts you have on other sites, with respective icon, by adding one or more of the following options in your config.
|
199
|
+
From `Minima-3.0` onwards, the usernames are to be nested under `minima.social_links`, with the keys being simply the social-network's name:
|
200
|
+
|
201
|
+
```yaml
|
202
|
+
minima:
|
203
|
+
social_links:
|
204
|
+
twitter: jekyllrb
|
205
|
+
github: jekyll
|
206
|
+
dribbble: jekyll
|
207
|
+
facebook: jekyll
|
208
|
+
flickr: jekyll
|
209
|
+
instagram: jekyll
|
210
|
+
linkedin: jekyll
|
211
|
+
pinterest: jekyll
|
212
|
+
telegram: jekyll
|
213
|
+
googleplus: +jekyll
|
214
|
+
microdotblog: jekyll
|
215
|
+
keybase: jekyll
|
216
|
+
rss: rss
|
217
|
+
|
218
|
+
mastodon:
|
219
|
+
- username: jekyll
|
220
|
+
instance: example.com
|
221
|
+
- username: jekyll2
|
222
|
+
instance: example.com
|
223
|
+
|
224
|
+
youtube: jekyll
|
225
|
+
youtube_channel: UC8CXR0-3I70i1tfPg1PAE1g
|
226
|
+
youtube_channel_name: CloudCannon
|
227
|
+
```
|
228
|
+
|
229
|
+
|
230
|
+
### Enabling Google Analytics
|
231
|
+
|
232
|
+
To enable Google Analytics, add the following lines to your Jekyll site:
|
233
|
+
|
234
|
+
```yaml
|
235
|
+
google_analytics: UA-NNNNNNNN-N
|
236
|
+
```
|
237
|
+
|
238
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
239
|
+
|
240
|
+
### Enabling Excerpts on the Home Page
|
241
|
+
|
242
|
+
To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:
|
243
|
+
|
244
|
+
```yaml
|
245
|
+
show_excerpts: true
|
246
|
+
```
|
247
|
+
|
248
|
+
|
249
|
+
## Contributing
|
250
|
+
|
251
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jekyll/minima. 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.
|
252
|
+
|
253
|
+
## Development
|
254
|
+
|
255
|
+
To set up your environment to develop this theme, run `script/bootstrap`.
|
256
|
+
|
257
|
+
To test your theme, run `script/server` (or `bundle exec jekyll serve`) and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme and the contents. As you make modifications, your site will regenerate and you should see the changes in the browser after a refresh.
|
258
|
+
|
259
|
+
## License
|
260
|
+
|
261
|
+
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{%- if page.comments != false and jekyll.environment == "production" -%}
|
2
|
+
|
3
|
+
<div id="disqus_thread"></div>
|
4
|
+
<script>
|
5
|
+
var disqus_config = function () {
|
6
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
7
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
8
|
+
};
|
9
|
+
|
10
|
+
(function() {
|
11
|
+
var d = document, s = d.createElement('script');
|
12
|
+
|
13
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
14
|
+
|
15
|
+
s.setAttribute('data-timestamp', +new Date());
|
16
|
+
(d.head || d.body).appendChild(s);
|
17
|
+
})();
|
18
|
+
</script>
|
19
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
20
|
+
{%- endif -%}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<footer class="site-footer h-card">
|
2
|
+
<data class="u-url" href="{{ "/" | relative_url }}"></data>
|
3
|
+
|
4
|
+
<div class="wrapper">
|
5
|
+
|
6
|
+
<div class="footer-col-wrapper">
|
7
|
+
<div class="footer-col one-half">
|
8
|
+
<h2 class="footer-heading">{{ site.title | escape }}</h2>
|
9
|
+
<ul class="contact-list">
|
10
|
+
<li class="p-name">
|
11
|
+
{%- if site.author -%}
|
12
|
+
{{ site.author | escape }}
|
13
|
+
{%- endif -%}
|
14
|
+
</li>
|
15
|
+
{%- if site.email -%}
|
16
|
+
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
|
17
|
+
{%- endif -%}
|
18
|
+
</ul>
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="footer-col one-half">
|
22
|
+
<p>{{- site.description | escape -}}</p>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<div class="social-links">
|
26
|
+
{%- include social.html -%}
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</footer>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
2
|
+
<script>
|
3
|
+
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', '{{ site.google_analytics }}');
|
9
|
+
</script>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,12 @@
|
|
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
|
+
{%- seo -%}
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/css/fontawesome.all.min.css" | relative_url }}">
|
7
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
8
|
+
{%- feed_meta -%}
|
9
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
10
|
+
{%- include google-analytics.html -%}
|
11
|
+
{%- endif -%}
|
12
|
+
</head>
|
@@ -0,0 +1,89 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
<div class="top-bar">
|
3
|
+
<div class="wrapper">
|
4
|
+
{%- if site.email -%}
|
5
|
+
<span class="contact brand-bg">
|
6
|
+
<a href="mailto:{{ site.email }}" class="email"><i class="fas fa-envelope circle-2"></i> {{ site.email }}</a>
|
7
|
+
</span>
|
8
|
+
{%- endif -%}
|
9
|
+
<span class="social-links brand-bg">
|
10
|
+
{%- if social.dribbble -%}
|
11
|
+
<a href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" class="dribbble" target="_blank" title="{{ social.dribbble | escape }}"><i class="fab fa-dribbble circle-2"></i></a>
|
12
|
+
{%- endif -%}
|
13
|
+
{%- if social.facebook -%}
|
14
|
+
<a href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" class="facebook" target="_blank" title="{{ social.facebook | escape }}"><i class="fab fa-facebook circle-2"></i></a>
|
15
|
+
{%- endif -%}
|
16
|
+
{%- if social.flickr -%}
|
17
|
+
<a href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" class="flickr" target="_blank" title="{{ social.flickr | escape }}"><i class="fab fa-flickr circle-2"></i></a>
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if social.github -%}
|
20
|
+
<a href="https://github.com/{{ social.github | cgi_escape | escape }}" class="github" target="_blank"><i class="fab fa-github circle-2"></i></a>
|
21
|
+
{%- endif -%}
|
22
|
+
{%- if social.instagram -%}
|
23
|
+
<a href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" class="instagram" target="_blank" title="{{ social.instagram | escape }}"><i class="fab fa-instagram circle-2"></i></a>
|
24
|
+
{%- endif -%}
|
25
|
+
{%- if social.linkedin -%}
|
26
|
+
<a href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" class="linkedin" target="_blank" title="{{ social.linkedin | escape }}"><i class="fab fa-linkedin circle-2"></i></a>
|
27
|
+
{%- endif -%}
|
28
|
+
{%- if social.pinterest -%}
|
29
|
+
<a href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" class="pinterest" target="_blank" title="{{ social.pinterest | escape }}"><i class="fab fa-pinterest circle-2"></i></a>
|
30
|
+
{%- endif -%}
|
31
|
+
{%- for mst in social.mastodon -%}
|
32
|
+
{%- if mst.username and mst.instance -%}
|
33
|
+
<a href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" class="mastodon" target="_blank" title="{{ mst.username | escape }}"><i class="fab fa-mastodon circle-2"></i></a>
|
34
|
+
{%- endif -%}
|
35
|
+
{%- endfor -%}
|
36
|
+
{%- if social.twitter -%}
|
37
|
+
<a href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}" class="twitter" target="_blank" title="{{ social.twitter | escape }}"><i class="fab fa-twitter circle-2"></i></a>
|
38
|
+
{%- endif -%}
|
39
|
+
{%- if social.youtube -%}
|
40
|
+
<a href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" class="youtube" target="_blank" title="{{ social.youtube | escape }}"><i class="fas fa-video circle-2"></i></a>
|
41
|
+
{%- endif -%}
|
42
|
+
{%- if social.youtube_channel -%}
|
43
|
+
<a href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" class="youtube_channel" target="_blank" title="{{ social.youtube_channel | escape }}"><i class="fab fa-youtube circle-2"></i></a>
|
44
|
+
{%- endif -%}
|
45
|
+
{%- if social.telegram -%}
|
46
|
+
<a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" class="telegram" target="_blank" title="{{ social.telegram | escape }}"><i class="fab fa-telegram circle-2"></i></a>
|
47
|
+
{%- endif -%}
|
48
|
+
{%- if social.keybase -%}
|
49
|
+
<a href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" class="keybase" target="_blank" title="{{ social.keybase | escape }}"><i class="fab fa-keybase circle-2"></i></a>
|
50
|
+
{%- endif -%}
|
51
|
+
{%- if social.microdotblog -%}
|
52
|
+
<a href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" class="microdotblog" target="_blank" title="{{ social.microdotblog | escape }}"><i class="fas fa-star circle-2"></i></a>
|
53
|
+
{%- endif -%}
|
54
|
+
{%- if social.rss -%}
|
55
|
+
<a href="{{ 'feed.xml' | relative_url }}" class="rss" target="_blank" title="{{ social.rss | escape }}"><i class="fas fa-rss circle-2"></i></a>
|
56
|
+
{%- endif -%}
|
57
|
+
</span>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
<div class="wrapper">
|
61
|
+
{%- assign default_paths = site.pages | map: "path" -%}
|
62
|
+
{%- assign page_paths = site.header_pages | default: default_paths -%}
|
63
|
+
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
|
64
|
+
|
65
|
+
|
66
|
+
<div class="logo-wrapper">
|
67
|
+
<a href="{{ '/' | relative_url }}">
|
68
|
+
{%- if site.logo -%}
|
69
|
+
<img src="/assets/images/logo_transparent.png" alt="{{ site.title | escape }}" />
|
70
|
+
{%- else -%}
|
71
|
+
<span class="logo-text">{{ site.title }}</span>
|
72
|
+
{%- endif -%}
|
73
|
+
</a>
|
74
|
+
</div>
|
75
|
+
|
76
|
+
{%- if titles_size > 0 -%}
|
77
|
+
<nav class="site-nav">
|
78
|
+
<div class="trigger">
|
79
|
+
{%- for path in page_paths -%}
|
80
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
81
|
+
{%- if my_page.title -%}
|
82
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
83
|
+
{%- endif -%}
|
84
|
+
{%- endfor -%}
|
85
|
+
</div>
|
86
|
+
</nav>
|
87
|
+
{%- endif -%}
|
88
|
+
</div>
|
89
|
+
</header>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{%- assign social = site.aivesoft-jekyll-theme.social_links -%}
|
2
|
+
|
3
|
+
<ul class="social-media-list">
|
4
|
+
{%- if social.dribbble -%}<li><a href="https://dribbble.com/{{ social.dribbble | cgi_escape | escape }}" title="{{ social.dribbble | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#dribbble' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
5
|
+
{%- if social.facebook -%}<li><a href="https://www.facebook.com/{{ social.facebook | cgi_escape | escape }}" title="{{ social.facebook | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#facebook' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
6
|
+
{%- if social.flickr -%}<li><a href="https://www.flickr.com/photos/{{ social.flickr | cgi_escape | escape }}" title="{{ social.flickr | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#flickr' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
7
|
+
{%- if social.github -%}<li><a href="https://github.com/{{ social.github | cgi_escape | escape }}" title="{{ social.github | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#github' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
8
|
+
{%- if social.instagram -%}<li><a href="https://www.instagram.com/{{ social.instagram | cgi_escape | escape }}" title="{{ social.instagram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#instagram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
9
|
+
{%- if social.linkedin -%}<li><a href="https://www.linkedin.com/in/{{ social.linkedin | cgi_escape | escape }}" title="{{ social.linkedin | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#linkedin' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
10
|
+
{%- if social.pinterest -%}<li><a href="https://www.pinterest.com/{{ social.pinterest | cgi_escape | escape }}" title="{{ social.pinterest | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#pinterest' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
11
|
+
{%- for mst in social.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance | cgi_escape | escape}}/@{{mst.username}}" title="{{ mst.username | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#mastodon' | relative_url }}"></use></svg></a></li>{%- endif -%}{%- endfor -%}
|
12
|
+
{%- if social.twitter -%}<li><a href="https://twitter.com/{{ social.twitter | cgi_escape | escape }}" title="{{ social.twitter | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#twitter' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
13
|
+
{%- if social.youtube -%}<li><a href="https://www.youtube.com/{{ social.youtube | cgi_escape | escape }}" title="{{ social.youtube | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
14
|
+
{%- if social.youtube_channel -%}<li><a href="https://www.youtube.com/channel/{{ social.youtube_channel | cgi_escape | escape }}" title="{{ social.youtube_channel_name | escape | default: 'YouTube' }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#youtube' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
15
|
+
{%- if social.telegram -%}<li><a href="https://t.me/{{ social.telegram | cgi_escape | escape }}" title="{{ social.telegram | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#telegram' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
16
|
+
{%- if social.keybase -%}<li><a href="https://keybase.io/{{ social.keybase | cgi_escape | escape }}" title="{{ social.keybase | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#keybase' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
17
|
+
{%- if social.microdotblog -%}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | cgi_escape | escape }}" title="{{ social.microdotblog | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#microdotblog' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
18
|
+
{%- if social.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}" title="{{ social.rss | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/images/social-icons.svg#rss' | relative_url }}"></use></svg></a></li>{%- endif -%}
|
19
|
+
</ul>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{%- include head.html -%}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{%- include header.html -%}
|
9
|
+
|
10
|
+
<main class="page-content" aria-label="Content">
|
11
|
+
<div class="wrapper">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</main>
|
15
|
+
|
16
|
+
{%- include footer.html -%}
|
17
|
+
|
18
|
+
</body>
|
19
|
+
|
20
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
{%- if page.title -%}
|
7
|
+
<h1 class="page-heading">{{ page.title }}</h1>
|
8
|
+
{%- endif -%}
|
9
|
+
|
10
|
+
{{ content }}
|
11
|
+
|
12
|
+
{%- if site.posts.size > 0 -%}
|
13
|
+
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
|
14
|
+
<ul class="post-list">
|
15
|
+
{%- for post in site.posts -%}
|
16
|
+
<li>
|
17
|
+
{%- assign date_format = site.aivesoft-jekyll-theme.date_format | default: "%b %-d, %Y" -%}
|
18
|
+
<h3 class="post-title">
|
19
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
20
|
+
{{ post.title | escape }}
|
21
|
+
</a>
|
22
|
+
</h3>
|
23
|
+
<div class="post-meta"><i class="far fa-calendar-alt"></i> {{ post.date | date: date_format }}</div>
|
24
|
+
<a class="post-link" href="{{ post.url | relative_url }}">
|
25
|
+
{%- if post.image -%}
|
26
|
+
<div>
|
27
|
+
<img src="{{ post.image }}">
|
28
|
+
</div>
|
29
|
+
{%- endif -%}
|
30
|
+
</a>
|
31
|
+
{%- if post.appstore or post.playstore -%}
|
32
|
+
<div class="post-store">
|
33
|
+
{%- if post.appstore -%}
|
34
|
+
<a href="{{ post.appstore }}" target="_blank"><img src="/assets/images/appstore.png" /></a>
|
35
|
+
{%- endif -%}
|
36
|
+
{%- if post.playstore -%}
|
37
|
+
<a href="{{ post.playstore }}" target="_blank"><img src="/assets/images/playstore.png" /></a>
|
38
|
+
{%- endif -%}
|
39
|
+
</div>
|
40
|
+
{%- endif -%}
|
41
|
+
<div class="post-content">
|
42
|
+
{{ post.content | strip_html | truncatewords:20}}
|
43
|
+
</div>
|
44
|
+
{%- if site.show_excerpts -%}
|
45
|
+
{{ post.excerpt }}
|
46
|
+
{%- endif -%}
|
47
|
+
</li>
|
48
|
+
{%- endfor -%}
|
49
|
+
</ul>
|
50
|
+
|
51
|
+
<p class="feed-subscribe">
|
52
|
+
<a href="{{ 'feed.xml' | relative_url }}">
|
53
|
+
<svg class="svg-icon orange">
|
54
|
+
<use xlink:href="{{ 'assets/images/social-icons.svg#rss' | relative_url }}"></use>
|
55
|
+
</svg><span>Subscribe</span>
|
56
|
+
</a>
|
57
|
+
</p>
|
58
|
+
{%- endif -%}
|
59
|
+
|
60
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
<header class="post-header">
|
6
|
+
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
|
7
|
+
<p class="post-meta">
|
8
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
9
|
+
{%- assign date_format = site.aivesoft-jekyll-theme.date_format | default: "%b %-d, %Y" -%}
|
10
|
+
{{ page.date | date: date_format }}
|
11
|
+
</time>
|
12
|
+
{%- if page.author -%}
|
13
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author | escape }}</span></span>
|
14
|
+
{%- endif -%}
|
15
|
+
</p>
|
16
|
+
</header>
|
17
|
+
{%- if page.image -%}
|
18
|
+
<img class="post-landing-image" src="{{ page.image }}" />
|
19
|
+
{%- endif -%}
|
20
|
+
|
21
|
+
{%- if page.appstore or page.playstore -%}
|
22
|
+
<div class="post-store">
|
23
|
+
{%- if page.appstore -%}
|
24
|
+
<a href="{{ page.appstore }}" target="_blank"><img src="/assets/images/appstore.png" /></a>
|
25
|
+
{%- endif -%}
|
26
|
+
{%- if page.playstore -%}
|
27
|
+
<a href="{{ page.playstore }}" target="_blank"><img src="/assets/images/playstore.png" /></a>
|
28
|
+
{%- endif -%}
|
29
|
+
</div>
|
30
|
+
{%- endif -%}
|
31
|
+
|
32
|
+
<div class="post-content e-content" itemprop="articleBody">
|
33
|
+
{{ content }}
|
34
|
+
</div>
|
35
|
+
|
36
|
+
{%- if site.disqus.shortname -%}
|
37
|
+
{%- include disqus_comments.html -%}
|
38
|
+
{%- endif -%}
|
39
|
+
|
40
|
+
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
|
41
|
+
</article>
|