From e8de7726c53c27095526be30dcbe2aef65676803 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 27 Nov 2020 21:58:24 +0200 Subject: [PATCH 1/9] fix(#744): Escape special characters in title (#745) --- CHANGELOG.md | 1 + _includes/head.html | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eb2427..26d013f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fixed bug where using an image as a navbar title did not render in GitHub Project pages that did not have a custom domain - Fixed issue where image thumbnails on the feed page were always forced into a square rather than maintaining a proper image aspect ratio - Added support for Patreon in the social network links in the footer +- Fixed bug where special characters in the title led to broken share tags (#744) ## v5.0.0 (2020-09-15) diff --git a/_includes/head.html b/_includes/head.html index 9d43c46..730e967 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,19 +4,19 @@ {% capture title %} {%- if page.share-title -%} - {{ page.share-title }} + {{ page.share-title | strip_html | xml_escape }} {%- elsif page.title -%} - {{ page.title }} + {{ page.title | strip_html | xml_escape }} {%- else -%} - {{ site.title }} + {{ site.title | strip_html | xml_escape }} {%- endif -%} {% endcapture %} {% capture description %} {%- if page.share-description -%} - {{ page.share-description }} + {{ page.share-description | strip_html | xml_escape }} {%- elsif page.subtitle -%} - {{ page.subtitle }} + {{ page.subtitle | strip_html | xml_escape }} {%- else -%} {%- assign excerpt_length = site.excerpt_length | default: 50 -%} {{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }} -- 2.45.2 From 00d377c850653b3451a41d3682767cd8adf86590 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sat, 5 Dec 2020 18:48:28 -0500 Subject: [PATCH 2/9] add matt artist as sponsor --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ceaa70..d55e7dd 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,9 @@ Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lates

Sponsors 🏆

-> There are no sponsors yet +- [Matt Artist](https://mja00.dev/) -[Become the first sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) +[Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) # Build your website in 3 steps -- 2.45.2 From e2feb189dade956bc354a3c9250284551ff9d6f0 Mon Sep 17 00:00:00 2001 From: Amy Troschinetz Date: Mon, 7 Dec 2020 23:38:52 -0800 Subject: [PATCH 3/9] Fix margin top alignment issue on Safari (#750) --- CHANGELOG.md | 1 + assets/css/beautifuljekyll.css | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d013f..60fe0e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Unreleased version +- Slightly reworked margins and position for avatar image to resolve an alignment issue on Safari. - Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px - Fixed bug where navbar secondary level dropdown items didn't inherit te same colour as the primary navbar links - Fixed bug where the navbar "burger" collapsed button didn't always revert back to a light colour diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 6a16b8c..f53097e 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -311,7 +311,7 @@ img { position: absolute; left: 50%; width: 3.125rem; - margin-top: 3.1rem; + bottom: -1.5rem; transition: opacity 0.5s ease-in-out; -webkit-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out; @@ -349,6 +349,7 @@ img { @media (min-width: 1200px) { .navbar-custom.top-nav-regular .avatar-container { width: 6.25rem; + bottom: -1.9375rem; } .navbar-custom.top-nav-regular .avatar-container .avatar-img-border { -- 2.45.2 From f8b93db7265a7a17ce36ad8ff476093992e58711 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 9 Dec 2020 17:26:39 -0500 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d55e7dd..9c12aad 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ Visit the [official FAQ page](https://beautifuljekyll.com/faq) for answers to co 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/). -To receive support, select one of the [different plans](https://beautifuljekyll.com/plans) Beautiful Jekyll offers. +To receive support, select one of the [different plans](https://beautifuljekyll.com/plans) Beautiful Jekyll offers. You can also use the [Discussions](https://github.com/daattali/beautiful-jekyll/discussions) area to try to get help from the community. # Contributions -- 2.45.2 From 610af684efcfda25fad058da6818a37cfa882dc3 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Thu, 10 Dec 2020 18:54:42 -0500 Subject: [PATCH 5/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9c12aad..e4110ad 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lates

Sponsors 🏆

- [Matt Artist](https://mja00.dev/) +- [\_hyp3ri0n](https://hyperiongray.com) [Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) -- 2.45.2 From f731a90a096cff386a19fd8f0087ac23adde540e Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 17 Jan 2021 20:33:33 -0500 Subject: [PATCH 6/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e4110ad..5589161 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,8 @@ Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lates

Sponsors 🏆

+Developing and maintaining Beautiful Jekyll takes a lot of time and effort - thank you to anyone who helps fund this effort! + - [Matt Artist](https://mja00.dev/) - [\_hyp3ri0n](https://hyperiongray.com) -- 2.45.2 From fe0a48eea01d0351c8bff7473b5d58482da47da9 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 17 Jan 2021 22:19:17 -0500 Subject: [PATCH 7/9] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5589161..8c79583 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Developing and maintaining Beautiful Jekyll takes a lot of time and effort - tha # Build your website in 3 steps -There's a very easy way to use this theme, and there's a hard way. For most people (including myself!), I suggest going the easy route. If you're an advanced user and want to tinker with the hard way (using ruby gems), then [skip the easy way](https://github.com/daattali/beautiful-jekyll#the-hard-way-using-ruby-gems) if you know what you're doing. +There's a very easy way to use this theme, and there's a hard way. For most people (including myself!), the easy route is recommended. If you're an advanced user and want to tinker with the hard way (using ruby gems), then [skip the easy way](https://github.com/daattali/beautiful-jekyll#the-hard-way-using-ruby-gems) if you know what you're doing. ## The easy way (recommended!) @@ -72,9 +72,9 @@ Click on __*Settings*__ at the top (the cog icon) and on that page you'll have a ### 3. Customize your website settings -Edit the `_config.yml` file to change any settings you want. To edit the file, click on it to view the file and then 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 I added 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. +Edit the `_config.yml` file to change any settings you want. To edit the file, click on it to view the file and then 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. -Note that in the video above I only edited one setting in the `_config.yml` file. **You should actually go through the rest of the settings as well. Don't be lazy, go through all the settings!** +Note that in the video above only one setting in the `_config.yml` file is edited. **You should actually go through the rest of the settings as well. Don't be lazy, go through all the settings!** ### 4. Congratulations! You have a website! @@ -88,11 +88,11 @@ If you followed the easy method above, then you already have your site and you c # Plans -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, unlock other special rewards, or simply support my development efforts, [check out the different plans](https://beautifuljekyll.com/plans). +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, unlock other special rewards, or simply support the development efforts, [check out the different plans](https://beautifuljekyll.com/plans). # Add your own content -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 I suggest you do that ([here's a great tutorial](https://markdowntutorial.com/) if you need to learn markdown in 5 minutes). +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). 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! -- 2.45.2 From 17656775873962b51ff59d6815460ab518f19674 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Thu, 4 Feb 2021 17:28:36 +0100 Subject: [PATCH 8/9] Remove references to any public Staticman API instance (#775) --- _config.yml | 20 ++++++++++---------- assets/js/staticman.js | 2 +- staticman.yml | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/_config.yml b/_config.yml index 9644d21..0bcd2a3 100644 --- a/_config.yml +++ b/_config.yml @@ -161,19 +161,19 @@ footer-link-col: "#404040" # theme: github-light # Utterances theme # label: blog-comments # Label that will be assigned to GitHub Issues created by Utterances -# To use Staticman comments, first invite `staticmanlab` as a collaborator to your repository and -# accept the invitation by going to `https://staticman3.herokuapp.com/v3/connect/github//`. -# Then uncomment the following section and fill in "repository" and "branch". -# If you want to use reCaptcha for staticman (optional for spam protection), then fill -# in the "siteKey" and "secret" parameters below and also in `staticman.yml`. -# See more details at https://staticman.net/ +# To use Staticman comments, uncomment the following section. You may leave the reCaptcha +# section commented if you aren't using reCaptcha for spam protection. +# Using Staticman requires advanced knowledge, please consult +# https://github.com/eduardoboucas/staticman/ and https://staticman.net/ for further +# instructions. For any support with staticman please direct questions to staticman and +# not to BeautifulJekyll. #staticman: # repository : # GitHub username/repository eg. "daattali/beautiful-jekyll" # branch : master # If you're not using `master` branch, then you also need to update the `branch` parameter in `staticman.yml` -# endpoint : # (optional) URL of your own deployment, with a trailing slash eg. https:///v3/entry/github/ (will fallback to a public GitLab instance) -# reCaptcha: -# siteKey : # Use your own site key, you need to apply for one on Google -# secret : # ENCRYPT your password by going to https://staticman3.herokuapp.com/v3/encrypt/ +# endpoint : # URL of your deployment, with a trailing slash eg. "https:///v3/entry/github/" +# reCaptcha: # (optional, set these parameters in `staticman.yml` as well) +# siteKey : # You need to apply for a site key on Google +# secret : # Encrypt your password by going to https:///v3/encrypt/ # --- Misc --- # diff --git a/assets/js/staticman.js b/assets/js/staticman.js index 09422a6..e8bdfbe 100644 --- a/assets/js/staticman.js +++ b/assets/js/staticman.js @@ -11,7 +11,7 @@ layout: null $(form).addClass('disabled'); {% assign sm = site.staticman -%} - var endpoint = '{{ sm.endpoint | default: "https://staticman3.herokuapp.com/v3/entry/github/" }}'; + var endpoint = '{{ sm.endpoint }}'; var repository = '{{ sm.repository }}'; var branch = '{{ sm.branch }}'; diff --git a/staticman.yml b/staticman.yml index 8fe1bad..45e939b 100644 --- a/staticman.yml +++ b/staticman.yml @@ -5,7 +5,7 @@ # To encrypt strings use the following endpoint: # https://{STATICMAN API INSTANCE}/v3/encrypt/{TEXT TO BE ENCRYPTED} # {STATICMAN API INSTANCE} should match the `endpoint` in the theme config -# file. It defaults to "staticman3.herokuapp.com". +# file. comments: # (*) REQUIRED -- 2.45.2 From a0cf83da4a1c6feefd153a0932a165ae0b14e36d Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Thu, 4 Feb 2021 11:30:56 -0500 Subject: [PATCH 9/9] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fe0e5..374c031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,13 @@ - Slightly reworked margins and position for avatar image to resolve an alignment issue on Safari. - Changed the width at which the navbar collapses to a higher threshold because most modern non-mobile browsers are >1000px -- Fixed bug where navbar secondary level dropdown items didn't inherit te same colour as the primary navbar links +- Fixed bug where navbar secondary level dropdown items didn't inherit the same colour as the primary navbar links - Fixed bug where the navbar "burger" collapsed button didn't always revert back to a light colour - Fixed bug where using an image as a navbar title did not render in GitHub Project pages that did not have a custom domain - Fixed issue where image thumbnails on the feed page were always forced into a square rather than maintaining a proper image aspect ratio - Added support for Patreon in the social network links in the footer - Fixed bug where special characters in the title led to broken share tags (#744) +- Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775) ## v5.0.0 (2020-09-15) -- 2.45.2