Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #1

Merged
merged 8 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/bad-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'Type: Invalid'
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'Type: Spam'
- uses: superbrothers/close-pull-request@v3
with:
# Optional. Post an issue comment just before closing a pull request.
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
- Remove unnecessary "type" attribute (#4956)
- The "if" means the default is never used (#4955)
- For pages without a title, show the site title only once (#4959)
- Use `documents-collection.html` partial in `home` layout.
- Add Bulgarian translation. [#5003](https://github.com/mmistakes/minimal-mistakes/pull/5003)

### Bug Fixes

- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)
- Fix JavaScript null error on home and splash layouts. [#4938](https://github.com/mmistakes/minimal-mistakes/issues/4938), [#4939](https://github.com/mmistakes/minimal-mistakes/pull/4939)
- Fix bad <figure> HTML if "alt" contains quotes.
- Fix extra newline generated in `_includes/post_pagination.html`.

### Documentation & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building per
- Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
- Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), Google+, [Discourse](https://www.discourse.org/), static-based via [Staticman](https://staticman.net/), [utterances](https://utteranc.es/), and [giscus](https://giscus.app/)).
- [Google Analytics](https://www.google.com/analytics/) support.
- UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Czech, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), Ukrainian (Українська) and Vietnamese.
- UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Bulgarian, Catalan, Chinese, Czech, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), Ukrainian (Українська) and Vietnamese.

## Skins (color variations)

Expand Down
53 changes: 53 additions & 0 deletions _data/ui-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2127,6 +2127,59 @@ cs: &DEFAULT_CS
cs-CZ:
<<: *DEFAULT_CS

# Bulgarian
# -----------------
bg: &DEFAULT_BG
skip_links : "Пропуснете връзките"
skip_primary_nav : "Преминете към основната навигация"
skip_content : "Преминете към съдържанието"
skip_footer : "Преминете към долния колонтитул"
page : "Страница"
pagination_previous : "Предишна"
pagination_next : "Следваща"
breadcrumb_home_label : "Начало"
breadcrumb_separator : "/"
menu_label : "Превключване на меню"
search_label : "Превключване на търсене"
toc_label : "На тази страница"
ext_link_label : "Пряка връзка"
less_than : "по-малко от"
minute_read : "минута четене"
share_on_label : "Споделете"
meta_label :
tags_label : "Етикети:"
categories_label : "Категории:"
date_label : "Обновено:"
comments_label : "Оставете коментар"
comments_title : "Коментари"
more_label : "Научете повече"
related_label : "Може да са ви интересни"
follow_label : "Последвайте:"
feed_label : "Емисия"
powered_by : "Осъществено чрез"
website_label : "Уебсайт"
email_label : "Е-поща"
recent_posts : "Последни публикации"
undefined_wpm : "Недефиниран параметър words_per_minute в _config.yml"
comment_form_info : "Вашият адрес за е-поща няма да бъде публикуван. Задължителните полета са обозначени"
comment_form_comment_label : "Коментар"
comment_form_md_info : "Поддържа се Маркдаун."
comment_form_name_label : "Име"
comment_form_email_label : "Адрес за е-поща"
comment_form_website_label : "Уебсайт (по желание)"
comment_btn_submit : "Изпращане на коментар"
comment_btn_submitted : "Изпратено"
comment_success_msg : "Благодарности за коментара! Ще се покаже на сайта, след като бъде одобрен."
comment_error_msg : "Съжаляваме, възникна грешка с изпращането. Моля, уверете се, че всички задължителни полета са попълнени и опитайте отново."
loading_label : "Зареждане..."
search_label_text : "Въведете термин за търсене..."
search_placeholder_text : "Въведете термин за търсене..."
search_algolia_no_results : "Няма резултати"
results_found : "Намерени резултати"
back_to_top : "Обратно към началото"
bg-BG:
<<: *DEFAULT_BG

# Another locale
# --------------
#
4 changes: 2 additions & 2 deletions _includes/documents-collection.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% assign entries = site[include.collection] | where_exp: "post", "post.hidden != true" %}
{% assign entries = include.entries | default: site[include.collection] | where_exp: "post", "post.hidden != true" %}

{% if include.sort_by %}
{% assign entries = entries | sort: include.sort_by %}
Expand All @@ -9,5 +9,5 @@
{% endif %}

{%- for post in entries -%}
{% include archive-single.html %}
{% include archive-single.html type=include.type %}
{%- endfor -%}
2 changes: 1 addition & 1 deletion _includes/figure
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<figure class="{{ include.class }}">
{%- if include.popup -%}<a href="{{ include.image_path | relative_url }}" class="image-popup"{% if include.caption %} title="{{ include.caption | markdownify | strip_html }}"{% endif %}>{%- endif -%}
<img src="{{ include.image_path | relative_url }}"
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
alt="{% if include.alt %}{{ include.alt | escape_once }}{% endif %}">
{%- if include.popup -%}</a>{%- endif -%}
{%- if include.caption -%}
<figcaption>
Expand Down
6 changes: 3 additions & 3 deletions _includes/post_pagination.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{% if page.previous or page.next %}
<nav class="pagination">
{% if page.previous %}
<a href="{{ page.previous.url | relative_url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
<a href="{{ page.previous.url | relative_url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html | strip}}">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
{% else %}
<a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_previous | default: "Previous" }}</a>
{% endif %}
{% if page.next %}
<a href="{{ page.next.url | relative_url }}" class="pagination--pager" title="{{ page.next.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
<a href="{{ page.next.url | relative_url }}" class="pagination--pager" title="{{ page.next.title | markdownify | strip_html | strip}}">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
{% else %}
<a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_next | default: "Next" }}</a>
{% endif %}
</nav>
{% endif %}
{% endif %}
4 changes: 1 addition & 3 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ <h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | d

{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
{% for post in posts %}
{% include archive-single.html type=entries_layout %}
{% endfor %}
{% include documents-collection.html entries=posts type=entries_layout %}
</div>

{% include paginator.html %}
8 changes: 4 additions & 4 deletions _sass/minimal-mistakes/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ html {
/* apply a natural box layout model to all elements */
box-sizing: border-box;
background-color: $background-color;
font-size: 16px;
font-size: $doc-font-size;

@include breakpoint($medium) {
font-size: 18px;
font-size: $doc-font-size-medium;
}

@include breakpoint($large) {
font-size: 20px;
font-size: $doc-font-size-large;
}

@include breakpoint($x-large) {
font-size: 22px;
font-size: $doc-font-size-x-large;
}

-webkit-text-size-adjust: 100%;
Expand Down
5 changes: 4 additions & 1 deletion _sass/minimal-mistakes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
Typography
========================================================================== */

$doc-font-size: 16 !default;
$doc-font-size: 16px !default;
$doc-font-size-medium: $doc-font-size * 1.125 !default;
$doc-font-size-large: $doc-font-size * 1.25 !default;
$doc-font-size-x-large: $doc-font-size * 1.375 !default;

/* paragraph indention */
$paragraph-indent: false !default; // true, false (default)
Expand Down
34 changes: 19 additions & 15 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,25 @@ $(document).ready(function () {
});

// Add anchors for headings
document
.querySelector(".page__content")
.querySelectorAll("h1, h2, h3, h4, h5, h6")
.forEach(function (element) {
var id = element.getAttribute("id");
if (id) {
var anchor = document.createElement("a");
anchor.className = "header-link";
anchor.href = "#" + id;
anchor.innerHTML =
'<span class="sr-only">Permalink</span><i class="fas fa-link"></i>';
anchor.title = "Permalink";
element.appendChild(anchor);
}
});
(function () {
var pageContentElement = document.querySelector(".page__content");
if (!pageContentElement) return;

pageContentElement
.querySelectorAll("h1, h2, h3, h4, h5, h6")
.forEach(function (element) {
var id = element.getAttribute("id");
if (id) {
var anchor = document.createElement("a");
anchor.className = "header-link";
anchor.href = "#" + id;
anchor.innerHTML =
'<span class="sr-only">Permalink</span><i class="fas fa-link"></i>';
anchor.title = "Permalink";
element.appendChild(anchor);
}
});
})();

// Add copy button for <pre> blocks
var copyText = function (text) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/main.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/_docs/08-ui-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The English[^yaml-anchors] main keys in [`_data/ui-text.yml`](https://github.com

- Arabic (عربي)
- Brazilian Portuguese (Português brasileiro)
- Bulgarian
- Catalan
- Chinese
- Czech
Expand Down
8 changes: 7 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: "/docs/history/"
excerpt: Change log of enhancements and bug fixes made to the theme.
sidebar:
nav: docs
last_modified_at: '2024-08-20T17:04:07+08:00'
last_modified_at: '2024-11-11T21:31:17+08:00'
toc: false
---

Expand All @@ -25,11 +25,17 @@ toc: false
- Remove unnecessary "type" attribute [#4956](https://github.com/mmistakes/minimal-mistakes/issues/4956)
- The "if" means the default is never used [#4955](https://github.com/mmistakes/minimal-mistakes/issues/4955)
- For pages without a title, show the site title only once [#4959](https://github.com/mmistakes/minimal-mistakes/issues/4959)
- Use `documents-collection.html` partial in `home` layout.
- Add Bulgarian translation. [#5003](https://github.com/mmistakes/minimal-mistakes/pull/5003)

### Bug Fixes

- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)
- Fix JavaScript null error on home and splash layouts. [#4938](https://github.com/mmistakes/minimal-mistakes/issues/4938), [#4939](https://github.com/mmistakes/minimal-mistakes/pull/4939)
- Fix bad &lt;figure&gt; HTML if "alt" contains quotes.
- Fix extra newline generated in `_includes/post_pagination.html`.

### Documentation & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion docs/_pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Minimal Mistakes is a flexible two-column Jekyll theme. Perfect for hosting your
- Optional [header images](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#headers), [custom sidebars](https://mmistakes.github.io/minimal-mistakes/docs/layouts/#sidebars), [table of contents](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#table-of-contents), [galleries](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#gallery), related posts, [breadcrumb links](https://mmistakes.github.io/minimal-mistakes/docs/configuration/#breadcrumb-navigation-beta), [navigation lists](https://mmistakes.github.io/minimal-mistakes/docs/helpers/#navigation-list), and more.
- Commenting support (powered by [Disqus](https://disqus.com/), [Facebook](https://developers.facebook.com/docs/plugins/comments), [Discourse](https://www.discourse.org/), [utterances](https://utteranc.es/), [giscus](https://giscus.app/), static-based via [Staticman v1 and v2](https://staticman.net/), and custom).
- [Google Analytics](https://www.google.com/analytics/) support.
- UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Catalan, Chinese, Czech, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.
- UI localized text in English (default), Arabic (عربي), Brazilian Portuguese (Português brasileiro), Bulgarian, Catalan, Chinese, Czech, Danish, Dutch, Finnish, French (Français), German (Deutsch), Greek, Hebrew, Hindi (हिंदी), Hungarian, Indonesian, Irish (Gaeilge), Italian (Italiano), Japanese, Kiswahili, Korean, Malayalam, Myanmar (Burmese), Nepali (Nepalese), Norwegian (Norsk), Persian (فارسی), Polish, Punjabi (ਪੰਜਾਬੀ), Romanian, Russian, Slovak, Spanish (Español), Swedish, Thai, Turkish (Türkçe), and Vietnamese.

## Demo Pages

Expand Down
Loading