Skip to content

Commit 437837e

Browse files
authored
Update mmistakes (#63)
* Update last modified time * Added missing ref attribute (mmistakes#1959) As suggested by @mmistakes in mmistakes#1948 (comment) * Use privacy aware embed options for YouTube & Vimeo (mmistakes#1964) * Update CHANGELOG and history * Punjabi Translation of ui-text (mmistakes#1962) * Punjabi Translation of ui-text There are more than 100 million native speakers of Punjabi language. I am one of them. More details about [punjabi on wikipedia](https://en.wikipedia.org/wiki/Punjabi_language). All the punjabi translations are perfect with the following exceptions- - in the variable name (_config.yml and words_per_minute) which are intentionally left in english. - meta_label is empty * Update CHANGELOG and history * Add support for utterances (mmistakes#1966) * Add support for utterances * Add utterances config documentation * Update CHANGELOG and history Close mmistakes#1909 * Update localized text list * Update README.md * Update theme documentation * Increase font-size * Increase padding * Add focus color * Adjust navigation toggles * Use dark syntax highlighting * Update CHANGELOG and history * Add Google Drive as video provider (mmistakes#1967) * Add Google Drive provider documentation * Update CHANGELOG and history * Changed schema.org to secure links (https) (mmistakes#1969) * Update CHANGELOG and history * Prevent current post from showing in the "You may also enjoy" (related (mmistakes#1976) posts) section * Update CHANGELOG and history * Change teaser image * Disable comments * Add hover state * Release 4.14.0 💎 * Update CHANGELOG * Fix closed navicon on hover * Release 4.14.1 gem * Update NPM dependencies cc/ mmistakes#1977 * Change remaining schema.org markup to `https` (mmistakes#1978) * Update CHANGELOG and history * Update about.md (mmistakes#1981) Just a minor addition, the word Hindi written in devnagri script (the script used for this language). Makes it easier to visually understand what script we are talking about. * Update README.md (mmistakes#1982) Just a minor addition, the word Hindi written in devnagri script (the script used for this language). Makes it easier to visually understand what script we are talking about. * Fix function name for Google Custom Search (mmistakes#1983) fbafe58 renamed the function in the scripts file, but did not rename the call sites. * Update CHANGELOG and history * Allow sidebar navs with custom sidebar content Multiple sidebar navs can also be included on a page: ``` sidebar: - title: Navigation 1 nav: nav1 - title: Navigation 2 nav: nav2 ``` Fixes mmistakes#1986 * Update test post * Update CHANGELOG and history * Update YAML example * Fix broken image Close mmistakes#1994 * Fix broken image * HTTPS Twitter short link (mmistakes#2001) * Fixed Netlify typo (mmistakes#2013) * update font awesome (mmistakes#1995) REF: https://fontawesome.com/changelog/latest * Update CHANGELOG and history * Remove unused variables (mmistakes#1996) * Update CHANGELOG and history * [Bug fix]: Added missing Staticman Spanish UI text (mmistakes#1997) Taken from line 91 of 5d-eu/messages.php@ec56008 * Update CHANGELOG and history * Persian Translation of UI Elements (mmistakes#2004) * Add Persian translation to ui-text.yml * Mention the added Persian translation in the documentation * Update CHANGELOG and history * shorter IE conditional statement (mmistakes#2006) saves 5 bytes :-) * Update CHANGELOG and history * Fix typo * lunr 2.3.5 update (mmistakes#2010) * Update CHANGELOG and history * Fix wide tables that overflow parent container Close mmistakes#2008 * Accessibility: Add aria-label to the search button (mmistakes#2014) * Accessibility: Add aria-label to the search button * Update button aria text * Add aria text to menu toggle * Add span for search toggle * Update span for menu label & remove aria * Update ui-text.yml to add search_label * Update * Update CHANGELOG and history * Update copyright year * Release 4.14.2 💎 * Bump version to 4.14.2 * Clicking TOC links changes hash fragment (mmistakes#2019) * Fix smooth scroll breaking back button mmistakes#1767 * Change URL's hash fragment when clicking on TOC * Switch from hashchange to popstate event handler This seems to have better behavior with the Forward button, on page load, and always scrolls in the right direction. Close mmistakes#1767 * Update CHANGELOG and history * Scrollspy-style updating of hash and TOC highlighting * Use jQuery throttle library * Define $active-color in terms of $primary-color * Update CHANGELOG and history * assign canonical directly if custom value exists (mmistakes#2021) * Update CHANGELOG, history, and `canonical_url` documentation * Add support to customize `issue-term` (mmistakes#2022) Current we hardcoded the `pathname` for `issue-term` when we are using utterances comment provider. It would be better for let users customize it by setting a `site.comments.utterances.issue_term` in their `_config.yml`. * Update * Fix scrollspy on link clicking, and # for top of page (mmistakes#2023) * Update CHANGELOG and history * Add logo and title customization to the masthead (mmistakes#2026) * Add logo and title customization to the masthead * Adjust config description * Add test site logo to `/test` * Document `site.logo` and `site.masthead_title` * Update CHANGELOG and history * Release 4.15.0 💎 * Fix empty `<img>` when `site_logo` is not assigned Ref: mmistakes#2026 (comment) * Update test post * Add empty `alt` attribute to img tag with logo (mmistakes#2035) * Provide empty alt attribute (alt="") for logo image, because it does not provide information * Update CHANGELOG and history * Fix `site.logo` false positives * Update ui-text.yml (mmistakes#2037) Add Malayalam localized UI text strings * Add Malayalam localized UI text strings * Update CHANGELOG, history, and docs * Improve Staticman v3 documentation (mmistakes#2043) * Corrected Staticman v3 info * Added a link to eduardoboucas/staticman#219 * Fix typo * Remove 'www' from Stack Overflow URL (mmistakes#2054) Stack Overflow is no longer including `www` in its URLs. * [fix] syntax error of non-english character (mmistakes#2042) * Dear the make of one of the world's greatest jekyll theme. [problem] I found that 'Syntax Error' occurs when non-english character is included in some html elements(e.g h2, h3 ...) and 'toc' is generated based of that elements. [debug] Click the any element of auto generated 'toc' in the below link. https://aliwo.github.io/swblog/series/principles_of_python/object/#%EA%B0%9D%EC%B2%B4%EC%99%80-%ED%81%B4%EB%9E%98%EC%8A%A4%EC%9D%98-%EC%A0%95%EC%9D%98 [fix] This happens because escaped url string get right in to jquery. So I fixed it with javascript's 'decodeURI' function! :) * rollback unnecessary changes * Compile main.min.js * Update CHANGELOG and history * update Font Awesome (mmistakes#2053) * update Font Awesome REF: https://fontawesome.com/changelog/latest * Update _includes/scripts.html Co-Authored-By: coliff <[email protected]> * Update CHANGELOG and history * Updated swedish translations. (mmistakes#2056) * Update Swedish localized UI text strings * Update CHANGELOG and history * Fix bad YAML Remove comma * Add Staticman app endpoint to docs site * Revert "Add Staticman app endpoint to docs site" This reverts commit 67c08a0. * exit search screen with Esc key (mmistakes#2055) * exit search with esc key feature is added * closing search screen with esc key feature is added to _main.js * Update CHANGELOG and history * Update history page * Add link to issue * Release 4.15.2 💎 * Add missing translation of chinese (mmistakes#2072) Add missing Chinese text strings * Update CHANGELOG and history * Fix indendation Close mmistakes#2078 * Fix indents * Loosen Bundler dependency for theme gem * Remove Google+ Google+ is being shutdown on April 2, 2019. Social sharing buttong, comment provider, and author link configs have been removed from the theme. ref: https://support.google.com/plus/answer/9195133 * Update CHANGELOG * Add tip on how to start a YouTube embed at a given timestamp (mmistakes#2077) Close mmistakes#2077 * Update Google Universal Analytics to load async (mmistakes#2079) * Update CHANGELOG and history * Adjust wording * Add styling for GFM task lists Close mmistakes#2092 * Add GFM task list example to post * Replace jQuery Smooth Scroll with Smooth Scroll + Gumshoe (mmistakes#2082) * Replace jQuery Smooth Scroll with Smooth Scroll + Gumshoe * Change smooth scrolling speed * Set maximum smooth scroll duration * Remove Font Awesome CSS Ppseudo elements attribute from JS script Close mmistakes#2050, close mmistakes#2075 * Update CHANGELOG and history * Fix figures when they are inside of a list (mmistakes#2094) * Update CHANGELOG and hsitory * Fix French translation typo (mmistakes#2096) * Update CHANGELOG and history * Updated vi-VN for some missing terms (mmistakes#2097) ```yml search_placeholder_text : "Nhập từ khóa cần tìm..." results_found : "Kết quả tìm được" back_to_top : "Về đầu trang" ``` * Update CHANGELOG and history * Typos fix and including more words for pt-br (mmistakes#2098) I just fixed some typos PT-BR, included translations for words that were not translated and changed some words to better describe the tag's meaning. This is how I use it in my Portuguese blog. * Update CHANGELOG and history * Update Font Awesome (mmistakes#2102) REF: https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md * Update CHANGELOG and history * Added missing Hindi Translation of ui-text (mmistakes#2105) Due to unknown reason, Hindi translation of ui-text was missing (mmistakes#2101) I have added it back from a previous pull request (mmistakes#1888) * Added missing Hindi Translation of ui-text ( for docs folder) (mmistakes#2106) Due to unknown reason, Hindi translation of ui-text was missing (mmistakes#2101) I have added it back from a previous pull request (mmistakes#1888) * Update CHANGELOG and history * Add UI Text for Thai Language (mmistakes#2111) * Update `/docs` text strings * Add reference to Thai UI text strings * Fix table of contents active link styling * Add `max-width` Sass variable (mmistakes#2093) * Update CHANGELOG and history * Allow adding JavaScript files after the theme's (mmistakes#2116) Allow adding JavaScript files after those bundled in the theme Close mmistakes#2110 * Update CHANGELOG and history * Improve search `input` semantics (mmistakes#2123) * Update search_form.html Updates Issue mmistakes#2122 by adding the correct input type and aria label. * update search_form.html should be area-placeholder. My mistake. Updates Issue mmistakes#2122 * fix aria-placeholder Updates issue mmistakes#2123 with a typo found by @mmistakes for liquid syntax. Close mmistakes#2122 * Update CHANGELOG and history * Release 4.16.0 💎 * Made Gumshoe contingent upon a TOC being present. This prevents a console error on pages without a TOC. (mmistakes#2124) * Update CHANGELOG and history * Update jquery v3.3.1 to v3.4.0 (mmistakes#2129) * Update jquery v3.3.1 to v3.4.0 * Update `main.min.js` Close mmistakes#2127 * Update CHANGELOG and history * Update layout compress from v3.0.2 to v3.1.0 (mmistakes#2128) * Update CHANGELOG and history * Add link to MM remote theme starter * Release 4.16.1 💎 * Revert back to jQuery v3.3.1 3.4.0 causes issues with older jQuery plugins that haven't been updated to support it. * Release 4.16.2 💎 * Update Gumshoe to v5.1.1 Fixes mmistakes#2140 * Update CHANGELOG and history * Update jQuery to v3.4.1 ref mmistakes#2137 * Update JavaScript listing * Update CHANGELOG and history * Reset positioning of `rel="permalink"` anchors * Release 4.16.3 💎 * Fix permalink stacking order * Update CHANGELOG and history * add www to facebook.com link (mmistakes#2160) * Change permalink * Fix pound symbol not displaying properly for post categories and tags Fixes mmistakes#2156 * Add edge case * Update CHANGELOG and history * Create FUNDING.yml * Fix and complete Spanish localization (mmistakes#2149) * Update CHANGELOG and history * update Font Awesome (mmistakes#2150) REF: https://fontawesome.com/changelog/latest * Update CHANGELOG and history * Fix and improve pt-BR localization. (mmistakes#2162) * Update CHANGELOG and history * Arithmetic fix in _form.scss (mmistakes#2169) * Update CHANGELOG and history * Release 4.16.4 💎 * Remove duplicate UI text file in `/docs` * Add skip links Close mmistakes#2182 * Remove extra `{` Fixes mmistakes#2192 * Low hanging fruit (mmistakes#2186) * Update 05-configuration.md - fix dead Twitter Dev docs url - slight clarification re: Player Card approval - fix Jekyll docs url * Update 2013-01-10-markup-image-alignment.md - fix the/re typo * Update CHANGELOG and history * Fix broken Flickr images * remove unneeded type="text/javascript" (mmistakes#2190) REF: - https://google.github.io/styleguide/htmlcssguide.html#type_Attributes - https://codeguide.co/#html-style-script - https://developers.google.com/analytics/devguides/collection/analyticsjs/ * Update CHANGELOG and history * Fix missing fallback title for table of contents * Remove unecessary console.log in `lunr-en.js` and `lunr-gr.js` JavaScript Close mmistakes#2193 * Use Font Awesome Kits to use the latest version of icons Close mmistakes#2184 * Complete missing parts of Korean locale. (mmistakes#2209) search_placeholder_text, results_found, and back_to_top * Update CHANGELOG and history * Display site subtitle in masthead (mmistakes#2205) * Add site subtitle * Tabs vs spaces - the ancient conflict * updates cfr PR mmistakes#2205 * Perhaps also add the closing anchor * Make sure we check for the right variables... * Brown paper bag - subtitle, not description * Use `span` instead of `div` element * Document `site.subtitle` * Update CHANGELOG and history * Add site subtitle * Fixes aria issues on search form (mmistakes#2211) * Fixes aria issues on search form * Swapping aria-label for <label> tag in search * Removing background gray caused by adding <form> tag to search * Removing redundant space * Making form not submit if key is enter Close mmistakes#2180 * Add localized text string * Update CHANGELOG and history * Updated localized text string for "Punjabi" and "Hindi" language (mmistakes#2212) * Update CHANGELOG and history * Release 4.16.5 💎 * Allow Markdown in author bio (mmistakes#2215) * enable markdown in author bio added the markdownify liquid filter * Add markdown to bio in _config.yml * add markdown to bio in /test/ _config.yml * Change <p> to <div> * Add note about allowed Markdown in `author.bio` * Update CHANGELOG and history * Add emphasis * Fix overlapping links in post link type Close mmistakes#2222 * Fix default site.author in seo.html (mmistakes#2230) * Update CHANGELOG and history * Complete Spanish localization (mmistakes#2229) * Update CHANGELOG and history * Remove fullstop in some Staticman UI text (mmistakes#2220) In this UI text, the 2nd sentence is not finished. comment_form_info : "Your email address will not be published. Required fields are marked" * Update CHANGELOG and history * Fix typos * Harmonize `site.url` for Organization JSON-LD schema * Fix `site.url` in Organization/Person JSON-LD schema Close mmistakes#1906 * Update history * Relax Jekyll dependency to allow for version 4.0 * Ignore Jekyll cache * Remove jemoji gem * Bump dependencies * Remove jemoji gem * Update documentation * Release 4.16.6 💎 * Translate into Catalan (mmistakes#2237) * Translate into Catalan * Translate missing key * Pluralize key * Update CHANGELOG, history, and docs * Update onchange development dependency in package.json Close mmistakes#2241 * Fix typo in config comment (mmistakes#2243) * Update CHANGELOG and history * Fix http links to use https (mmistakes#2244) Every site should support https by now. Better to link the https sites right away. Both sites do support https at the time I checked. * Update CHANGELOG and history * Allow per-page override of words_per_minute (mmistakes#2250) Different languages usually have different read speeds. This change is useful for sites with multi-lingual content * Document `page.words_per_minute` * Update CHANGELOG and history * Show a permalink anchor when hovering over headings in main content (mmistakes#2251) * Implement heading permalinks, close mmistakes#2246 Thanks to jekyll/jekyll for CSS. Link anchor is visible when the mouse hovers over the title line. * Build the updated _main.js * Update CHANGELOG and history * remove extraneous space from IE conditional statement (mmistakes#2273) * Update CHANGELOG and history * Release 4.17.0 (mmistakes#2275) * Release 4.17.0 💎 * Update CHANGELOG and history * MAINT: remove LICENSE * BUG: remove typo * MAINT: remove docs dir * STY: stylistic chages * MAINT: remove vendor/bundle
1 parent 4d5af9e commit 437837e

File tree

17 files changed

+222
-77
lines changed

17 files changed

+222
-77
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.sublime-workspace
44
.bundle
55
.DS_Store
6+
.jekyll-cache
67
.jekyll-metadata
78
.sass-cache
89
_asset_bundler_cache

_config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ remote_theme : "mmistakes/minimal-mistakes"
1313
minimal_mistakes_skin : "dirt" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"
1414

1515
# Site Settings
16-
locale : "en"
16+
locale : "en-US"
1717
title : "Eigenfoo"
1818
title_separator : "|"
1919
name : "George Ho"
@@ -203,7 +203,7 @@ kramdown:
203203
# Sass/SCSS
204204
sass:
205205
sass_dir: _sass
206-
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
206+
style: compressed # https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
207207

208208

209209
# Outputting
@@ -240,8 +240,8 @@ whitelist:
240240
# - Archive page should exist at path when using Liquid method or you can
241241
# expect broken links (especially with breadcrumbs enabled)
242242
# - <base_path>/tags/my-awesome-tag/index.html ~> path: /tags/
243-
# - <base_path/categories/my-awesome-category/index.html ~> path: /categories/
244-
# - <base_path/my-awesome-category/index.html ~> path: /
243+
# - <base_path>/categories/my-awesome-category/index.html ~> path: /categories/
244+
# - <base_path>/my-awesome-category/index.html ~> path: /
245245
category_archive:
246246
type: liquid
247247
path: /categories/
@@ -262,7 +262,7 @@ tag_archive:
262262

263263

264264
# HTML Compression
265-
# - http://jch.penibelst.de/
265+
# - https://jch.penibelst.de/
266266
compress_html:
267267
clippings: all
268268
ignore:

_data/ui-text.yml

Lines changed: 109 additions & 24 deletions
Large diffs are not rendered by default.

_includes/author-profile.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
<h3 class="author__name" itemprop="name">{{ author.name }}</h3>
3434
{% endif %}
3535
{% if author.bio %}
36-
<p class="author__bio" itemprop="description">
37-
{{ author.bio }}
38-
</p>
36+
<div class="author__bio" itemprop="description">
37+
{{ author.bio | markdownify }}
38+
</div>
3939
{% endif %}
4040
</div>
4141

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- For all browsers -->
1515
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
1616

17-
<!--[if IE ]>
17+
<!--[if IE]>
1818
<style>
1919
/* old IE unsupported flexbox fixes */
2020
.greedy-nav .site-title {

_includes/masthead.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
{% unless logo_path == empty %}
1212
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt=""></a>
1313
{% endunless %}
14-
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.masthead_title | default: site.title }}</a>
14+
<a class="site-title" href="{{ '/' | relative_url }}">
15+
{{ site.masthead_title | default: site.title }}
16+
{% if site.subtitle %}<span class="site-subtitle">{{ site.subtitle }}</span>{% endif %}
17+
</a>
1518
<ul class="visible-links">
1619
{%- for link in site.data.navigation.main -%}
1720
{%- if link.url contains '://' -%}

_includes/read-time.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% assign words_per_minute = site.words_per_minute | default: 200 %}
1+
{% assign words_per_minute = page.words_per_minute | default: site.words_per_minute | default: 200 %}
22

33
{% if post.read_time %}
44
{% assign words = post.content | strip_html | number_of_words %}
@@ -12,4 +12,4 @@
1212
1 {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
1313
{% else %}
1414
{{ words | divided_by:words_per_minute }} {{ site.data.ui-text[site.locale].minute_read | default: "minute read" }}
15-
{% endif %}
15+
{% endif %}

_includes/search/search_form.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
11
<div class="search-content__inner-wrap">
2-
{%- assign search_provider = site.search_provider | default: "lunr" -%}
3-
{%- case search_provider -%}
2+
{%- assign search_provider = site.search_provider | default: "lunr" -%}
3+
{%- case search_provider -%}
44
{%- when "lunr" -%}
5-
<input type="search" id="search" aria-placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
6-
<div id="results" class="results"></div>
5+
<form class="search-content__form" onkeydown="return event.key != 'Enter';">
6+
<label class="sr-only" for="search">
7+
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
8+
</label>
9+
<input type="search" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
10+
</form>
11+
<div id="results" class="results"></div>
712
{%- when "google" -%}
8-
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
9-
<input type="search" id="cse-search-input-box-id" aria-placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
10-
</form>
11-
<div id="results" class="results">
12-
<gcse:searchresults-only></gcse:searchresults-only>
13-
</div>
13+
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
14+
<label class="sr-only" for="cse-search-input-box-id">
15+
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
16+
</label>
17+
<input type="search" id="cse-search-input-box-id" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
18+
</form>
19+
<div id="results" class="results">
20+
<gcse:searchresults-only></gcse:searchresults-only>
21+
</div>
1422
{%- when "algolia" -%}
15-
<div class="search-searchbar"></div>
16-
<div class="search-hits"></div>
17-
{%- endcase -%}
23+
<div class="search-searchbar"></div>
24+
<div class="search-hits"></div>
25+
{%- endcase -%}
1826
</div>

_includes/seo.html

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
2626
{%- endif -%}
2727

28-
{%- assign author = page.author | default: page.authors[0] | default: site:author -%}
28+
{%- assign author = page.author | default: page.authors[0] | default: site.author -%}
2929
{%- assign author = site.data.authors[author] | default: author -%}
3030

3131
{%- if author.twitter -%}
@@ -127,28 +127,21 @@
127127
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
128128
{% endif %}
129129

130-
{% if site.og_image %}
131-
<script type="application/ld+json">
132-
{
133-
"@context": "https://schema.org",
130+
<script type="application/ld+json">
131+
{
132+
"@context": "https://schema.org",
133+
{% if site.social.type == "Organization" %}
134134
"@type": "Organization",
135-
"url": {{ seo_url | jsonify }},
136-
"logo": {{ site_og_image | jsonify }}
137-
}
138-
</script>
139-
{% endif %}
140-
141-
{% if site.social %}
142-
<script type="application/ld+json">
143-
{
144-
"@context": "https://schema.org",
145-
"@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
135+
"url": {{ '/' | absolute_url | jsonify }}{% if site.og_image %},
136+
"logo": {{ site_og_image | jsonify }}{% endif %}
137+
{% else %}
138+
"@type": "Person",
146139
"name": {{ site.social.name | default: site.name | jsonify }},
147-
"url": {{ seo_url | jsonify }},
148-
"sameAs": {{ site.social.links | jsonify }}
149-
}
150-
</script>
151-
{% endif %}
140+
"url": {{ '/' | absolute_url |jsonify }}{% if site.social.links %},
141+
"sameAs": {{ site.social.links | jsonify }}{% endif %}
142+
{% endif %}
143+
}
144+
</script>
152145

153146
{% if site.google_site_verification %}
154147
<meta name="google-site-verification" content="{{ site.google_site_verification }}" />

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!doctype html>
55
<!--
6-
Minimal Mistakes Jekyll Theme 4.16.4 by Michael Rose
6+
Minimal Mistakes Jekyll Theme 4.17.0 by Michael Rose
77
Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
88
Free for personal and commercial use under the MIT license
99
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE

0 commit comments

Comments
 (0)