From 99fdbbd59354193e51525910eee09c855512e176 Mon Sep 17 00:00:00 2001 From: Leedan Date: Mon, 17 May 2021 15:00:46 +0800 Subject: [PATCH 001/126] Include Reddit in share options of posts (#815) --- CHANGELOG.md | 1 + _includes/social-share.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index efa729669443..33579fe1973a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - 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) - Added support for Cloudflare Analytics (#797) +- Added Reddit in share options of posts (#815) ## v5.0.0 (2020-09-15) diff --git a/_includes/social-share.html b/_includes/social-share.html index 2091c883b583..c04f445f833c 100644 --- a/_includes/social-share.html +++ b/_includes/social-share.html @@ -42,6 +42,14 @@ {% endif %} + {% if site.share-links-active.reddit %} + + + Reddit + + {% endif %} + {% endif %} From 950c341739a876b0f73de23e59839b42e8869b69 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 30 May 2021 19:54:17 +0000 Subject: [PATCH 002/126] add search to the navbar using 'post_search' config param --- CHANGELOG.md | 1 + README.md | 5 +- _config.yml | 3 ++ _includes/nav.html | 10 ++++ _includes/search.html | 39 ++++++++++++++ assets/css/beautifuljekyll.css | 95 ++++++++++++++++++++++++++++++++++ assets/js/beautifuljekyll.js | 21 ++++++++ 7 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 _includes/search.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 33579fe1973a..d87419b841ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Unreleased version +- Added search to the navbar (can be turned off in the config file) (#770) - 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 the same colour as the primary navbar links diff --git a/README.md b/README.md index 8c79583ba8ae..28f05b47c29c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ # Features -Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the latest features. +__Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the latest features.__ - **SIMPLE**: The primary goal of Beautiful Jekyll is to allow literally *anyone* to create a website in a few minutes. - **Modern**: Uses the latest best practices and technologies to achieve nearly perfect scores on Google Chrome's Audit. @@ -36,8 +36,9 @@ Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lates - **Battle-tested**: By using Beautiful Jekyll, you'll be joining 50,000+ users enjoying this theme since 2015. - **SEO and social media support**: Customize how your site looks on Google and when shared on social media. - **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/), or [Staticman](https://staticman.net). -- **Tags**: Any blog post can be tagged with keywords, and an index page showing all the tags is automatically generated. +- **Tags**: Any blog post can be tagged with keywords, and an index page is automatically generated. - **Analytics**: Easily integrate Google Analytics, or other analytics platforms, to track visits to your website. +- **Search**: Let users easily find any page using a Search button in the navigation bar. - **Photos support**: Any page can have a full-width cover photo and thumbnail. - **RSS**: An RSS feed is automatically created, so you can even host a podcast easily with Beautiful Jekyll. diff --git a/_config.yml b/_config.yml index 8bc1f89d7c74..bf1783da1928 100644 --- a/_config.yml +++ b/_config.yml @@ -89,6 +89,9 @@ feed_show_excerpt: true # Whether or not to show a list of tags below each post preview in the feed page feed_show_tags: true +# Add a search button to the navbar +post_search: true + # The keywords to associate with your website, for SEO purposes #keywords: "my,list,of,keywords" diff --git a/_includes/nav.html b/_includes/nav.html index ae8294ee8871..a1adfbc254c1 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -30,6 +30,14 @@ {%- endif -%} {%- endfor -%} + {% if site.post_search %} + + {%- endif -%} @@ -50,3 +58,5 @@ {% endif %} + +{% include search.html %} diff --git a/_includes/search.html b/_includes/search.html new file mode 100644 index 000000000000..7924fd08b213 --- /dev/null +++ b/_includes/search.html @@ -0,0 +1,39 @@ +{% if site.post_search %} + +
+ + + +
    + + + +
    + +{% endif %} diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index f53097ef5db8..719dab377c97 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -993,3 +993,98 @@ pre { display: block; margin: 0 auto; } + +/* Search bar */ +#beautifuljekyll-search-overlay { + display: none; + z-index: 999999; + position: fixed; + background: rgba(0,0,0,0.9); + left: 0; + right: 0; + top: 0; + bottom: 0; + text-align: center; + padding: 1rem; +} +#nav-search-exit { + position: absolute; + top: 1.5rem; + cursor: pointer; + right: 25%; + margin-right: 2rem; + color: #555; + font-size: 2rem; + line-height: 2rem; + font-weight: bold; +} +#nav-search-exit:hover { + color: #000; +} +#nav-search-input { + text-align: center; + background: #e7edee; + margin: auto; + display: block; + font-size: 2rem; + width: 50%; + transition: width 300ms ease; + color: #222; + border-radius: 5rem; + outline: none; + border: none; + padding: 0 3rem; +} +@media (max-width: 1199px) { + #nav-search-input { + width: 75%; + } + #nav-search-exit { + right: 12.5%; + } +} +@media (max-width: 767px) { + #nav-search-input { + width: 100%; + } + #nav-search-exit { + right: 0; + } +} +#nav-search-input:focus { + background: #f3f8fe; + box-shadow: 0px 0.15rem 1rem #e7f4ff; + outline: none; +} + +#nav-search-input::placeholder { + color: #777; +} + +#search-results-container { + list-style: none; + padding-left: unset; + margin-top: 1.5rem; + color: #fff; + font-size: 1.5rem; +} +#search-results-container a, +#search-results-container a:hover { + color: #fff; +} + +#nav-search-icon { + display: inline-block; +} +#nav-search-text { + display: none; +} + +@media (max-width: 1199px) { + #nav-search-icon { + display: none; + } + #nav-search-text { + display: inline-block; + } +} diff --git a/assets/js/beautifuljekyll.js b/assets/js/beautifuljekyll.js index bcddc6798998..48a3adadb995 100644 --- a/assets/js/beautifuljekyll.js +++ b/assets/js/beautifuljekyll.js @@ -27,6 +27,8 @@ var BeautifulJekyllJS = { // show the big header image BeautifulJekyllJS.initImgs(); + + BeautifulJekyllJS.initSearch(); }, initNavbar : function() { @@ -108,6 +110,25 @@ var BeautifulJekyllJS = { } else { $(".img-desc").hide(); } + }, + + initSearch : function() { + if (!document.getElementById("beautifuljekyll-search-overlay")) { + return; + } + + $("#nav-search-link").click(function(e) { + e.preventDefault(); + $("#beautifuljekyll-search-overlay").show(); + $("#nav-search-input").focus().select(); + }); + $("#nav-search-exit").click(function(e) { + e.preventDefault(); + $("#beautifuljekyll-search-overlay").hide(); + }); + $(document).on('keyup', function(e) { + if (e.key == "Escape") $("#beautifuljekyll-search-overlay").hide(); + }); } }; From 711dd39059698f422ebf1a3cdb00b161f0871b9a Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 30 May 2021 16:01:56 -0400 Subject: [PATCH 003/126] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d87419b841ba..4aae898c8d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Unreleased version -- Added search to the navbar (can be turned off in the config file) (#770) +- Added `post_search` config setting that creates a Search button in the navbar (older websites need to set `post_search: true` to enable this feature) (#770) - 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 the same colour as the primary navbar links From fd1e03ae06c7d03f5bdd49eb688007b9e55ba273 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 30 May 2021 16:06:02 -0400 Subject: [PATCH 004/126] ui: make sure search results dont have underline until hovered --- assets/css/beautifuljekyll.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 719dab377c97..5bcc5da5283b 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -1068,9 +1068,13 @@ pre { color: #fff; font-size: 1.5rem; } -#search-results-container a, +#search-results-container a { + color: #fff; + text-decoration: none; +} #search-results-container a:hover { color: #fff; + text-decoration: underline; } #nav-search-icon { From 30a757de4741301dfefb2b20630eb5dece98b97a Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 30 May 2021 20:19:44 +0000 Subject: [PATCH 005/126] search feature: make sure page scrollbar disappears when searching but a scrollbar for search items shows if needed --- assets/css/beautifuljekyll.css | 2 ++ assets/js/beautifuljekyll.js | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 5bcc5da5283b..4e809c4c1783 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -1067,6 +1067,8 @@ pre { margin-top: 1.5rem; color: #fff; font-size: 1.5rem; + max-height: calc(100vh - 6.5rem); + overflow-y: auto; } #search-results-container a { color: #fff; diff --git a/assets/js/beautifuljekyll.js b/assets/js/beautifuljekyll.js index 48a3adadb995..4a7ab7f314e4 100644 --- a/assets/js/beautifuljekyll.js +++ b/assets/js/beautifuljekyll.js @@ -121,13 +121,18 @@ var BeautifulJekyllJS = { e.preventDefault(); $("#beautifuljekyll-search-overlay").show(); $("#nav-search-input").focus().select(); + $("body").addClass("overflow-hidden"); }); $("#nav-search-exit").click(function(e) { e.preventDefault(); $("#beautifuljekyll-search-overlay").hide(); + $("body").removeClass("overflow-hidden"); }); $(document).on('keyup', function(e) { - if (e.key == "Escape") $("#beautifuljekyll-search-overlay").hide(); + if (e.key == "Escape") { + $("#beautifuljekyll-search-overlay").hide(); + $("body").removeClass("overflow-hidden"); + } }); } }; From 419ade4a35ca37f4b14ae42f222f0f39880c17d3 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 25 Aug 2021 15:20:56 -0400 Subject: [PATCH 006/126] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 28f05b47c29c..e633837be58a 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,9 @@ __Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lat 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/) +- [DoFollow](https://dofollow.co.uk/) - [\_hyp3ri0n](https://hyperiongray.com) +- [GentianGashi](https://gentiangashi.co.uk/) [Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) From 0fe5fabc9acbbf45f860eba34a62145f67451b99 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 25 Aug 2021 15:32:29 -0400 Subject: [PATCH 007/126] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e633837be58a..66c6c13631e4 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ Developing and maintaining Beautiful Jekyll takes a lot of time and effort - tha - [DoFollow](https://dofollow.co.uk/) - [\_hyp3ri0n](https://hyperiongray.com) -- [GentianGashi](https://gentiangashi.co.uk/) +- [Gentian Gashi](https://gentiangashi.co.uk/) +- [Matthew Trontz](https://github.com/mtrontz-the-dev) [Become a sponsor for Beautiful Jekyll and unlock special rewards\!](https://github.com/sponsors/daattali/sponsorships?tier_id=39856) From 85444cbac5a66fcce871a8095a2543dec086f932 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 15 Sep 2021 13:26:08 -0700 Subject: [PATCH 008/126] add loadview sponsor --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 66c6c13631e4..26f2a50320f2 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ __Check out [*What's New?*](https://beautifuljekyll.com/updates/) to see the lat Developing and maintaining Beautiful Jekyll takes a lot of time and effort - thank you to anyone who helps fund this effort! +- [LoadView-Testing](https://www.loadview-testing.com/products/jmeter-load-testing/) - [DoFollow](https://dofollow.co.uk/) - [\_hyp3ri0n](https://hyperiongray.com) - [Gentian Gashi](https://gentiangashi.co.uk/) From 452f1e025ef9cca6fb9a7b9ed5a0362a8b76cd67 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Sun, 10 Oct 2021 04:02:32 +0200 Subject: [PATCH 009/126] IE & jQuery slim compatible Staticman JS (#782) --- assets/js/staticman.js | 55 ++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/assets/js/staticman.js b/assets/js/staticman.js index e8bdfbe2e667..b52708ff0161 100644 --- a/assets/js/staticman.js +++ b/assets/js/staticman.js @@ -14,29 +14,42 @@ layout: null var endpoint = '{{ sm.endpoint }}'; var repository = '{{ sm.repository }}'; var branch = '{{ sm.branch }}'; + let url = endpoint + repository + '/' + branch + '/comments'; + let data = $(this).serialize(); - $.ajax({ - type: $(this).attr('method'), - url: endpoint + repository + '/' + branch + '/comments', - data: $(this).serialize(), - contentType: 'application/x-www-form-urlencoded', - success: function (data) { - $('#comment-form-submit').addClass('d-none'); - $('#comment-form-submitted').removeClass('d-none'); - $('.page__comments-form .js-notice').removeClass('alert-danger'); - $('.page__comments-form .js-notice').addClass('alert-success'); - showAlert('success'); - }, - error: function (err) { - console.log(err); - $('#comment-form-submitted').addClass('d-none'); - $('#comment-form-submit').removeClass('d-none'); - $('.page__comments-form .js-notice').removeClass('alert-success'); - $('.page__comments-form .js-notice').addClass('alert-danger'); - showAlert('failure'); - $(form).removeClass('disabled'); + var xhr = new XMLHttpRequest(); + xhr.open("POST", url); + xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); + xhr.onreadystatechange = function () { + if(xhr.readyState === XMLHttpRequest.DONE) { + var status = xhr.status; + if (status >= 200 && status < 400) { + formSubmitted(); + } else { + formError(); + } } - }); + }; + + function formSubmitted() { + $('#comment-form-submit').addClass('d-none'); + $('#comment-form-submitted').removeClass('d-none'); + $('.page__comments-form .js-notice').removeClass('alert-danger'); + $('.page__comments-form .js-notice').addClass('alert-success'); + showAlert('success'); + } + + function formError() { + $('#comment-form-submitted').addClass('d-none'); + $('#comment-form-submit').removeClass('d-none'); + $('.page__comments-form .js-notice').removeClass('alert-success'); + $('.page__comments-form .js-notice').addClass('alert-danger'); + showAlert('failure'); + $(form).removeClass('disabled'); + } + + xhr.send(data); return false; }); From f6dd3dca5e4bca8ae18632399add9b3801b20c92 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sat, 9 Oct 2021 22:04:32 -0400 Subject: [PATCH 010/126] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aae898c8d54..595251c771f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775) - Added support for Cloudflare Analytics (#797) - Added Reddit in share options of posts (#815) +- Fixed bug where staticman didn't work jQuery slim version is used (#766) ## v5.0.0 (2020-09-15) From 24e182b90ea080b3d38765818c3ebb0b8f868e6d Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 10 Oct 2021 02:22:37 +0000 Subject: [PATCH 011/126] make long strings wrap lines instad of go offscreen; fix #787 --- CHANGELOG.md | 1 + assets/css/beautifuljekyll.css | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 595251c771f7..90b6b9b8d5ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Added support for Cloudflare Analytics (#797) - Added Reddit in share options of posts (#815) - Fixed bug where staticman didn't work jQuery slim version is used (#766) +- Fixed very long strings to wrap around the next line rather than go off-screen (#787) ## v5.0.0 (2020-09-15) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 4e809c4c1783..2b15f07e8adf 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -20,6 +20,7 @@ body { background-image: url({{ site.page-img | relative_url }}); background-attachment: fixed; {% endif %} + overflow-wrap: break-word; } p { line-height: 1.5; From 505305ebe7c1f1e8a2b11cdd6582619fd5f745ab Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 10 Oct 2021 06:20:54 +0000 Subject: [PATCH 012/126] correctly escape titles subtitles and excerpts in all contexts; fixes #856 --- CHANGELOG.md | 1 + _includes/header.html | 12 ++++++------ _includes/search.html | 4 ++-- _includes/social-share.html | 2 +- _layouts/home.html | 6 +++--- _layouts/post.html | 4 ++-- _posts/2020-02-26-flake-it-till-you-make-it.md | 6 +++--- _posts/2020-02-28-test-markdown.md | 4 ++-- feed.xml | 4 ++-- tags.html | 2 +- 10 files changed, 23 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90b6b9b8d5ba..b85316242f84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased version - Added `post_search` config setting that creates a Search button in the navbar (older websites need to set `post_search: true` to enable this feature) (#770) +- Fixed page titles, subtitles, and excerpts rendering correctly when there are special characeters in them (#856) - 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 the same colour as the primary navbar links diff --git a/_includes/header.html b/_includes/header.html index 4c299b668d39..aa35a7aca85f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -27,13 +27,13 @@
    -

    {% if page.title %}{{ page.title }}{% else %}
    {% endif %}

    +

    {% if page.title %}{{ page.title | strip_html }}{% else %}
    {% endif %}

    {% if page.subtitle %} {% if include.type == "page" %}
    - {{ page.subtitle }} + {{ page.subtitle | strip_html }} {% else %} -

    {{ page.subtitle }}

    +

    {{ page.subtitle | strip_html }}

    {% endif %} {% endif %} @@ -61,13 +61,13 @@

    {{ page.subtitle }}

    -

    {% if page.title %}{{ page.title }}{% else %}
    {% endif %}

    +

    {% if page.title %}{{ page.title | strip_html }}{% else %}
    {% endif %}

    {% if page.subtitle %} {% if include.type == "page" %}
    - {{ page.subtitle }} + {{ page.subtitle | strip_html }} {% else %} -

    {{ page.subtitle }}

    +

    {{ page.subtitle | strip_html }}

    {% endif %} {% endif %} diff --git a/_includes/search.html b/_includes/search.html index 7924fd08b213..becf37b584c0 100644 --- a/_includes/search.html +++ b/_includes/search.html @@ -11,7 +11,7 @@ var searchjson = '[ \ {% for post in site.posts %} \ { \ - "title" : "{% if post.title != "" %}{{ post.title | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \ + "title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", \ "category" : "{{ post.tags | join: \', \' }}", \ "url" : "{{ site.baseurl }}{{ post.url }}", \ "date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}" \ @@ -19,7 +19,7 @@ {% endfor %} \ {% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %} \ { \ - "title" : "{% if page.title != "" %}{{ page.title | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \ + "title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}", \ "category" : "{% if page.tags %}{{ page.tags | join: \', \' }}{% else %}page{% endif %}", \ "url" : "{{ site.baseurl }}{{ page.url }}", \ "date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}" \ diff --git a/_includes/social-share.html b/_includes/social-share.html index c04f445f833c..4a7ca01e5b7c 100644 --- a/_includes/social-share.html +++ b/_includes/social-share.html @@ -11,7 +11,7 @@ Share: {% if site.share-links-active.twitter %} - Twitter diff --git a/_layouts/home.html b/_layouts/home.html index c97b27faaff9..806aa7cf29e2 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -35,11 +35,11 @@ {% endif %} -

    {{ post.title }}

    +

    {{ post.title | strip_html }}

    {% if post.subtitle %}

    - {{ post.subtitle }} + {{ post.subtitle | strip_html }}

    {% endif %}
    @@ -68,7 +68,7 @@

    {% assign excerpt_length = site.excerpt_length | default: 50 %} - {{ post.excerpt | strip_html | xml_escape | truncatewords: excerpt_length }} + {{ post.excerpt | strip_html | truncatewords: excerpt_length }} {% assign excerpt_word_count = post.excerpt | number_of_words %} {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %} [Read More] diff --git a/_layouts/post.html b/_layouts/post.html index 5358515df87d..70d5ee4fcc28 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -67,12 +67,12 @@ diff --git a/_posts/2020-02-26-flake-it-till-you-make-it.md b/_posts/2020-02-26-flake-it-till-you-make-it.md index b9b550ae3be5..e8679f42d166 100644 --- a/_posts/2020-02-26-flake-it-till-you-make-it.md +++ b/_posts/2020-02-26-flake-it-till-you-make-it.md @@ -1,14 +1,14 @@ --- layout: post -title: Flake it till you make it -subtitle: Excerpt from Soulshaping by Jeff Brown +title: "Flake it & un + he`AA`y BB : per g > % cent ' till y\"ou make it" +subtitle: "Excerpt from \"SoulITTTshaping by Jeff Brown" cover-img: /assets/img/path.jpg thumbnail-img: /assets/img/thumb.png share-img: /assets/img/path.jpg tags: [books, test] --- -Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake? +Under what & f < d > g + g : `g`y sg e % t ' c " circusmstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake? The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure. diff --git a/_posts/2020-02-28-test-markdown.md b/_posts/2020-02-28-test-markdown.md index 4ac869f47ead..5c223764f75b 100644 --- a/_posts/2020-02-28-test-markdown.md +++ b/_posts/2020-02-28-test-markdown.md @@ -1,7 +1,7 @@ --- layout: post -title: Sample blog post -subtitle: Each post also has a subtitle +title: Sample blog fdspost +subtitle: Each post alITALso has a subtitle gh-repo: daattali/beautiful-jekyll gh-badge: [star, fork, follow] tags: [test] diff --git a/feed.xml b/feed.xml index 57f7ad56359a..6148cf15f5d6 100644 --- a/feed.xml +++ b/feed.xml @@ -15,9 +15,9 @@ layout: null {% assign excerpt_length = site.excerpt_length | default: 50 %} {% for post in site.posts limit:20 %} - {{ post.title | xml_escape }} + {{ post.title | strip_html | xml_escape }} - {% if post.subtitle %}{{ post.subtitle | xml_escape }} - {% endif %} + {% if post.subtitle %}{{ post.subtitle | strip_html | xml_escape }} - {% endif %} {{ post.content | strip_html | xml_escape | truncatewords: excerpt_length }} {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} diff --git a/tags.html b/tags.html index 04c193908ec9..55a3c6d4cb66 100644 --- a/tags.html +++ b/tags.html @@ -25,7 +25,7 @@

    {%- for post in site.tags[tag] -%}
    - {{- post.title -}} + {{- post.title | strip_html -}} From ffb27515fe14ef7aa788351cd37516b18231e8fa Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 10 Oct 2021 06:36:40 +0000 Subject: [PATCH 013/126] revert testing changes in posts --- _posts/2020-02-26-flake-it-till-you-make-it.md | 8 ++++---- _posts/2020-02-28-test-markdown.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_posts/2020-02-26-flake-it-till-you-make-it.md b/_posts/2020-02-26-flake-it-till-you-make-it.md index e8679f42d166..b3ad9e398ab7 100644 --- a/_posts/2020-02-26-flake-it-till-you-make-it.md +++ b/_posts/2020-02-26-flake-it-till-you-make-it.md @@ -1,17 +1,17 @@ --- layout: post -title: "Flake it & un + he`AA`y BB : per g > % cent ' till y\"ou make it" -subtitle: "Excerpt from \"SoulITTTshaping by Jeff Brown" +title: Flake it till you make it +subtitle: Excerpt from Soulshaping by Jeff Brown cover-img: /assets/img/path.jpg thumbnail-img: /assets/img/thumb.png share-img: /assets/img/path.jpg tags: [books, test] --- -Under what & f < d > g + g : `g`y sg e % t ' c " circusmstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake? +Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake? The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure. At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors. -A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it. +A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it. \ No newline at end of file diff --git a/_posts/2020-02-28-test-markdown.md b/_posts/2020-02-28-test-markdown.md index 5c223764f75b..bf6c9a5f9349 100644 --- a/_posts/2020-02-28-test-markdown.md +++ b/_posts/2020-02-28-test-markdown.md @@ -1,7 +1,7 @@ --- layout: post -title: Sample blog fdspost -subtitle: Each post alITALso has a subtitle +title: Sample blog post +subtitle: Each post also has a subtitle gh-repo: daattali/beautiful-jekyll gh-badge: [star, fork, follow] tags: [test] @@ -75,4 +75,4 @@ You can add notification, warning and error boxes like this: ### Error {: .box-error} -**Error:** This is an error box. +**Error:** This is an error box. \ No newline at end of file From d0928cb455f03371def849584d146b3daa53a449 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 10 Oct 2021 07:12:58 +0000 Subject: [PATCH 014/126] breaking change: rss feed only generated if rss-description config exists; rss icon only shows if social-network-links.rss is true; closes #814 --- CHANGELOG.md | 1 + _config.yml | 5 +++-- _includes/head.html | 2 ++ _includes/social-networks-links.html | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b85316242f84..8401feb1800d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Unreleased version - Added `post_search` config setting that creates a Search button in the navbar (older websites need to set `post_search: true` to enable this feature) (#770) +- BREAKING CHANGE: More control over RSS feed sharing: previously, an RSS feed was *always* generated, and if the config setting `rss-description` was set then there was an RSS icon in the footer. Now, an RSS feed is only generated when the config setting `rss-description` exists, and an RSS footer icon is only shown if `rss: true` is set in the `social-network-links` config settings - Fixed page titles, subtitles, and excerpts rendering correctly when there are special characeters in them (#856) - 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 diff --git a/_config.yml b/_config.yml index bf1783da1928..5270a9e9601d 100644 --- a/_config.yml +++ b/_config.yml @@ -40,6 +40,7 @@ round-avatar: true # Uncomment the links you want to show and add your information to each one. social-network-links: email: "someone@example.com" + rss: true # remove this line if you don't want to show an RSS link at the bottom facebook: deanattali github: daattali twitter: daattali @@ -63,8 +64,8 @@ social-network-links: # ORCID: your ORCID ID # google-scholar: your google scholar -# If you want to show a link to an RSS in the footer, add the site description here. -# If you don't want to show an RSS link, remove the following line. +# If you want your website to generate an RSS feed, provide a description +# The URL for the feed will be https:///feed.xml rss-description: This website is a virtual proof that I'm awesome # --- General options --- # diff --git a/_includes/head.html b/_includes/head.html index cf93eda4afbe..ac3e13409c23 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -39,7 +39,9 @@ {% endif %} + {% if site.rss-description %} + {% endif %} {% include gtag.html %} {% include gtm_head.html %} diff --git a/_includes/social-networks-links.html b/_includes/social-networks-links.html index 3f799eb02de9..ac1599dbb2e3 100644 --- a/_includes/social-networks-links.html +++ b/_includes/social-networks-links.html @@ -1,6 +1,6 @@ From 4201212002550b38f23ebdef6bf18ac60a9e2444 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Mon, 29 Nov 2021 18:06:08 -0500 Subject: [PATCH 024/126] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b653924c51..e92cb3d0df61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Fixed bug where staticman didn't work jQuery slim version is used (#766) - Fixed very long strings to wrap around the next line rather than go off-screen (#787) - Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848) +- Added social network link for Discord (#907) ## v5.0.0 (2020-09-15) From a29203e260c72443cff3dc2f8ee38c1897b925dd Mon Sep 17 00:00:00 2001 From: Stefan Leibfarth Date: Tue, 8 Feb 2022 21:14:45 +0100 Subject: [PATCH 025/126] Add Mastodon profile verification (#933) See https://docs.joinmastodon.org/user/profile/#fields --- _includes/social-networks-links.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/social-networks-links.html b/_includes/social-networks-links.html index 617d9b7dd758..2b8dc2b156eb 100644 --- a/_includes/social-networks-links.html +++ b/_includes/social-networks-links.html @@ -230,7 +230,7 @@ {%- if site.social-network-links.mastodon -%}
  • - +
  • {%- endif -%} + +{%- if site.social-network-links.kaggle -%} +
  • + + + Kaggle + +
  • +{%- endif -%} From 8df19d9bb1c8fae1c85a9fbd01178e84434f1fe0 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 3 Apr 2022 18:26:43 -0400 Subject: [PATCH 030/126] add news item for kaggle social media --- CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a4d2437259d..fa03af28e3c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,12 +14,11 @@ - Updated staticman from using v2 (public servers) to v3 (private servers) due to the public servers becoming obsolete (#775) - Added support for Cloudflare Analytics (#797) - Added Reddit in share options of posts (#815) -- Added support for giscus comments (#886) +- Added support for giscus comments (#886) and CommentBox (#960) - Fixed bug where staticman didn't work jQuery slim version is used (#766) - Fixed very long strings to wrap around the next line rather than go off-screen (#787) - Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848) -- Added social network link for Discord (#907) -- Added CommentBox as comment option (#960) +- Added social network links for Discord (#907) and Kaggle (#961) ## v5.0.0 (2020-09-15) From 99d1a12a7324c4cd58465604739b27418fe3b16c Mon Sep 17 00:00:00 2001 From: tanersekmen <56790802+tanersekmen@users.noreply.github.com> Date: Mon, 2 May 2022 08:21:07 +0300 Subject: [PATCH 031/126] added hackerrank social media network (#978) --- _config.yml | 1 + _includes/social-networks-links.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/_config.yml b/_config.yml index 4fb5aa92637e..9ea0b4a4ca41 100644 --- a/_config.yml +++ b/_config.yml @@ -65,6 +65,7 @@ social-network-links: # google-scholar: your google scholar # discord: invite/invite_code or users/userid # kaggle: yourname +# hackerrank: yourname # If you want your website to generate an RSS feed, provide a description # The URL for the feed will be https:///feed.xml diff --git a/_includes/social-networks-links.html b/_includes/social-networks-links.html index cec2e84e27d9..8ca4c6d2a5e7 100644 --- a/_includes/social-networks-links.html +++ b/_includes/social-networks-links.html @@ -324,4 +324,16 @@ {%- endif -%} +{%- if site.social-network-links.hackerrank -%} +
  • + + + Hackerrank + +
  • +{%- endif -%} + From 5420dbd899bfeb37dce4f548267e1a8905d3249b Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Mon, 2 May 2022 01:22:00 -0400 Subject: [PATCH 032/126] add news item for hacerrank --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa03af28e3c5..402abdb1db7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ - Fixed bug where staticman didn't work jQuery slim version is used (#766) - Fixed very long strings to wrap around the next line rather than go off-screen (#787) - Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848) -- Added social network links for Discord (#907) and Kaggle (#961) +- Added social network links for Discord (#907), Kaggle (#961), and Hackerrank (#978) ## v5.0.0 (2020-09-15) From 5253e3866c5e186552abcadc2769dbb1bab6662f Mon Sep 17 00:00:00 2001 From: Jefferson Bledsoe Date: Mon, 4 Jul 2022 16:51:19 +0100 Subject: [PATCH 033/126] Markup home page content lists and tags as lists (#950) * Markup home page content lists and tags as lists * Fix styling after markup changes * Fix typo * fix a couple visual issues * make sure the divider line between posts shows up Co-authored-by: Dean Attali --- _layouts/home.html | 140 +++++++++++++++++---------------- assets/css/beautifuljekyll.css | 8 ++ 2 files changed, 82 insertions(+), 66 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 806aa7cf29e2..cab91a52d623 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -6,88 +6,96 @@ {% assign posts = paginator.posts | default: site.posts %} -
    + +
      {% for post in posts %} -
      +
    • +
      - {%- capture thumbnail -%} - {% if post.thumbnail-img %} - {{ post.thumbnail-img }} - {% elsif post.cover-img %} - {% if post.cover-img.first %} - {{ post.cover-img[0].first.first }} + {%- capture thumbnail -%} + {% if post.thumbnail-img %} + {{ post.thumbnail-img }} + {% elsif post.cover-img %} + {% if post.cover-img.first %} + {{ post.cover-img[0].first.first }} + {% else %} + {{ post.cover-img }} + {% endif %} {% else %} - {{ post.cover-img }} {% endif %} - {% else %} + {% endcapture %} + {% assign thumbnail=thumbnail | strip %} + + {% if site.feed_show_excerpt == false %} + {% if thumbnail != "" %} +
      + + Post thumbnail + +
      + {% endif %} {% endif %} - {% endcapture %} - {% assign thumbnail=thumbnail | strip %} - {% if site.feed_show_excerpt == false %} - {% if thumbnail != "" %} -
      - - Post thumbnail + +

      {{ post.title | strip_html }}

      + + {% if post.subtitle %} +

      + {{ post.subtitle | strip_html }} +

      + {% endif %}
      -
      - {% endif %} - {% endif %} - -

      {{ post.title | strip_html }}

      + - {% if post.subtitle %} -

      - {{ post.subtitle | strip_html }} -

      + {% if thumbnail != "" %} +
      + + Post thumbnail + +
      {% endif %} - - - - {% if thumbnail != "" %} -
      - - Post thumbnail - -
      - {% endif %} + {% unless site.feed_show_excerpt == false %} + {% if thumbnail != "" %} +
      + + Post thumbnail + +
      + {% endif %} - {% unless site.feed_show_excerpt == false %} - {% if thumbnail != "" %} -
      - - Post thumbnail - -
      - {% endif %} +
      + {% assign excerpt_length = site.excerpt_length | default: 50 %} + {{ post.excerpt | strip_html | truncatewords: excerpt_length }} + {% assign excerpt_word_count = post.excerpt | number_of_words %} + {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %} + [Read More] + {% endif %} +
      + {% endunless %} -
      - {% assign excerpt_length = site.excerpt_length | default: 50 %} - {{ post.excerpt | strip_html | truncatewords: excerpt_length }} - {% assign excerpt_word_count = post.excerpt | number_of_words %} - {% if post.content != post.excerpt or excerpt_word_count > excerpt_length %} - [Read More] + {% if site.feed_show_tags != false and post.tags.size > 0 %} +
      + Tags: + +
        + {% for tag in post.tags %} +
      • + {{- tag -}} +
      • + {% endfor %} +
      +
      {% endif %} -
      - {% endunless %} - {% if site.feed_show_tags != false and post.tags.size > 0 %} -
      - Tags: - {% for tag in post.tags %} - {{- tag -}} - {% endfor %} -
      - {% endif %} - -
      +
    • + {% endfor %} -
    + {% if paginator.total_pages > 1 %} From 50de2a0c80625bf1b7ee046da57a1710a1a8b818 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Wed, 10 Apr 2024 00:21:56 -0400 Subject: [PATCH 124/126] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 600a4ffd77fc..6c60d09cc8ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ - The footer of a page always sticks to the bottom, even on short pages (#576) - Added `author` YAML parameter to allow specifying the author(s) of a post (#1220) - Fixed bug where hovering over search results showed the text "{desc}" (#1156) -- Added social network links for GitLab, Bluesky, Whatsapp (#1168, #1218, #1299) +- Added social network links for GitLab, Bluesky, Whatsapp, Untappd (#1168, #1218, #1299, #1307) - Added instructions and example on how to fix image links in project sites (#1171) - Pagination buttons: use nicer arrows, and don't show text on small screens (#1221) - Updated Yelp URL format - if you previously used the `yelp` social network config parameter, you might need to update the config value (#1259) From c07c3ea3be047d9bd347079ef659a84b931e4242 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Tue, 16 Apr 2024 12:47:00 -0400 Subject: [PATCH 125/126] Use CSS variables; fixes #661 (#1312) --- CHANGELOG.md | 1 + _config.yml | 6 +- assets/css/beautifuljekyll.css | 148 ++++++++++++++++++++------------- 3 files changed, 93 insertions(+), 62 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c60d09cc8ab..ca56a4255209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added `author` YAML parameter to allow specifying the author(s) of a post (#1220) - Fixed bug where hovering over search results showed the text "{desc}" (#1156) - Added social network links for GitLab, Bluesky, Whatsapp, Untappd (#1168, #1218, #1299, #1307) +- Use CSS variables (#661) - Added instructions and example on how to fix image links in project sites (#1171) - Pagination buttons: use nicer arrows, and don't show text on small screens (#1221) - Updated Yelp URL format - if you previously used the `yelp` social network config parameter, you might need to update the config value (#1259) diff --git a/_config.yml b/_config.yml index 861fa4cb3099..e3f871135f35 100644 --- a/_config.yml +++ b/_config.yml @@ -134,13 +134,13 @@ navbar-var-length: false # Personalize the colours in your website. Colour values can be any valid CSS colour -navbar-col: "#EAEAEA" -navbar-text-col: "#404040" -navbar-border-col: "#DDDDDD" page-col: "#FFFFFF" text-col: "#404040" link-col: "#008AFF" hover-col: "#0085A1" +navbar-col: "#EAEAEA" +navbar-text-col: "#404040" +navbar-border-col: "#DDDDDD" footer-col: "#EAEAEA" footer-text-col: "#777777" footer-link-col: "#404040" diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index e5d8b4ea82b1..9fac6b69fe83 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -4,6 +4,26 @@ layout: null @import url("pygment_highlights.css"); +:root { + /* config file CSS variables */ + --page-col: {{ site.page-col | default: "#FFFFFF" }}; + --text-col: {{ site.text-col | default: "#404040" }}; + --link-col: {{ site.link-col | default: "#008AFF" }}; + --hover-col: {{ site.hover-col | default: "#0085A1" }}; + --navbar-col: {{ site.navbar-col | default: "#EAEAEA" }}; + --navbar-text-col: {{ site.navbar-text-col | default: "#404040" }}; + --navbar-border-col: {{ site.navbar-border-col | default: "#DDDDDD" }}; + --footer-col: {{ site.footer-col | default: "#EAEAEA" }}; + --footer-text-col: {{ site.footer-text-col | default: "#777777" }}; + --footer-link-col: {{ site.footer-link-col | default: "#404040" }}; + --footer-hover-col: {{ site.footer-hover-col | default: "#0085A1" }}; + + /* common CSS variables */ + --body-font: 'Lora', 'Times New Roman', serif; + --header-font: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + --mid-col: #808080; +} + /* --- General --- */ html { @@ -11,11 +31,11 @@ html { } body { - font-family: 'Lora', 'Times New Roman', serif; + font-family: var(--body-font); font-size: 1.125rem; - color: {{ site.text-col | default: "#404040" }}; + color: var(--text-col); position: relative; - background-color: {{ site.page-col | default: "#FFFFFF" }}; + background-color: var(--page-col); {% if site.page-img %} background-image: url({{ site.page-img | relative_url }}); background-attachment: fixed; @@ -33,7 +53,7 @@ p { margin: 1.875rem 0; } h1,h2,h3,h4,h5,h6 { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); font-weight: 800; line-height: 1.1; } @@ -53,19 +73,22 @@ h1, h2, h3, h4 { margin-top: 1.25rem; } a { - color: {{ site.link-col | default: "#008AFF" }}; + color: var(--link-col); } a:hover, a:focus { - color: {{ site.hover-col | default: "#0085A1" }}; + color: var(--hover-col) } blockquote { - color: #808080; + color: var(--mid-col); font-style: italic; } blockquote p:first-child { margin-top: 0; } +.jumbotron { + background: #EEE; +} hr.small { max-width: 6.25rem; margin: 1rem auto; @@ -87,21 +110,21 @@ hr.small { } ::-moz-selection { - color: #fff; + color: var(--page-col); + background-color: var(--hover-col); text-shadow: none; - background-color: {{ site.hover-col | default: "#0085A1" }}; } ::selection { - color: #fff; + color: var(--page-col); + background-color: var(--hover-col); text-shadow: none; - background-color: {{ site.hover-col | default: "#0085A1" }}; } img::selection { - color: #fff; + color: var(--hover-col); background: transparent; } img::-moz-selection { - color: #fff; + color: var(--hover-col); background: transparent; } @@ -129,9 +152,9 @@ img { /* --- Navbar --- */ .navbar-custom { - background-color: {{ site.navbar-col | default: "#EAEAEA" }}; - border-bottom: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + background-color: var(--navbar-col); + border-bottom: 1px solid var(--navbar-border-col); + font-family: var(--header-font); {% if site.navbar-img %} background-image: url({{ site.navbar-img | relative_url }}); background-attachment: fixed; @@ -195,7 +218,7 @@ img { .navbar-custom .navbar-brand, .navbar-custom .navbar-nav .nav-link { font-weight: 800; - color: {{ site.navbar-text-col | default: "#404040" }}; + color: var(--navbar-text-col); } .navbar-toggler { @@ -266,10 +289,10 @@ img { .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item { padding: 0.625rem; - background-color: {{ site.navbar-col | default: "#EAEAEA" }}; + background-color: var(--navbar-col); text-decoration: none !important; font-weight: normal; - color: {{ site.navbar-text-col | default: "#404040" }}; + color: var(--navbar-text-col); {% unless site.navbar-var-length %} white-space: normal; {% endunless %} @@ -282,7 +305,7 @@ img { .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item { padding-left: 0.625rem; - border: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; + border: 1px solid var(--navbar-border-col); border-width: 0 1px 1px; } @@ -293,7 +316,7 @@ img { @media (max-width: 1199px) { .navbar-custom .navbar-collapse { - border-top: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }}; + border-top: 1px solid var(--navbar-border-col); margin: 0 -1rem; } @@ -319,7 +342,7 @@ img { .navbar-custom .navbar-nav .nav-link:focus, .navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover, .navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus { - color: {{ site.hover-col | default: "#0085A1" }}; + color: var(--hover-col) } .navbar-custom .avatar-container { @@ -385,10 +408,10 @@ img { footer { padding: 1.875rem 0; - border-top: 1px #EAEAEA solid; + border-top: 1px var(--footer-col) solid; margin-top: 3.125rem; font-size: 0.875rem; - background-color: {{ site.footer-col | default: "#EAEAEA" }}; + background-color: var(--footer-col); {% if site.footer-img %} background-image: url({{ site.footer-img | relative_url }}); background-attachment: fixed; @@ -396,16 +419,22 @@ footer { } footer p.text-muted { - color: {{ site.footer-text-col | default: "#777777" }} !important; + color: var(--footer-text-col) !important; } footer a { - color: {{ site.footer-link-col | default: "#404040" }}; + color: var(--footer-link-col); +} +footer .footer-links a { + color: var(--text-col); +} +footer .footer-links .fa-inverse { + color: var(--page-col); } footer a:hover, footer a:focus { - color: {{ site.footer-hover-col | default: "#0085A1" }}; + color: var(--footer-hover-col); } footer .list-inline { @@ -414,7 +443,7 @@ footer .list-inline { margin-bottom: 1.875rem; } footer .copyright { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); text-align: center; margin-bottom: 0; margin-top: 0; @@ -426,7 +455,7 @@ footer .theme-by { footer .footer-custom-content { text-align: center; margin-bottom: 0.9375rem; - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); } @media (min-width: 768px) { @@ -468,14 +497,14 @@ footer .footer-custom-content { .post-preview a { text-decoration: none; - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; - color: {{ site.text-col | default: "#404040" }}; + font-family: var(--header-font); + color: var(--text-col); } .post-preview a:focus, .post-preview a:hover { text-decoration: none; - color: {{ site.hover-col | default: "#0085A1" }}; + color: var(--hover-col) } .post-preview .post-title { @@ -489,11 +518,11 @@ footer .footer-custom-content { } .post-preview .post-meta, .post-heading .post-meta { - color: #808080; + color: var(--mid-col); font-size: 1.125rem; font-style: italic; margin: 0 0 0.625rem; - font-family: 'Lora', 'Times New Roman', serif; + font-family: var(--body-font); } .post-heading .post-meta { display: inline-block; @@ -570,13 +599,13 @@ footer .footer-custom-content { /* --- Tags --- */ .blog-tags { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); font-size: 0.9375rem; margin: 1.875rem 0; } .blog-tags span { - color: {{ site.text-col | default: "#404040" }}; + color: var(--text-col); opacity: 0.8; } @@ -585,7 +614,7 @@ footer .footer-custom-content { } .blog-tags a { - color: {{ site.text-col | default: "#404040" }}; + color: var(--text-col); text-decoration: none; padding: 0 0.3125rem; opacity: 0.8; @@ -595,8 +624,8 @@ footer .footer-custom-content { .blog-tags a:hover { opacity: 1; - color: {{ site.text-col | default: "#404040" }}; - border-color: {{ site.text-col | default: "#404040" }}; + color: var(--text-col); + border-color: var(--text-col); } .post-preview .blog-tags { @@ -617,7 +646,7 @@ footer .footer-custom-content { } #full-tags-list { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); } #full-tags-list .tag-entry { @@ -629,7 +658,7 @@ footer .footer-custom-content { } #full-tags-list .tag-entry .entry-date { - color: #808080; + color: var(--mid-col); font-style: italic; font-size: 1rem; } @@ -691,7 +720,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img { font-size: 1.6875rem; line-height: 1.1; display: block; - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); font-weight: 300; margin: 0.625rem 0 0; } @@ -716,7 +745,7 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img { padding: 0.3125rem 0.625rem; font-size: 0.6875rem; color: #EEE; - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); right: 0; bottom: 0; display: none; @@ -775,15 +804,15 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img { } .pagination .page-item .page-link { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); text-transform: uppercase; font-size: 0.875rem; font-weight: 800; letter-spacing: 1px; padding: 0.625rem 0.3125rem; - background-color: #FFF; + background-color: var(--page-col); border-radius: 0; - color: {{ site.text-col | default: "#404040" }}; + color: var(--text-col); padding: 0.75rem 1rem; } @media (min-width: 768px) { @@ -793,9 +822,9 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img { } .pagination .page-item .page-link:hover, .pagination .page-item .page-link:focus { - color: #FFF; - border: 1px solid {{ site.hover-col | default: "#0085A1" }}; - background-color: {{ site.hover-col | default: "#0085A1" }}; + color: var(--page-col); + border: 1px solid var(--hover-col) + background-color: var(--hover-col) } /* --- Tables --- */ @@ -805,26 +834,23 @@ table { } table tr { border-top: 1px solid #cccccc; - background-color: #ffffff; + background-color: var(--page-col); margin: 0; padding: 0; } table tr:nth-child(2n) { background-color: #f8f8f8; } -table tr th { - font-weight: bold; - border: 1px solid #cccccc; - text-align: left; - margin: 0; - padding: 0.375rem 0.8125rem; -} +table tr th, table tr td { border: 1px solid #cccccc; text-align: left; margin: 0; padding: 0.375rem 0.8125rem; } +table tr th { + font-weight: bold; +} table tr th :first-child, table tr td :first-child { margin-top: 0; @@ -913,6 +939,10 @@ pre { margin-top: 1.875rem; } +#social-share-section a { + color: #fff; +} + /* --- Notification boxes --- */ .box-note, .box-warning, @@ -971,7 +1001,7 @@ pre { max-width: 25%; border-width: 0.25rem; border-radius: 0.1875rem; - border-color: #808080; + border-color: var(--mid-col); } .blog-post blockquote { @@ -992,7 +1022,7 @@ pre { /* Search bar */ #beautifuljekyll-search-overlay { - font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-family: var(--header-font); display: none; z-index: 999999; position: fixed; From b57d3d4a4abd3027edc8c39e2749a57b53f9a5e2 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Tue, 16 Apr 2024 13:45:29 -0400 Subject: [PATCH 126/126] add missing semicolons in css --- assets/css/beautifuljekyll.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index 9fac6b69fe83..5e2abcde9b57 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -77,7 +77,7 @@ a { } a:hover, a:focus { - color: var(--hover-col) + color: var(--hover-col); } blockquote { color: var(--mid-col); @@ -342,7 +342,7 @@ img { .navbar-custom .navbar-nav .nav-link:focus, .navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover, .navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus { - color: var(--hover-col) + color: var(--hover-col); } .navbar-custom .avatar-container { @@ -504,7 +504,7 @@ footer .footer-custom-content { .post-preview a:focus, .post-preview a:hover { text-decoration: none; - color: var(--hover-col) + color: var(--hover-col); } .post-preview .post-title { @@ -823,8 +823,8 @@ nav.top-nav-short-permanent ~ header > .intro-header.big-img { .pagination .page-item .page-link:hover, .pagination .page-item .page-link:focus { color: var(--page-col); - border: 1px solid var(--hover-col) - background-color: var(--hover-col) + border: 1px solid var(--hover-col); + background-color: var(--hover-col); } /* --- Tables --- */