Skip to content

Commit 480492a

Browse files
committed
🔖 Release v2.0.5
2 parents 3930c5b + 2ceab5d commit 480492a

File tree

19 files changed

+212
-138
lines changed

19 files changed

+212
-138
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [2.0.5] - 2022-02-20
10+
11+
### Added
12+
13+
- Bengali translation ([#115](https://github.com/jpanther/congo/pull/115))
14+
15+
### Changed
16+
17+
- Upgrade to Tailwind v3.0.23 and Typography v0.5.2
18+
- Upgrade to Mermaid v8.14.0
19+
- Upgrade to Chart.js v3.7.1
20+
21+
### Fixed
22+
23+
- Updated date is displayed even when it is the same as published date
24+
- Structured data on homepage unparsable by Google ([#113](https://github.com/jpanther/congo/issues/113))
25+
- Underline styles not displaying correctly in some browsers ([#125](https://github.com/jpanther/congo/issues/125))
26+
927
## [2.0.4] - 2022-02-09
1028

1129
### Changed
@@ -325,7 +343,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
325343
- Advanced customisation using simple Tailwind colour definitions and styles
326344
- Fully documented
327345

328-
[unreleased]: https://github.com/jpanther/congo/compare/v2.0.4...HEAD
346+
[unreleased]: https://github.com/jpanther/congo/compare/v2.0.5...HEAD
347+
[2.0.5]: https://github.com/jpanther/congo/compare/v2.0.4...v2.0.5
329348
[2.0.4]: https://github.com/jpanther/congo/compare/v2.0.3...v2.0.4
330349
[2.0.3]: https://github.com/jpanther/congo/compare/v2.0.2...v2.0.3
331350
[2.0.2]: https://github.com/jpanther/congo/compare/v2.0.1...v2.0.2

assets/css/compiled/main.css

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
1+
/*! Congo v2.0.5 | MIT License | https://github.com/jpanther/congo */
22

3-
/*! tailwindcss v3.0.19 | MIT License | https://tailwindcss.com */
3+
/*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com */
44

55
/*
66
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -481,18 +481,18 @@ Ensure the default browser behavior of the `hidden` attribute.
481481
margin-bottom: 1.2em;
482482
}
483483

484-
.prose a {
484+
.prose :where(a):not(:where([class~="not-prose"] *)) {
485485
color: var(--tw-prose-links);
486486
text-decoration: underline;
487487
font-weight: 500;
488488
-webkit-text-decoration-color: rgb(var(--color-primary-300));
489489
text-decoration-color: rgb(var(--color-primary-300));
490490
}
491491

492-
:where(.prose a:hover):not(:where([class~="not-prose"] *)) {
493-
color: rgb(var(--color-neutral)) !important;
494-
text-decoration: none !important;
495-
background-color: rgb(var(--color-primary-600)) !important;
492+
.prose :where(a):not(:where([class~="not-prose"] *)):hover {
493+
color: rgb(var(--color-neutral));
494+
text-decoration: none;
495+
background-color: rgb(var(--color-primary-600));
496496
border-radius: 0.09rem;
497497
}
498498

@@ -2156,6 +2156,16 @@ body a, body button {
21562156
text-decoration-line: none !important;
21572157
}
21582158

2159+
.decoration-primary-500 {
2160+
-webkit-text-decoration-color: rgb(var(--color-primary-500));
2161+
text-decoration-color: rgb(var(--color-primary-500));
2162+
}
2163+
2164+
.decoration-neutral-300 {
2165+
-webkit-text-decoration-color: rgb(var(--color-neutral-300));
2166+
text-decoration-color: rgb(var(--color-neutral-300));
2167+
}
2168+
21592169
.opacity-0 {
21602170
opacity: 0;
21612171
}
@@ -2238,16 +2248,6 @@ body a, body button {
22382248
text-decoration-line: underline;
22392249
}
22402250

2241-
.hover\:decoration-primary-500:hover {
2242-
-webkit-text-decoration-color: rgb(var(--color-primary-500));
2243-
text-decoration-color: rgb(var(--color-primary-500));
2244-
}
2245-
2246-
.hover\:decoration-neutral-300:hover {
2247-
-webkit-text-decoration-color: rgb(var(--color-neutral-300));
2248-
text-decoration-color: rgb(var(--color-neutral-300));
2249-
}
2250-
22512251
.hover\:decoration-primary-400:hover {
22522252
-webkit-text-decoration-color: rgb(var(--color-primary-400));
22532253
text-decoration-color: rgb(var(--color-primary-400));

assets/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
1+
/*! Congo v2.0.5 | MIT License | https://github.com/jpanther/congo */
22

33
@tailwind base;
44
@tailwind components;

assets/lib/chart/chart.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/lib/mermaid/mermaid.min.js

100644100755
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exampleSite/content/docs/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ The theme currently supports the following languages by default:
5050
| Language | Code |
5151
| ---------------------------- | ------- |
5252
| :gb: English | `en` |
53+
| :bangladesh: Bengali | `bn` |
5354
| :cn: Chinese | `zh` |
5455
| :fr: French | `fr` |
5556
| :de: German | `de` |

exampleSite/content/docs/partials.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@ To enable Fathom Analytics support, simply provide your Fathom site code in the
2727

2828
Google Analytics support is provided through the internal Hugo partial. Simply provide the `googleAnalytics` key in the `config/_default/config.toml` file and the script will be added automatically.
2929

30+
Both version 3 (analytics.js) and version 4 (gtag.js) are supported, based on the configuration value provided:
31+
3032
```toml
3133
# config/_default/config.toml
3234

35+
# version 3
3336
googleAnalytics = "UA-PROPERTY_ID"
37+
# version 4
38+
googleAnalytics = "G-MEASUREMENT_ID"
3439
```
3540

3641
### Custom analytics providers

exampleSite/content/docs/version-2/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Implementing this new version has also removed some Tailwind plugin dependencies
2626

2727
A highly requested feature, Congo is now multilingual! If you publish your content in multiple languages, the site will be built with all the translations available.
2828

29-
<div class="text-2xl text-center" style="font-size: 2.8rem">:flag-au: :de: :fr: :es: :cn: :brazil: :tr:</div>
29+
<div class="text-2xl text-center" style="font-size: 2.8rem">:gb: :de: :fr: :es: :cn: :brazil: :tr: :bangladesh:</div>
3030

31-
Thanks to submissions from the community, Congo has already been translated into [seven languages](https://github.com/jpanther/congo/tree/dev/i18n) with more to be added over time. By the way, [pull requests](https://github.com/jpanther/congo/pulls) for new languages are always welcome!
31+
Thanks to submissions from the community, Congo has already been translated into [eight languages](https://github.com/jpanther/congo/tree/dev/i18n) with more to be added over time. By the way, [pull requests](https://github.com/jpanther/congo/pulls) for new languages are always welcome!
3232

3333
## RTL language support
3434

i18n/bn.yaml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
article:
2+
anchor_label: "Anchor"
3+
date: "{{ .Date }}"
4+
date_updated: "সর্বশেষ সম্পাদনার তারিখ: {{ .Date }}"
5+
draft: "খসড়া"
6+
edit_title: "সম্পাদনা করুন"
7+
reading_time:
8+
one: "{{ .Count }} মিনিট"
9+
other: "{{ .Count }} মিনিট"
10+
reading_time_title: "পড়ার সময়"
11+
table_of_contents: "বিষয়সূচী"
12+
word_count:
13+
one: "{{ .Count }} টি শব্দ"
14+
other: "{{ .Count }} টি শব্দ"
15+
16+
author:
17+
byline_title: "লেখক"
18+
19+
code:
20+
copy: "কপি করুন"
21+
copied: "কপি হয়ে গেছে"
22+
23+
error:
24+
404_title: "পেজটি খুঁজে পাওয়া যায়নি :confused:"
25+
404_error: "Error 404"
26+
404_description: "মনে হচ্ছে, আপনার অনুরোধ করা পেজটি খুঁজে পাওয়া যায়নি।"
27+
28+
footer:
29+
dark_appearance: "ডার্ক মোডে স্যুইচ করুন"
30+
light_appearance: "লাইট মোডে স্যুইচ করুন"
31+
powered_by: "{{ .Hugo }} এবং {{ .Congo }} দ্বারা চালিত"
32+
33+
list:
34+
externalurl_title: "অন্য ওয়েবসাইটের লিংক"
35+
no_articles: "এখানে তালিকাভুক্ত করার মতো আপাতত কিছুই নেই।"
36+
37+
nav:
38+
scroll_to_top_title: "পেজের উপরের দিকে যান"
39+
skip_to_main: "মূল বিষয়ে যান"
40+
41+
search:
42+
open_button_title: "খুঁজুন (/)"
43+
close_button_title: "বন্ধ করুন (Esc)"
44+
input_placeholder: "খুঁজুন"
45+
46+
sharing:
47+
email: "ইমেল করুন"
48+
facebook: "ফেসবুকে শেয়ার করুন"
49+
linkedin: "লিংকডইনে শেয়ার করুন"
50+
pinterest: "পিন্টারেস্টে পিন করুন"
51+
reddit: "রেড্ডিটে জমা দিন"
52+
twitter: "ট্যুইট করুন"
53+
54+
shortcode:
55+
recent_articles: "সাম্প্রতিক"

layouts/_default/taxonomy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .
1717
<article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5">
1818
<h2 class="flex items-center">
1919
<a
20-
class="text-xl font-medium hover:underline hover:decoration-primary-500 hover:underline-offset-2"
20+
class="text-xl font-medium hover:underline decoration-primary-500 hover:underline-offset-2"
2121
href="{{ .Page.RelPermalink }}"
2222
>{{ .Page.Title }}</a
2323
>

layouts/partials/article-link.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h3 class="flex items-center mt-6 text-xl font-semibold">
33
{{ with .Params.externalUrl }}
44
<a
5-
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
5+
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
66
href="{{ . }}"
77
target="_blank"
88
rel="external"
@@ -16,7 +16,7 @@ <h3 class="flex items-center mt-6 text-xl font-semibold">
1616
</span>
1717
{{ else }}
1818
<a
19-
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
19+
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
2020
href="{{ .RelPermalink }}"
2121
>{{ .Title | emojify }}</a
2222
>

layouts/partials/article-meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
1717
{{ end }}
1818

19-
{{ if .Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false) }}
19+
{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne .Date .Lastmod) }}
2020
{{ $meta.Add "partials" (slice (partial "meta/date-updated.html" .Lastmod)) }}
2121
{{ end }}
2222

layouts/partials/breadcrumbs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{ end }}
1010
<li class="inline {{ if or (eq .p1 .p2) (.p1.IsHome) }}hidden{{ end }}">
1111
<a
12-
class="hover:underline hover:decoration-neutral-300 dark:underline-neutral-600"
12+
class="hover:underline decoration-neutral-300 dark:underline-neutral-600"
1313
href="{{ .p1.RelPermalink }}"
1414
>{{ if .p1.Title }}
1515
{{- .p1.Title -}}

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ range .Site.Menus.footer }}
77
<li class="mb-1 sm:mb-0 sm:mr-7 sm:last:mr-0">
88
<a
9-
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
9+
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
1010
href="{{ .URL }}"
1111
title="{{ .Title }}"
1212
>{{ .Name | markdownify | emojify }}</a

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ end }}
1919
{{ else }}
2020
<a
21-
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
21+
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
2222
rel="me"
2323
href="{{ "/" | relLangURL }}"
2424
>{{ .Site.Title | markdownify | emojify }}</a
@@ -35,7 +35,7 @@
3535
class="mb-1 ltr:text-right rtl:text-left sm:mb-0 ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0"
3636
>
3737
<a
38-
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
38+
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
3939
href="{{ .URL }}"
4040
title="{{ .Title }}"
4141
>{{ .Name | markdownify | emojify }}</a

layouts/partials/schema.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
{{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }}
99
{{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }}
1010
"url": "{{ (site.GetPage "/").Permalink | safeURL }}",
11+
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
1112
"publisher" : {
1213
"@type": "Person",
13-
"name": "{{ .Site.Author.name | safeJS }}",
14-
},
15-
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
14+
"name": "{{ .Site.Author.name | safeJS }}"
15+
}
1616
}
1717
</script>
1818
{{ else if .IsPage }}

0 commit comments

Comments
 (0)