beautiful-jekyll-theme 5.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +46 -31
- data/_includes/cloudflare_analytics.html +8 -0
- data/_includes/commentbox.html +7 -0
- data/_includes/comments.html +2 -0
- data/_includes/footer.html +6 -1
- data/_includes/giscus-comment.html +16 -0
- data/_includes/google_analytics.html +12 -0
- data/_includes/head.html +8 -5
- data/_includes/header.html +6 -6
- data/_includes/nav.html +19 -3
- data/_includes/search.html +39 -0
- data/_includes/social-networks-links.html +80 -4
- data/_includes/social-share.html +9 -1
- data/_layouts/base.html +1 -1
- data/_layouts/home.html +74 -66
- data/_layouts/post.html +2 -2
- data/assets/css/beautifuljekyll.css +167 -45
- data/assets/img/install-steps.gif +0 -0
- data/assets/js/beautifuljekyll.js +42 -14
- data/assets/js/staticman.js +39 -28
- data/feed.xml +2 -2
- data/staticman.yml +1 -1
- data/tags.html +1 -1
- metadata +27 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5f94bcc1c22117a38d676a5e28f66de694b6035d96a7b3dc8e21f892516679b
|
4
|
+
data.tar.gz: be0b2f40ea6dc3c7a8ba5194d3c6d4dd34aafe547e03614ed5b950a1c85f84cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fb70da2d2c5aca764363650df5e0e95f45e3bb3684e926dcca4ada7b84045dc9fac68b964f0e8b2b35e221a27305103ff9f2ac8cab6632a1c9b9c44d4670b34
|
7
|
+
data.tar.gz: 7d18e60a8d21f3bbd6f078a4baeff14e2e2b71210bb2557b34fba2983c37eab8006fffe430eee69c5f5829d78e7500a0361e667a5da09623f37407b00ac8e014
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
[![](https://i.imgur.com/zNBkzj1.png)](https://beautifuljekyll.com/plans/)
|
2
|
-
|
3
1
|
# Beautiful Jekyll
|
4
2
|
|
5
|
-
[![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/daattali/beautiful-jekyll)
|
6
3
|
[![Gem Version](https://badge.fury.io/rb/beautiful-jekyll-theme.svg)](https://badge.fury.io/rb/beautiful-jekyll-theme)
|
7
4
|
|
8
5
|
> By [Dean Attali](https://deanattali.com) · [Demo](https://beautifuljekyll.com/)
|
9
6
|
|
10
7
|
**Beautiful Jekyll** is a ready-to-use template to help you create a beautiful website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](https://beautifuljekyll.com) of what you'll get after just two minutes. You can also look at [my personal website](https://deanattali.com) or [my consulting website](https://attalitech.com) to see it in use, or see [examples of websites](http://beautifuljekyll.com/examples) other people created using this theme.
|
11
8
|
|
12
|
-
**If you enjoy Beautiful Jekyll, please consider [supporting me](https://github.com/sponsors/daattali)
|
9
|
+
**If you enjoy Beautiful Jekyll, please consider [supporting me](https://github.com/sponsors/daattali). You'll also gain access to office hours and more rewards! ❤**
|
13
10
|
|
14
11
|
## Table of contents
|
15
12
|
|
@@ -21,12 +18,13 @@
|
|
21
18
|
- [Customizing parameters for each page](#customizing-parameters-for-each-page)
|
22
19
|
- [Supported parameters](#supported-parameters)
|
23
20
|
- [Featured users (success stories!)](#featured-users-success-stories)
|
24
|
-
- [
|
25
|
-
- [
|
21
|
+
- [Next steps](#next-steps)
|
22
|
+
- [Getting help](#getting-help)
|
23
|
+
- [Credits and contributions](#contributions)
|
26
24
|
|
27
25
|
# Features
|
28
26
|
|
29
|
-
|
27
|
+
__Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the latest features!__
|
30
28
|
|
31
29
|
- **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes.
|
32
30
|
- **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit.
|
@@ -35,61 +33,69 @@ Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lates
|
|
35
33
|
- **Flexible usage**: Use Beautiful Jekyll directly on GitHub or via a Ruby gem - choose the best [development method](#build-your-website-in-3-steps) for you.
|
36
34
|
- **Battle-tested**: By using Beautiful Jekyll, you'll be joining 50,000+ users enjoying this theme since 2015.
|
37
35
|
- **SEO and social media support**: Customize how your site looks on Google and when shared on social media.
|
38
|
-
- **Comments support**: Add comments to any page using either [Disqus](https://disqus.com/), [Facebook comments](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/),
|
39
|
-
- **Tags**: Any blog post can be tagged with keywords, and an index page
|
36
|
+
- **Comments support**: Add comments to any page using either [Disqus](https://disqus.com/), [Facebook comments](https://developers.facebook.com/docs/plugins/comments), [Utterances](https://utteranc.es/), [Staticman](https://staticman.net), [giscus](https://giscus.app), or [CommentBox](https://commentbox.io/).
|
37
|
+
- **Tags**: Any blog post can be tagged with keywords, and an index page is automatically generated.
|
40
38
|
- **Analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website.
|
39
|
+
- **Search**: Let users easily find any page using a Search button in the navigation bar.
|
41
40
|
- **Photos support**: Any page can have a full-width cover photo and thumbnail.
|
42
41
|
- **RSS**: An RSS feed is automatically created, so you can even host a podcast easily with Beautiful Jekyll.
|
43
42
|
|
44
43
|
<h2 id="sponsors">Sponsors 🏆</h2>
|
45
44
|
|
46
|
-
|
45
|
+
Developing and maintaining Beautiful Jekyll takes a lot of time and effort - thank you to anyone who helps fund this effort!
|
46
|
+
|
47
|
+
- [DoFollow](https://dofollow.co.uk/)
|
48
|
+
- [\_hyp3ri0n](https://hyperiongray.com)
|
47
49
|
|
48
|
-
[Become
|
50
|
+
**[Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856)**
|
49
51
|
|
50
52
|
# Build your website in 3 steps
|
51
53
|
|
52
|
-
There
|
54
|
+
There are a few different ways to build a website using Beautiful Jekyll, and this document will go through the simplest one: using a fork on GitHub. For most people (including myself!), this easy method is the recommended one.
|
55
|
+
|
56
|
+
Even if you choose to use one of the [advanced installation methods](https://beautifuljekyll.com/getstarted/#install-steps-hard), I still suggest you read through the easy method first.
|
53
57
|
|
54
58
|
## The easy way (recommended!)
|
55
59
|
|
56
60
|
Getting started is *literally* as easy as 1-2-3 :smile:
|
57
61
|
|
58
|
-
Scroll down to see the steps involved, but here is a
|
62
|
+
Scroll down to see the steps involved, but here is a 30-second video just as a reference as you work through the steps. If you don't already have a [GitHub account](https://github.com), you'll need to sign up.
|
59
63
|
|
60
64
|
![Installation steps](assets/img/install-steps.gif)
|
61
65
|
|
62
66
|
### 1. Fork this project
|
63
67
|
|
64
|
-
|
68
|
+
Click on the __*Fork*__ button at the top right corner of this page. Forking means that you're copying this entire project and all its files into your account. Do not click on the __*Create fork*__ button on the next page yet.
|
65
69
|
|
66
|
-
### 2. Rename the
|
70
|
+
### 2. Rename the repository to `YOURUSERNAME.github.io`
|
67
71
|
|
68
|
-
|
72
|
+
You'll see the word "repository" used a lot in GitHub - it simply means "project". Under __*Repository name*__ you should see the name `beautiful-jekyll`, this is where you need to rename your project to `YOURUSERNAME.github.io` (replace `YOURUSERNAME` with your GitHub user name). It's important to use this exact name so that GitHub will recognize it and automatically create a website for this project.
|
69
73
|
|
74
|
+
> Tip: If you want to use a different URL for your website, check out the [FAQ](https://beautifuljekyll.com/faq/#custom-domain)
|
75
|
+
|
70
76
|
### 3. Customize your website settings
|
71
77
|
|
72
|
-
Edit the `_config.yml` file to change any settings you want. To edit the file, click on it to view the file and
|
78
|
+
Edit the `_config.yml` file to change any settings you want. To edit the file, first click on it to view the file, and on the next page click on the pencil icon to edit it (watch the video tutorial above if you're confused). The settings in the file are self-explanatory and there are comments inside the file to help you understand what each setting does. Any line that begins with a hashtag (`#`) is a comment, and the other lines are actual settings. After changing the settings, click the green __*Commit changes*__ button to save these edits.
|
73
79
|
|
74
|
-
Note
|
80
|
+
> Note: In the video above, only one setting in the `_config.yml` file is edited, but you should go through the rest of the settings as well.
|
75
81
|
|
76
82
|
### 4. Congratulations! You have a website!
|
77
83
|
|
78
|
-
|
84
|
+
If you named your project correctly and made an edit to the config file, your website should be ready in a minute or two at `https://YOURUSERNAME.github.io`. Every time you make a change to any file, your website will get rebuilt and should be updated in about a minute or so. Your website will be initialized with several sample blog posts and a couple other pages.
|
79
85
|
|
80
|
-
|
86
|
+
## The harder way (for advanced users)
|
81
87
|
|
82
|
-
|
88
|
+
The instructions above explain how to use Beautiful Jekyll in the easiest way: by forking on GitHub. There are more [advanced installation methods](https://beautifuljekyll.com/getstarted/#install-steps-hard) that include either using GitHub Pages with remote themes, or using Ruby gems. They provide you with more control, but are only intended for advanced users.
|
83
89
|
|
84
|
-
|
90
|
+
> Note: Beautiful Jekyll was primarily designed to be used as a GitHub theme, so you will not get any support if you use this theme via Ruby gems.
|
85
91
|
|
86
92
|
# Plans
|
87
93
|
|
88
|
-
Beautiful Jekyll is, and always will be, free. But if you want to remove the Beautiful Jekyll ad from your website, use a Dark Mode skin,
|
94
|
+
Beautiful Jekyll is, and always will be, free. But if you want to remove the Beautiful Jekyll ad from your website, use a Dark Mode skin, access office hours, or simply support the development efforts, [check out the different plans](https://beautifuljekyll.com/plans).
|
89
95
|
|
90
96
|
# Add your own content
|
91
97
|
|
92
|
-
To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file. It's much easier to write markdown than HTML, so
|
98
|
+
To add pages to your site, you can either write a markdown file (`.md`) or you can write an HTML file. It's much easier to write markdown than HTML, so that's the recommended approach ([here's a great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes).
|
93
99
|
|
94
100
|
To see an example of a markdown file, click on any file that ends in `.md`, for example [`aboutme.md`](./aboutme.md). On that page you can see some nicely formatted text (there's a word in bold, a link, a few bullet points), and if you click on the pencil icon to edit the file, you'll see the markdown code that generated the pretty text. Very easy!
|
95
101
|
|
@@ -137,9 +143,9 @@ Parameter | Description
|
|
137
143
|
title | Page or blog post title
|
138
144
|
subtitle | Short description of page or blog post that goes under the title
|
139
145
|
tags | List of tags to categorize the post. Separate the tags with commas and place them inside square brackets. Example: `[personal, analysis, finance]`
|
140
|
-
cover-img | Include a large full-width image at the top of the page. You can either provide the path to a single image (eg. `"/path/to/img"`) , or a list of images to cycle through (eg. `["/path/img1", "/path/img2"]`). If you want to add a caption to an image, then the image should be provided as `
|
146
|
+
cover-img | Include a large full-width image at the top of the page. You can either provide the path to a single image (eg. `"/path/to/img"`) , or a list of images to cycle through (eg. `["/path/img1", "/path/img2"]`). If you want to add a caption to an image, then you must use the list notation (use `[]` even if you have only one image), and each image should be provided as `"/path/to/img" : "Caption of image"`.
|
141
147
|
thumbnail-img | For blog posts, if you want to add a thumbnail that will show up in the feed, use `thumbnail-img: /path/to/image`. If no thumbnail is provided, then `cover-img` will be used as the thumbnail. You can use `thumbnail-img: ""` to disable a thumbnail.
|
142
|
-
comments | If you want do add comments to a specific page, use `comments: true`. Comments only work if you enable one of the comments providers (Facebook, disqus, staticman, utterances) in `_config.yml` file. Comments are automatically enabled on blog posts but not on other pages; to turn comments off for a specific post, use `comments: false`.
|
148
|
+
comments | If you want do add comments to a specific page, use `comments: true`. Comments only work if you enable one of the comments providers (Facebook, disqus, staticman, utterances, giscus, CommentBox) in `_config.yml` file. Comments are automatically enabled on blog posts but not on other pages; to turn comments off for a specific post, use `comments: false`.
|
143
149
|
|
144
150
|
## Parameters for SEO and social media sharing
|
145
151
|
|
@@ -197,22 +203,31 @@ Visit the [Official website](http://beautifuljekyll.com/examples) to see sample
|
|
197
203
|
|
198
204
|
If you'd like to showcase yourself and join this list, [upgrading to the Individual plan](https://github.com/sponsors/daattali/sponsorships?&tier_id=7362) will give you that publicity plus some other rewards!
|
199
205
|
|
200
|
-
#
|
206
|
+
# Next steps
|
201
207
|
|
202
|
-
|
208
|
+
Congratulations on making it this far! You now have all the tools to easily build a beautiful website for free.
|
203
209
|
|
204
|
-
|
210
|
+
I highly recommend going over the [*Frequently Asked Questions*](https://beautifuljekyll.com/faq/) to find out answers to questions you may not even know you have. Every few months I suggest checking the [*What's New?*](https://beautifuljekyll.com/updates/) page to see if there are new features, and learn [how to update your site to the newest version](https://beautifuljekyll.com/faq/#updating) when it's time.
|
211
|
+
|
212
|
+
You can also check out the [advanced installation methods](https://beautifuljekyll.com/getstarted/#install-steps-hard) that give you a little more control but are harder to use. Keep in mind that Beautiful Jekyll was primarily designed to be used as a GitHub theme, so you will not get any support if you choose one of the Ruby installation methods.
|
205
213
|
|
206
|
-
|
214
|
+
# Getting help
|
215
|
+
|
216
|
+
Visit the [FAQ page](https://beautifuljekyll.com/faq) for answers to commonly asked questions.
|
217
|
+
|
218
|
+
**If you choose to [become a sponsor](https://beautifuljekyll.com/plans/), you'll have access to my [office hours](https://beautifuljekyll.com/officehours/) where you can ask for help.** You can also use the [Discussions](https://github.com/daattali/beautiful-jekyll/discussions) area to try and get help from the community.
|
219
|
+
|
220
|
+
Beautiful Jekyll is used by 50,000+ people with wildly varying degrees of web skills, so it's impossible to answer all the questions that may arise. For any question that's not specifically related to Beautiful Jekyll and is more about Jekyll or web development in general, the answer can often be found on Google, in the [Jekyll documentation](https://jekyllrb.com/), or on the [Jekyll support forum](https://talk.jekyllrb.com/).
|
207
221
|
|
208
222
|
# Contributions
|
209
223
|
|
210
224
|
Thank you to [all past contributors](https://github.com/daattali/beautiful-jekyll/graphs/contributors). If you find any problems or would like to contribute in any way, feel free to create a pull request/open an issue/send me a message.
|
211
225
|
|
212
|
-
You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) to help keep Beautiful Jekyll well-maintained
|
226
|
+
You can also contribute by becoming an [official sponsor](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) to help keep Beautiful Jekyll well-maintained!
|
213
227
|
|
214
228
|
# Credits
|
215
229
|
|
216
230
|
This template was not made *entirely* from scratch. I'd like to give special thanks to [Jekyll Now](https://github.com/barryclark/jekyll-now) and [Bootstrap Clean Blog](https://github.com/IronSummitMedia/startbootstrap-clean-blog), from whom I've taken several ideas initially.
|
217
231
|
|
218
232
|
I'd also like to thank [Dr. Jekyll's Themes](https://drjekyllthemes.github.io/), [Jekyll Themes](http://jekyllthemes.org/), and another [Jekyll Themes](http://jekyllrc.github.io/jekyllthemes/) for featuring Beautiful Jekyll in their Jekyll theme directories.
|
233
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
{% if site.cloudflare_analytics %}
|
2
|
+
<!-- Cloudflare Web Analytics -->
|
3
|
+
<script defer
|
4
|
+
src='https://static.cloudflareinsights.com/beacon.min.js'
|
5
|
+
data-cf-beacon='{"token": "{{ site.cloudflare_analytics}}"}'>
|
6
|
+
</script>
|
7
|
+
<!-- End Cloudflare Web Analytics -->
|
8
|
+
{% endif %}
|
data/_includes/comments.html
CHANGED
data/_includes/footer.html
CHANGED
@@ -30,8 +30,13 @@
|
|
30
30
|
<a href="http://{{- site.matomo.uri -}}/index.php?module=CoreAdminHome&action=optOut" target="_blank" class="text_muted">Do-not-Track</a>
|
31
31
|
{% endif %}
|
32
32
|
{% endif%}
|
33
|
+
|
34
|
+
{% if site.edit_page_button and site.github.repository_url %}
|
35
|
+
•
|
36
|
+
<a title="Edit this page on GitHub" href="{{ site.github.repository_url }}/edit/{{ site.github.source.branch }}/{{ page.path }}" class="text_muted">Edit page</a>
|
37
|
+
{% endif%}
|
38
|
+
|
33
39
|
</p>
|
34
|
-
<!-- Please don't remove this, keep my open source work credited :) -->
|
35
40
|
{% unless site.remove-ads %}<p class="theme-by text-muted">
|
36
41
|
Powered by
|
37
42
|
<a href="https://beautifuljekyll.com">Beautiful Jekyll</a>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% if site.giscus.repository and site.giscus.hostname %}
|
2
|
+
|
3
|
+
<script src="https://{{ site.giscus.hostname }}/client.js"
|
4
|
+
data-repo="{{ site.giscus.repository }}"
|
5
|
+
data-repo-id="{{ site.giscus.repository-id }}"
|
6
|
+
data-category="{{ site.giscus.category }}"
|
7
|
+
data-category-id="{{ site.giscus.category-id }}"
|
8
|
+
data-mapping="{{ site.giscus.mapping }}"
|
9
|
+
data-reactions-enabled="{{ site.giscus.reactions-enabled }}"
|
10
|
+
data-emit-metadata="{{ site.giscus.emit-metadata }}"
|
11
|
+
data-theme="{{ site.giscus.theme }}"
|
12
|
+
crossorigin="anonymous"
|
13
|
+
async>
|
14
|
+
</script>
|
15
|
+
|
16
|
+
{% endif %}
|
@@ -1,5 +1,17 @@
|
|
1
1
|
{% if site.google_analytics %}
|
2
2
|
<!-- Google Analytics -->
|
3
|
+
{% unless site.gtag %}
|
4
|
+
<div id="bj-ganalytics-deprecated-msg" style="position: fixed; background: #b90404; bottom: 0; width: 100%; z-index: 10000; color: #f0f0f0; text-align: center;">
|
5
|
+
<div title="Close" onclick="$(this).parent().remove()" style="position: absolute; right: 5px; top: 0; font-size: 1.5em; line-height: 1; cursor: pointer;">×</div>
|
6
|
+
<div style="max-width: 800px; margin: auto; font-size: 1.1em">
|
7
|
+
This website is using outdated Google Analytics
|
8
|
+
<details style="font-size: 0.8em; margin-bottom: 5px;">
|
9
|
+
<summary>More info</summary>
|
10
|
+
As of July 2023, Google's Universal Analytics is going away and being replaced by Google Analytics 4. This website is still using the old Universal Analytics. In order to remove this message, the website owner must remove the <code>google_analytics</code> property in the website's config file, and optionally replace it with the new <code>gtag</code> property.
|
11
|
+
</details>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
{% endunless %}
|
3
15
|
<script>
|
4
16
|
(function (i, s, o, g, r, a, m) {
|
5
17
|
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
|
data/_includes/head.html
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
{% capture title %}
|
6
6
|
{%- if page.share-title -%}
|
7
|
-
{{ page.share-title }}
|
7
|
+
{{ page.share-title | strip_html | xml_escape }}
|
8
8
|
{%- elsif page.title -%}
|
9
|
-
{{ page.title }}
|
9
|
+
{{ page.title | strip_html | xml_escape }}
|
10
10
|
{%- else -%}
|
11
|
-
{{ site.title }}
|
11
|
+
{{ site.title | strip_html | xml_escape }}
|
12
12
|
{%- endif -%}
|
13
13
|
{% endcapture %}
|
14
14
|
|
15
15
|
{% capture description %}
|
16
16
|
{%- if page.share-description -%}
|
17
|
-
{{ page.share-description }}
|
17
|
+
{{ page.share-description | strip_html | xml_escape }}
|
18
18
|
{%- elsif page.subtitle -%}
|
19
|
-
{{ page.subtitle }}
|
19
|
+
{{ page.subtitle | strip_html | xml_escape }}
|
20
20
|
{%- else -%}
|
21
21
|
{%- assign excerpt_length = site.excerpt_length | default: 50 -%}
|
22
22
|
{{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }}
|
@@ -39,11 +39,14 @@
|
|
39
39
|
<meta name="keywords" content="{{ site.keywords }}">
|
40
40
|
{% endif %}
|
41
41
|
|
42
|
+
{% if site.rss-description %}
|
42
43
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
|
44
|
+
{% endif %}
|
43
45
|
|
44
46
|
{% include gtag.html %}
|
45
47
|
{% include gtm_head.html %}
|
46
48
|
{% include google_analytics.html %}
|
49
|
+
{% include cloudflare_analytics.html %}
|
47
50
|
|
48
51
|
{% if layout.common-ext-css %}
|
49
52
|
{% for css in layout.common-ext-css %}
|
data/_includes/header.html
CHANGED
@@ -27,13 +27,13 @@
|
|
27
27
|
<div class="row">
|
28
28
|
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
29
29
|
<div class="{{ include.type }}-heading">
|
30
|
-
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
30
|
+
<h1>{% if page.title %}{{ page.title | strip_html }}{% else %}<br/>{% endif %}</h1>
|
31
31
|
{% if page.subtitle %}
|
32
32
|
{% if include.type == "page" %}
|
33
33
|
<hr class="small">
|
34
|
-
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
34
|
+
<span class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</span>
|
35
35
|
{% else %}
|
36
|
-
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
36
|
+
<h2 class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</h2>
|
37
37
|
{% endif %}
|
38
38
|
{% endif %}
|
39
39
|
|
@@ -61,13 +61,13 @@
|
|
61
61
|
<div class="row">
|
62
62
|
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
63
63
|
<div class="{{ include.type }}-heading">
|
64
|
-
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
64
|
+
<h1>{% if page.title %}{{ page.title | strip_html }}{% else %}<br/>{% endif %}</h1>
|
65
65
|
{% if page.subtitle %}
|
66
66
|
{% if include.type == "page" %}
|
67
67
|
<hr class="small">
|
68
|
-
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
68
|
+
<span class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</span>
|
69
69
|
{% else %}
|
70
|
-
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
70
|
+
<h2 class="{{ include.type }}-subheading">{{ page.subtitle | strip_html }}</h2>
|
71
71
|
{% endif %}
|
72
72
|
{% endif %}
|
73
73
|
|
data/_includes/nav.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
<nav class="navbar navbar-expand-
|
1
|
+
<nav class="navbar navbar-expand-xl navbar-light fixed-top navbar-custom {% if page.nav-short %}top-nav-short-permanent{% else %}top-nav-regular{% endif %}">
|
2
2
|
|
3
3
|
{%- if site.title-img -%}
|
4
|
-
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img }}"/></a>
|
4
|
+
<a class="navbar-brand navbar-brand-logo" href="{{ '' | absolute_url }}"><img alt="{{ site.title }} Logo" src="{{ site.title-img | relative_url}}"/></a>
|
5
5
|
{%- elsif site.title -%}
|
6
6
|
<a class="navbar-brand" href="{{ '' | absolute_url }}">{{ site.title }}</a>
|
7
7
|
{%- endif -%}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{%- if link[1].first %}
|
17
17
|
<li class="nav-item dropdown">
|
18
18
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
|
19
|
-
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
19
|
+
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
20
20
|
{%- for childlink in link[1] -%}
|
21
21
|
{%- for linkparts in childlink %}
|
22
22
|
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>
|
@@ -30,9 +30,23 @@
|
|
30
30
|
</li>
|
31
31
|
{%- endif -%}
|
32
32
|
{%- endfor -%}
|
33
|
+
{% if site.post_search %}
|
34
|
+
<li class="nav-item">
|
35
|
+
<a class="nav-link" id="nav-search-link" href="#" title="Search">
|
36
|
+
<span id="nav-search-icon" class="fa fa-search"></span>
|
37
|
+
<span id="nav-search-text">Search</span>
|
38
|
+
</a>
|
39
|
+
</li>
|
40
|
+
{%- endif -%}
|
33
41
|
</ul>
|
34
42
|
</div>
|
35
43
|
|
44
|
+
{% if site.navbar-extra %}
|
45
|
+
{% for file in site.navbar-extra %}
|
46
|
+
{% include {{ file }} %}
|
47
|
+
{% endfor %}
|
48
|
+
{% endif %}
|
49
|
+
|
36
50
|
{% if site.avatar and page.show-avatar != false %}
|
37
51
|
<div class="avatar-container">
|
38
52
|
<div class="avatar-img-border">
|
@@ -44,3 +58,5 @@
|
|
44
58
|
{% endif %}
|
45
59
|
|
46
60
|
</nav>
|
61
|
+
|
62
|
+
{% include search.html %}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{% if site.post_search %}
|
2
|
+
|
3
|
+
<div id="beautifuljekyll-search-overlay">
|
4
|
+
|
5
|
+
<div id="nav-search-exit" title="Exit search">✕</div>
|
6
|
+
<input type="text" id="nav-search-input" placeholder="Search">
|
7
|
+
<ul id="search-results-container"></ul>
|
8
|
+
|
9
|
+
<script src="https://unpkg.com/simple-jekyll-search@latest/dest/simple-jekyll-search.min.js"></script>
|
10
|
+
<script>
|
11
|
+
var searchjson = '[ \
|
12
|
+
{% for post in site.posts %} \
|
13
|
+
{ \
|
14
|
+
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \
|
15
|
+
"category" : "{{ post.tags | join: \', \' }}", \
|
16
|
+
"url" : "{{ site.baseurl }}{{ post.url }}", \
|
17
|
+
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \
|
18
|
+
}, \
|
19
|
+
{% endfor %} \
|
20
|
+
{% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %} \
|
21
|
+
{ \
|
22
|
+
"title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \
|
23
|
+
"category" : "{% if page.tags %}{{ page.tags | join: \', \' }}{% else %}page{% endif %}", \
|
24
|
+
"url" : "{{ site.baseurl }}{{ page.url }}", \
|
25
|
+
"date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}" \
|
26
|
+
}{% unless forloop.last %},{% endunless %} \
|
27
|
+
{% endif %}{% endfor %} \
|
28
|
+
]';
|
29
|
+
searchjson = JSON.parse(searchjson);
|
30
|
+
|
31
|
+
var sjs = SimpleJekyllSearch({
|
32
|
+
searchInput: document.getElementById('nav-search-input'),
|
33
|
+
resultsContainer: document.getElementById('search-results-container'),
|
34
|
+
json: searchjson
|
35
|
+
});
|
36
|
+
</script>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
{% endif %}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<ul class="list-inline text-center footer-links">
|
2
2
|
|
3
|
-
{%- if site.rss-description -%}
|
3
|
+
{%- if site.social-network-links.rss and site.rss-description -%}
|
4
4
|
<li class="list-inline-item">
|
5
5
|
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
|
6
6
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
@@ -230,7 +230,7 @@
|
|
230
230
|
|
231
231
|
{%- if site.social-network-links.mastodon -%}
|
232
232
|
<li class="list-inline-item">
|
233
|
-
<a href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
|
233
|
+
<a rel="me" href="https://{{ site.social-network-links.mastodon }}" title="Mastodon">
|
234
234
|
<span class="fa-stack fa-lg" aria-hidden="true">
|
235
235
|
<i class="fas fa-circle fa-stack-2x"></i>
|
236
236
|
<i class="fab fa-mastodon fa-stack-1x fa-inverse"></i>
|
@@ -248,7 +248,7 @@
|
|
248
248
|
<i class="fab fa-orcid fa-stack-1x fa-inverse"></i>
|
249
249
|
</span>
|
250
250
|
<span class="sr-only">ORCID</span>
|
251
|
-
|
251
|
+
</a>
|
252
252
|
</li>
|
253
253
|
{%- endif -%}
|
254
254
|
|
@@ -260,8 +260,84 @@
|
|
260
260
|
<i class="fa fa-graduation-cap fa-stack-1x fa-inverse"></i>
|
261
261
|
</span>
|
262
262
|
<span class="sr-only">Google Scholar</span>
|
263
|
+
</a>
|
264
|
+
</li>
|
265
|
+
{%- endif -%}
|
266
|
+
|
267
|
+
{%- if site.social-network-links.patreon -%}
|
268
|
+
<li class="list-inline-item">
|
269
|
+
<a href="https://patreon.com/{{ site.social-network-links.patreon }}" title="Patreon">
|
270
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
271
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
272
|
+
<i class="fab fa-patreon fa-stack-1x fa-inverse"></i>
|
273
|
+
</span>
|
274
|
+
<span class="sr-only">Patreon</span>
|
275
|
+
</a>
|
276
|
+
</li>
|
277
|
+
{%- endif -%}
|
278
|
+
|
279
|
+
{%- if site.social-network-links.medium -%}
|
280
|
+
<li class="list-inline-item">
|
281
|
+
<a href="https://medium.com/@{{ site.social-network-links.medium }}" title="Medium">
|
282
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
283
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
284
|
+
<i class="fab fa-medium fa-stack-1x fa-inverse"></i>
|
285
|
+
</span>
|
286
|
+
<span class="sr-only">Medium</span>
|
287
|
+
</a>
|
288
|
+
</li>
|
289
|
+
{%- endif -%}
|
290
|
+
|
291
|
+
{%- if site.social-network-links.itchio -%}
|
292
|
+
<li class="list-inline-item">
|
293
|
+
<a href="https://{{ site.social-network-links.itchio }}.itch.io/" title="Itchio">
|
294
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
295
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
296
|
+
<i class="fab fa-itch-io fa-stack-1x fa-inverse"></i>
|
297
|
+
</span>
|
298
|
+
<span class="sr-only">Itchio</span>
|
263
299
|
</a>
|
264
300
|
</li>
|
265
|
-
|
301
|
+
{%- endif -%}
|
302
|
+
|
303
|
+
{%- if site.social-network-links.discord -%}
|
304
|
+
{% assign discord_start = site.social-network-links.discord | split: "/" | first -%}
|
305
|
+
{% unless discord_start == 'users' or discord_start == 'invite' -%}
|
306
|
+
{% assign discord_url_prefix = 'invite/' -%}
|
307
|
+
{% endunless -%}
|
308
|
+
<li class="list-inline-item">
|
309
|
+
<a href="https://discord.com/{{discord_url_prefix}}{{site.social-network-links.discord}}" title="Discord">
|
310
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
311
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
312
|
+
<i class="fab fa-discord fa-stack-1x fa-inverse"></i>
|
313
|
+
</span>
|
314
|
+
<span class="sr-only">Discord</span>
|
315
|
+
</a>
|
316
|
+
</li>
|
317
|
+
{%- endif -%}
|
318
|
+
|
319
|
+
{%- if site.social-network-links.kaggle -%}
|
320
|
+
<li class="list-inline-item">
|
321
|
+
<a href="https://www.kaggle.com/{{ site.social-network-links.kaggle }}" title="Kaggle">
|
322
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
323
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
324
|
+
<i class="fab fa-kaggle fa-stack-1x fa-inverse"></i>
|
325
|
+
</span>
|
326
|
+
<span class="sr-only">Kaggle</span>
|
327
|
+
</a>
|
328
|
+
</li>
|
329
|
+
{%- endif -%}
|
330
|
+
|
331
|
+
{%- if site.social-network-links.hackerrank -%}
|
332
|
+
<li class="list-inline-item">
|
333
|
+
<a href="https://www.hackerrank.com/{{ site.social-network-links.hackerrank }}" title="Hackerrank">
|
334
|
+
<span class="fa-stack fa-lg" aria-hidden="true">
|
335
|
+
<i class="fas fa-circle fa-stack-2x"></i>
|
336
|
+
<i class="fab fa-hackerrank fa-stack-1x fa-inverse"></i>
|
337
|
+
</span>
|
338
|
+
<span class="sr-only">Hackerrank</span>
|
339
|
+
</a>
|
340
|
+
</li>
|
341
|
+
{%- endif -%}
|
266
342
|
|
267
343
|
</ul>
|
data/_includes/social-share.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
<span class="sr-only">Share: </span>
|
12
12
|
|
13
13
|
{% if site.share-links-active.twitter %}
|
14
|
-
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
14
|
+
<a href="https://twitter.com/intent/tweet?text={{ page.title | strip_html | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
|
15
15
|
class="btn btn-social-icon btn-twitter" title="Share on Twitter">
|
16
16
|
<span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
|
17
17
|
<span class="sr-only">Twitter</span>
|
@@ -42,6 +42,14 @@
|
|
42
42
|
</a>
|
43
43
|
{% endif %}
|
44
44
|
|
45
|
+
{% if site.share-links-active.reddit %}
|
46
|
+
<a href="https://www.reddit.com/submit?url={{ page.url | absolute_url | url_encode }}"
|
47
|
+
class="btn btn-social-icon btn-reddit" title="Share on Reddit">
|
48
|
+
<span class="fab fa-fw fa-reddit" aria-hidden="true"></span>
|
49
|
+
<span class="sr-only">Reddit</span>
|
50
|
+
</a>
|
51
|
+
{% endif %}
|
52
|
+
|
45
53
|
</section>
|
46
54
|
|
47
55
|
{% endif %}
|
data/_layouts/base.html
CHANGED
@@ -21,7 +21,7 @@ common-js:
|
|
21
21
|
|
22
22
|
<!DOCTYPE html>
|
23
23
|
<html lang="{{ page.language | default: site.language | default: 'en' }}">
|
24
|
-
<!-- Beautiful Jekyll
|
24
|
+
<!-- Beautiful Jekyll 6.0.1 | Copyright Dean Attali 2023 -->
|
25
25
|
{% include head.html %}
|
26
26
|
|
27
27
|
<body>
|