Skip to content

Commit

Permalink
🔖 Release v2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Feb 20, 2022
2 parents 3930c5b + 2ceab5d commit 480492a
Show file tree
Hide file tree
Showing 19 changed files with 212 additions and 138 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [2.0.5] - 2022-02-20

### Added

- Bengali translation ([#115](https://github.com/jpanther/congo/pull/115))

### Changed

- Upgrade to Tailwind v3.0.23 and Typography v0.5.2
- Upgrade to Mermaid v8.14.0
- Upgrade to Chart.js v3.7.1

### Fixed

- Updated date is displayed even when it is the same as published date
- Structured data on homepage unparsable by Google ([#113](https://github.com/jpanther/congo/issues/113))
- Underline styles not displaying correctly in some browsers ([#125](https://github.com/jpanther/congo/issues/125))

## [2.0.4] - 2022-02-09

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

[unreleased]: https://github.com/jpanther/congo/compare/v2.0.4...HEAD
[unreleased]: https://github.com/jpanther/congo/compare/v2.0.5...HEAD
[2.0.5]: https://github.com/jpanther/congo/compare/v2.0.4...v2.0.5
[2.0.4]: https://github.com/jpanther/congo/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/jpanther/congo/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/jpanther/congo/compare/v2.0.1...v2.0.2
Expand Down
34 changes: 17 additions & 17 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.0.5 | MIT License | https://github.com/jpanther/congo */

/*! tailwindcss v3.0.19 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com */

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

.prose a {
.prose :where(a):not(:where([class~="not-prose"] *)) {
color: var(--tw-prose-links);
text-decoration: underline;
font-weight: 500;
-webkit-text-decoration-color: rgb(var(--color-primary-300));
text-decoration-color: rgb(var(--color-primary-300));
}

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

Expand Down Expand Up @@ -2156,6 +2156,16 @@ body a, body button {
text-decoration-line: none !important;
}

.decoration-primary-500 {
-webkit-text-decoration-color: rgb(var(--color-primary-500));
text-decoration-color: rgb(var(--color-primary-500));
}

.decoration-neutral-300 {
-webkit-text-decoration-color: rgb(var(--color-neutral-300));
text-decoration-color: rgb(var(--color-neutral-300));
}

.opacity-0 {
opacity: 0;
}
Expand Down Expand Up @@ -2238,16 +2248,6 @@ body a, body button {
text-decoration-line: underline;
}

.hover\:decoration-primary-500:hover {
-webkit-text-decoration-color: rgb(var(--color-primary-500));
text-decoration-color: rgb(var(--color-primary-500));
}

.hover\:decoration-neutral-300:hover {
-webkit-text-decoration-color: rgb(var(--color-neutral-300));
text-decoration-color: rgb(var(--color-neutral-300));
}

.hover\:decoration-primary-400:hover {
-webkit-text-decoration-color: rgb(var(--color-primary-400));
text-decoration-color: rgb(var(--color-primary-400));
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Congo v2.0.4 | MIT License | https://github.com/jpanther/congo */
/*! Congo v2.0.5 | MIT License | https://github.com/jpanther/congo */

@tailwind base;
@tailwind components;
Expand Down
6 changes: 3 additions & 3 deletions assets/lib/chart/chart.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/lib/mermaid/mermaid.min.js
100644 → 100755

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions exampleSite/content/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The theme currently supports the following languages by default:
| Language | Code |
| ---------------------------- | ------- |
| :gb: English | `en` |
| :bangladesh: Bengali | `bn` |
| :cn: Chinese | `zh` |
| :fr: French | `fr` |
| :de: German | `de` |
Expand Down
5 changes: 5 additions & 0 deletions exampleSite/content/docs/partials.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ To enable Fathom Analytics support, simply provide your Fathom site code in the

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.

Both version 3 (analytics.js) and version 4 (gtag.js) are supported, based on the configuration value provided:

```toml
# config/_default/config.toml

# version 3
googleAnalytics = "UA-PROPERTY_ID"
# version 4
googleAnalytics = "G-MEASUREMENT_ID"
```

### Custom analytics providers
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/docs/version-2/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Implementing this new version has also removed some Tailwind plugin dependencies

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.

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

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!
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!

## RTL language support

Expand Down
55 changes: 55 additions & 0 deletions i18n/bn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
article:
anchor_label: "Anchor"
date: "{{ .Date }}"
date_updated: "সর্বশেষ সম্পাদনার তারিখ: {{ .Date }}"
draft: "খসড়া"
edit_title: "সম্পাদনা করুন"
reading_time:
one: "{{ .Count }} মিনিট"
other: "{{ .Count }} মিনিট"
reading_time_title: "পড়ার সময়"
table_of_contents: "বিষয়সূচী"
word_count:
one: "{{ .Count }} টি শব্দ"
other: "{{ .Count }} টি শব্দ"

author:
byline_title: "লেখক"

code:
copy: "কপি করুন"
copied: "কপি হয়ে গেছে"

error:
404_title: "পেজটি খুঁজে পাওয়া যায়নি :confused:"
404_error: "Error 404"
404_description: "মনে হচ্ছে, আপনার অনুরোধ করা পেজটি খুঁজে পাওয়া যায়নি।"

footer:
dark_appearance: "ডার্ক মোডে স্যুইচ করুন"
light_appearance: "লাইট মোডে স্যুইচ করুন"
powered_by: "{{ .Hugo }} এবং {{ .Congo }} দ্বারা চালিত"

list:
externalurl_title: "অন্য ওয়েবসাইটের লিংক"
no_articles: "এখানে তালিকাভুক্ত করার মতো আপাতত কিছুই নেই।"

nav:
scroll_to_top_title: "পেজের উপরের দিকে যান"
skip_to_main: "মূল বিষয়ে যান"

search:
open_button_title: "খুঁজুন (/)"
close_button_title: "বন্ধ করুন (Esc)"
input_placeholder: "খুঁজুন"

sharing:
email: "ইমেল করুন"
facebook: "ফেসবুকে শেয়ার করুন"
linkedin: "লিংকডইনে শেয়ার করুন"
pinterest: "পিন্টারেস্টে পিন করুন"
reddit: "রেড্ডিটে জমা দিন"
twitter: "ট্যুইট করুন"

shortcode:
recent_articles: "সাম্প্রতিক"
2 changes: 1 addition & 1 deletion layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .
<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">
<h2 class="flex items-center">
<a
class="text-xl font-medium hover:underline hover:decoration-primary-500 hover:underline-offset-2"
class="text-xl font-medium hover:underline decoration-primary-500 hover:underline-offset-2"
href="{{ .Page.RelPermalink }}"
>{{ .Page.Title }}</a
>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/article-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3 class="flex items-center mt-6 text-xl font-semibold">
{{ with .Params.externalUrl }}
<a
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
href="{{ . }}"
target="_blank"
rel="external"
Expand All @@ -16,7 +16,7 @@ <h3 class="flex items-center mt-6 text-xl font-semibold">
</span>
{{ else }}
<a
class="hover:underline hover:decoration-primary-500 hover:underline-offset-2 text-neutral-800 dark:text-neutral"
class="decoration-primary-500 hover:underline hover:underline-offset-2 text-neutral-800 dark:text-neutral"
href="{{ .RelPermalink }}"
>{{ .Title | emojify }}</a
>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/article-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{ end }}

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

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/breadcrumbs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ end }}
<li class="inline {{ if or (eq .p1 .p2) (.p1.IsHome) }}hidden{{ end }}">
<a
class="hover:underline hover:decoration-neutral-300 dark:underline-neutral-600"
class="hover:underline decoration-neutral-300 dark:underline-neutral-600"
href="{{ .p1.RelPermalink }}"
>{{ if .p1.Title }}
{{- .p1.Title -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ range .Site.Menus.footer }}
<li class="mb-1 sm:mb-0 sm:mr-7 sm:last:mr-0">
<a
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}"
title="{{ .Title }}"
>{{ .Name | markdownify | emojify }}</a
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ end }}
{{ else }}
<a
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
rel="me"
href="{{ "/" | relLangURL }}"
>{{ .Site.Title | markdownify | emojify }}</a
Expand All @@ -35,7 +35,7 @@
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"
>
<a
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
href="{{ .URL }}"
title="{{ .Title }}"
>{{ .Name | markdownify | emojify }}</a
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
{{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }}
{{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }}
"url": "{{ (site.GetPage "/").Permalink | safeURL }}",
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"publisher" : {
"@type": "Person",
"name": "{{ .Site.Author.name | safeJS }}",
},
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"name": "{{ .Site.Author.name | safeJS }}"
}
}
</script>
{{ else if .IsPage }}
Expand Down
Loading

0 comments on commit 480492a

Please sign in to comment.