Skip to content

Commit

Permalink
Merge pull request #507 from gethinode/develop
Browse files Browse the repository at this point in the history
Fix issues with table and link
  • Loading branch information
markdumay committed Sep 2, 2023
2 parents 75126f2 + 51046d9 commit ede8fe8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 45 deletions.
6 changes: 4 additions & 2 deletions assets/scss/components/_table.scss
@@ -1,11 +1,13 @@
@if $enable-dark-mode {
@include color-mode(dark) {
.table-striped, .table-striped-columns {
--bs-table-striped-bg: var(--bs-tertiary-color);
--bs-table-striped-bg: var(--bs-tertiary-bg);
--bs-table-striped-color: var(--bs-body-color);
}

.table-hover {
--bs-table-hover-bg: var(--bs-tertiary-color);
--bs-table-hover-bg: var(--bs-tertiary-bg);
--bs-table-striped-color: var(--bs-body-color);
}
}
}
5 changes: 1 addition & 4 deletions exampleSite/hugo_stats.json
Expand Up @@ -264,7 +264,6 @@
"mt-3",
"mt-5",
"mt-auto",
"multi-docs-collapse-14",
"multi-docs-collapse-15",
"multi-file-collapse-1",
"mx-auto",
Expand Down Expand Up @@ -423,7 +422,6 @@
"alerte",
"badge",
"barre-de-navigation",
"body-docs-collapse-14",
"body-docs-collapse-15",
"body-file-collapse-1",
"bouton",
Expand All @@ -448,7 +446,6 @@
"fichier",
"fil-dariane",
"file",
"footer-docs-collapse-14",
"footer-docs-collapse-15",
"footer-file-collapse-1",
"formula-katex",
Expand Down Expand Up @@ -495,4 +492,4 @@
"tooltip"
]
}
}
}
25 changes: 2 additions & 23 deletions hugo_stats.json
Expand Up @@ -16,7 +16,6 @@
"link",
"meta",
"nav",
"ol",
"p",
"path",
"script",
Expand All @@ -38,12 +37,9 @@
"bg-primary",
"bottom-0",
"bottom-bar",
"breadcrumb",
"breadcrumb-item",
"btn",
"btn-close",
"btn-primary",
"btn-social",
"col",
"col-12",
"col-lg-2",
Expand Down Expand Up @@ -84,17 +80,12 @@
"fa-circle-half-stroke",
"fa-ellipsis",
"fa-face-frown",
"fa-facebook",
"fa-fw",
"fa-github",
"fa-link",
"fa-linkedin",
"fa-medium",
"fa-moon",
"fa-share-nodes",
"fa-sun",
"fa-whatsapp",
"fa-x-twitter",
"fab",
"fas",
"feature",
Expand All @@ -108,21 +99,16 @@
"fs-3",
"fw-30",
"fw-bold",
"gap-2",
"h-100",
"hstack",
"img-fluid",
"img-wrap",
"invisible",
"is-search",
"justify-content-center",
"lead",
"link-bg-footer",
"link-secondary",
"main-nav-toggler",
"mb-3",
"mb-4",
"mb-5",
"me-auto",
"middle-bar",
"min-vh-100",
Expand Down Expand Up @@ -161,13 +147,11 @@
"px-4",
"px-xxl-0",
"py-2",
"py-3",
"py-5",
"py-md-1",
"rounded",
"row",
"row-cols-1",
"row-cols-2",
"row-cols-sm-3",
"row-cols-sm-4",
"search",
Expand All @@ -176,13 +160,10 @@
"shadow",
"svg-inline--fa",
"switch-mode-collapsed",
"text-body-secondary",
"text-center",
"text-decoration-none",
"text-end",
"text-secondary",
"text-sm-start",
"text-uppercase",
"theme-icon",
"theme-icon-active",
"toast",
Expand All @@ -197,11 +178,9 @@
"ids": [
"-theme",
"-theme-collapsed",
"btn-webshare",
"navbar-0-collapse",
"toast-container",
"toast-copied-code-message",
"toast-message-email-4"
"toast-copied-code-message"
]
}
}
}
4 changes: 1 addition & 3 deletions layouts/_default/list.html
@@ -1,7 +1,5 @@
{{- define "main" -}}
<!-- Ignore empty content, see https://github.com/gohugoio/hugo/issues/11406 -->
{{- $content := "" -}}
{{- if .Content }}{{ $content = partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}{{ end -}}
{{- $content := partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) -}}
{{- partial "assets/section-list.html" (dict
"page" .
"section" .Type
Expand Down
3 changes: 1 addition & 2 deletions layouts/_default/single.html
Expand Up @@ -84,8 +84,7 @@
{{ end -}}
{{ end }}

<!-- Ignore empty content, see https://github.com/gohugoio/hugo/issues/11406 -->
{{- if .Content }}{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}{{ end -}}
{{ partial "utilities/ProcessContent" (dict "page" .Page "raw" .RawContent) }}
{{ end -}}

{{ define "partials/footer.html" -}}
Expand Down
14 changes: 7 additions & 7 deletions layouts/shortcodes/link.html
Expand Up @@ -30,13 +30,13 @@
{{- $anchor := "" -}}

{{ if .IsNamedParams }}
{{ $href = .Get "href" | default "" -}}
{{ $name = .Get "name" | default "" -}}
{{ $url = .Get "url" | default "" -}}
{{ $cue = .Get "cue" | default site.Params.main.externalLinks.cue -}}
{{ $tab = .Get "tab" | default site.Params.main.externalLinks.tab -}}
{{ $case = .Get "case" | default true }}
{{- $class := .Get "class" | default "" -}}
{{- $href = .Get "href" | default "" -}}
{{- $name = .Get "name" | default "" -}}
{{- $url = .Get "url" | default "" -}}
{{- $cue = .Get "cue" | default site.Params.main.externalLinks.cue -}}
{{- $tab = .Get "tab" | default site.Params.main.externalLinks.tab -}}
{{- $case = .Get "case" | default true -}}
{{- $class = .Get "class" | default "" -}}
{{ else }}
{{ $href = .Get 0 }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.19.0-beta3",
"version": "0.19.0",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Expand Up @@ -6,7 +6,7 @@ homepage = "https://gethinode.com"
demosite = "https://demo.gethinode.com"
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "versioned documentation"]
min_version = "0.110.0"
min_version = "0.118.0" # fixes Hugo issue #11406

[author]
name = "Mark Dumay"
Expand Down

0 comments on commit ede8fe8

Please sign in to comment.