mirror of https://github.com/jpanther/congo.git
Compare commits
No commits in common. "7f141e7a35a08019b0f6d3e0ada4f93fee5963b7" and "edbb9c0b7485f2be67ae263970598779f3c45f2c" have entirely different histories.
7f141e7a35
...
edbb9c0b74
17
CHANGELOG.md
17
CHANGELOG.md
|
@ -6,27 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
## [2.7.1] - 2023-10-24
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- Minor refactor to improve memory efficiency in search results ([#650](https://github.com/jpanther/congo/pull/650))
|
|
||||||
- Links in Markdown content are now portable ([#655](https://github.com/jpanther/congo/pull/655))
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
|
|
||||||
- JavaScript error setting theme colour when site is loaded in dark mode ([#676](https://github.com/jpanther/congo/issues/676))
|
|
||||||
|
|
||||||
## [2.7.0] - 2023-10-23
|
## [2.7.0] - 2023-10-23
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- New portable locale picker that can be placed in any menu using the `locale` action ([#583](https://github.com/jpanther/congo/issues/583))
|
- New portable locale picker that can be placed in any menu using the `locale` action ([#583](https://github.com/jpanther/congo/issues/583))
|
||||||
- New icons for `chevron-down`, `chevron-up`, `globe`, `translate`, `coffee` and `x-twitter` ([#669](https://github.com/jpanther/congo/pull/669))
|
- New icons for `chevron-down`, `chevron-up`, `globe` and `translate`
|
||||||
- Plausible Analytics support ([#584](https://github.com/jpanther/congo/pull/584))
|
- Plausible Analytics support ([#584](https://github.com/jpanther/congo/pull/584))
|
||||||
- Spanish translation of example site samples ([#606](https://github.com/jpanther/congo/pull/606))
|
- Spanish translation of example site samples ([#606](https://github.com/jpanther/congo/pull/606))
|
||||||
- Japanese translation of docs and example site ([#618](https://github.com/jpanther/congo/pull/618))
|
- Japanese translation of docs and example site ([#618](https://github.com/jpanther/congo/pull/618))
|
||||||
- German translation of example site ([#631](https://github.com/jpanther/congo/pull/631))
|
- German translation of example site ([#631](https://github.com/jpanther/congo/pull/631))
|
||||||
|
- New icons - `coffee` and `x-twitter` ([#669](https://github.com/jpanther/congo/pull/669))
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -755,8 +745,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Advanced customisation using simple Tailwind colour definitions and styles
|
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||||
- Fully documented
|
- Fully documented
|
||||||
|
|
||||||
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.1...HEAD
|
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.0...HEAD
|
||||||
[2.7.1]: https://github.com/jpanther/congo/compare/v2.7.0...v2.7.1
|
|
||||||
[2.7.0]: https://github.com/jpanther/congo/compare/v2.6.1...v2.7.0
|
[2.7.0]: https://github.com/jpanther/congo/compare/v2.6.1...v2.7.0
|
||||||
[2.6.1]: https://github.com/jpanther/congo/compare/v2.6.0...v2.6.1
|
[2.6.1]: https://github.com/jpanther/congo/compare/v2.6.0...v2.6.1
|
||||||
[2.6.0]: https://github.com/jpanther/congo/compare/v2.5.4...v2.6.0
|
[2.6.0]: https://github.com/jpanther/congo/compare/v2.5.4...v2.6.0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.7.1 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.7.0 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.7.1 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.7.0 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
|
@ -133,19 +133,21 @@ function executeQuery(term) {
|
||||||
let resultsHTML = "";
|
let resultsHTML = "";
|
||||||
|
|
||||||
if (results.length > 0) {
|
if (results.length > 0) {
|
||||||
resultsHTML = results.map(function (value, key) {
|
results.forEach(function (value, key) {
|
||||||
return `<li class="mb-2">
|
resultsHTML =
|
||||||
<a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2" href="${value.item.permalink}" tabindex="0">
|
resultsHTML +
|
||||||
<div class="grow">
|
`<li class="mb-2">
|
||||||
<div class="-mb-1 text-lg font-bold">${value.item.title}</div>
|
<a class="flex items-center px-3 py-2 rounded-md appearance-none bg-neutral-100 dark:bg-neutral-700 focus:bg-primary-100 hover:bg-primary-100 dark:hover:bg-primary-900 dark:focus:bg-primary-900 focus:outline-dotted focus:outline-transparent focus:outline-2" href="${value.item.permalink}" tabindex="0">
|
||||||
<div class="text-sm text-neutral-500 dark:text-neutral-400">${value.item.section}${value.item.date == null ? '' : `<span class="px-2 text-primary-500">·</span>${value.item.date}</span>`}</div>
|
<div class="grow">
|
||||||
<div class="text-sm italic">${value.item.summary}</div>
|
<div class="-mb-1 text-lg font-bold">${value.item.title}</div>
|
||||||
</div>
|
<div class="text-sm text-neutral-500 dark:text-neutral-400">${value.item.section}${value.item.date == null ? '' : `<span class="px-2 text-primary-500">·</span>${value.item.date}</span>`}</div>
|
||||||
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">→</div>
|
<div class="text-sm italic">${value.item.summary}</div>
|
||||||
<div class="mr-2 ltr:hidden rtl:block text-neutral-500">←</div>
|
</div>
|
||||||
</a>
|
<div class="ml-2 ltr:block rtl:hidden text-neutral-500">→</div>
|
||||||
</li>`;
|
<div class="mr-2 ltr:hidden rtl:block text-neutral-500">←</div>
|
||||||
}).join("");
|
</a>
|
||||||
|
</li>`;
|
||||||
|
});
|
||||||
hasResults = true;
|
hasResults = true;
|
||||||
} else {
|
} else {
|
||||||
resultsHTML = "";
|
resultsHTML = "";
|
||||||
|
|
|
@ -99,8 +99,9 @@ Then in the root of your site repository, create a `netlify.toml` file:
|
||||||
publish = "public"
|
publish = "public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.119.0"
|
HUGO_VERSION = "0.118.2"
|
||||||
NODE_ENV = "production"
|
NODE_ENV = "production"
|
||||||
|
GO_VERSION = "1.20"
|
||||||
TZ = "UTC" # Set to preferred timezone
|
TZ = "UTC" # Set to preferred timezone
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
{{ $link := .Destination }}
|
<a
|
||||||
{{ $isRemote := strings.HasPrefix $link "http" }}
|
href="{{ .Destination | safeURL }}"
|
||||||
{{- if not $isRemote -}}
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
||||||
{{ $url := urls.Parse .Destination }}
|
{{ if strings.HasPrefix .Destination "http" }}target="_blank" rel="noreferrer noopener"{{ end }}
|
||||||
{{- if $url.Path -}}
|
>
|
||||||
{{ $fragment := "" }}
|
{{- .Text | safeHTML -}}
|
||||||
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
|
</a>
|
||||||
{{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .RelPermalink $fragment }}{{ end }}{{ end -}}
|
|
||||||
{{- end -}}
|
|
||||||
<a href="{{ $link | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
|
|
|
@ -1,7 +1,6 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="theme-color" content="rgb(255,255,255)" />
|
|
||||||
{{/* Title */}}
|
{{/* Title */}}
|
||||||
{{ if .IsHome -}}
|
{{ if .IsHome -}}
|
||||||
<title>{{ .Site.Title | emojify }}</title>
|
<title>{{ .Site.Title | emojify }}</title>
|
||||||
|
@ -98,6 +97,7 @@
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}" />
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}" />
|
||||||
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}" />
|
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<meta name="theme-color" content="rgb(255,255,255)" />
|
||||||
{{/* Site Verification */}}
|
{{/* Site Verification */}}
|
||||||
{{ with .Site.Params.verification.google }}
|
{{ with .Site.Params.verification.google }}
|
||||||
<meta name="google-site-verification" content="{{ . }}" />
|
<meta name="google-site-verification" content="{{ . }}" />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
publish = "exampleSite/public"
|
publish = "exampleSite/public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.119.0"
|
HUGO_VERSION = "0.118.2"
|
||||||
HUGO_THEMESDIR = "../.."
|
HUGO_THEMESDIR = "../.."
|
||||||
HUGO_THEME = "repo"
|
HUGO_THEME = "repo"
|
||||||
TZ = "Australia/Melbourne"
|
TZ = "Australia/Melbourne"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "2.7.1",
|
"version": "2.7.0",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "rimraf assets/lib",
|
"preinstall": "rimraf assets/lib",
|
||||||
|
|
Loading…
Reference in New Issue