mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-10 19:43:11 +00:00
Compare commits
10 Commits
v0.10.0-al
...
v0.10.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9961d8e364 | ||
![]() |
7b1f81cd9a | ||
![]() |
1dd91da4f5 | ||
![]() |
624d89118d | ||
![]() |
ddab72c463 | ||
![]() |
c95ccd22eb | ||
![]() |
ced7196084 | ||
![]() |
9c726191de | ||
![]() |
93a6fab67f | ||
![]() |
18d4548b8d |
@@ -3,6 +3,12 @@
|
|||||||
top: $navbar-offset;
|
top: $navbar-offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-overflow {
|
||||||
|
top: $navbar-offset;
|
||||||
|
max-height: 90vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar-item {
|
.sidebar-item {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
logo = "/img/logo_icon.svg"
|
logo = "/img/logo_icon.svg"
|
||||||
color = "body"
|
color = "body"
|
||||||
fixed = true
|
fixed = true
|
||||||
offset = "4em"
|
offset = "5em"
|
||||||
search = true
|
search = true
|
||||||
breadcrumb = false
|
breadcrumb = false
|
||||||
toc = true
|
toc = true
|
||||||
|
@@ -73,7 +73,7 @@ As an example, the following shortcode displays a tooltip for a dark button with
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* button color="secondary" tooltip="Click on the inbox to view your unread messages" href="#" badge="99+" */>}}
|
{{</* button color="secondary" tooltip="Click on the inbox to view your unread messages" href="#!" badge="99+" */>}}
|
||||||
Inbox
|
Inbox
|
||||||
{{</* /button */>}}
|
{{</* /button */>}}
|
||||||
{{< /example>}}
|
{{< /example>}}
|
||||||
@@ -86,9 +86,9 @@ As an example, the following shortcode displays a group of three buttons.
|
|||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* button-group aria-label="Basic example" */>}}
|
{{</* button-group aria-label="Basic example" */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Left{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Left{{</* /button */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Middle{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Middle{{</* /button */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Right{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Right{{</* /button */>}}
|
||||||
{{</* /button-group */>}}
|
{{</* /button-group */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
@@ -236,7 +236,7 @@ As an example, the following shortcode displays a tooltip for a colored hyperlin
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* tooltip color="primary" title="Tooltip" href="#" */>}}
|
{{</* tooltip color="primary" title="Tooltip" href="#!" */>}}
|
||||||
Tooltip demonstration
|
Tooltip demonstration
|
||||||
{{</* /tooltip */>}}
|
{{</* /tooltip */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
|
@@ -73,7 +73,7 @@ De volgende shortcode toont een knop met een label en een aanwijzing.
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* button color="secondary" tooltip="Toon je ongelezen berichten" href="#" badge="99+" */>}}
|
{{</* button color="secondary" tooltip="Toon je ongelezen berichten" href="#!" badge="99+" */>}}
|
||||||
Inbox
|
Inbox
|
||||||
{{</* /button */>}}
|
{{</* /button */>}}
|
||||||
{{< /example>}}
|
{{< /example>}}
|
||||||
@@ -86,9 +86,9 @@ De volgende shortcode toont een groep van drie knoppen.
|
|||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* button-group aria-label="Basic example" */>}}
|
{{</* button-group aria-label="Basic example" */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Links{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Links{{</* /button */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Midden{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Midden{{</* /button */>}}
|
||||||
{{</* button color="primary" href="#" */>}}Rechts{{</* /button */>}}
|
{{</* button color="primary" href="#!" */>}}Rechts{{</* /button */>}}
|
||||||
{{</* /button-group */>}}
|
{{</* /button-group */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
@@ -236,7 +236,7 @@ De volgende shortcode toont een uitleg voor een gekleurde link.
|
|||||||
|
|
||||||
<!-- markdownlint-disable MD037 -->
|
<!-- markdownlint-disable MD037 -->
|
||||||
{{< example lang="hugo" >}}
|
{{< example lang="hugo" >}}
|
||||||
{{</* tooltip color="primary" title="Tooltip" href="#" */>}}
|
{{</* tooltip color="primary" title="Tooltip" href="#!" */>}}
|
||||||
Tooltip demonstration
|
Tooltip demonstration
|
||||||
{{</* /tooltip */>}}
|
{{</* /tooltip */>}}
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
|
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row row-cols-md-2 row-cols-lg-3">
|
<div class="row row-cols-md-2 row-cols-lg-3">
|
||||||
<div class="col col-md-3 col-lg-2 d-none mt-5 d-md-block">
|
<div class="col col-md-3 col-lg-2 d-none pt-5 d-md-block sidebar-overflow sticky-top">
|
||||||
{{ partial "assets/sidebar" (dict "page" . "menu" $menu) }}
|
{{ partial "assets/sidebar" (dict "page" . "menu" $menu) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-9 col-lg-8 mb-5 p-4">
|
<div class="col col-md-9 col-lg-8 mb-5 p-4">
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
{{ partial "partials/body.html" . }}
|
{{ partial "partials/body.html" . }}
|
||||||
{{ partial "partials/footer.html" . }}
|
{{ partial "partials/footer.html" . }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-lg-2 d-none d-lg-block mt-5">
|
<div class="col col-lg-2 d-none d-lg-block pt-5">
|
||||||
{{- if and .Site.Params.navigation.toc .Params.includeToc | default true -}}
|
{{- if and .Site.Params.navigation.toc .Params.includeToc | default true -}}
|
||||||
{{ partial "assets/toc.html" . -}}
|
{{ partial "assets/toc.html" . -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@@ -159,7 +159,7 @@
|
|||||||
{{- if $enableLanguage -}}
|
{{- if $enableLanguage -}}
|
||||||
{{- $currentLang := $page.Language.Lang -}}
|
{{- $currentLang := $page.Language.Lang -}}
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
<a class="nav-link dropdown-toggle" href="#!" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
{{- partial "assets/icon.html" (dict "icon" "fas globe") }} {{ T "languageSwitcherLabel" }}
|
{{- partial "assets/icon.html" (dict "icon" "fas globe") }} {{ T "languageSwitcherLabel" }}
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-end ">
|
<ul class="dropdown-menu dropdown-menu-end ">
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
<!-- Insert color mode switcher -->
|
<!-- Insert color mode switcher -->
|
||||||
{{- if $enableDarkMode -}}
|
{{- if $enableDarkMode -}}
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false" id="navbar-color-theme">
|
<a class="nav-link dropdown-toggle" href="#!" role="button" data-bs-toggle="dropdown" aria-expanded="false" id="navbar-color-theme">
|
||||||
{{- partial "assets/icon.html" (dict "icon" "fas sun theme-icon-active") }}
|
{{- partial "assets/icon.html" (dict "icon" "fas sun theme-icon-active") }}
|
||||||
<span class="d-md-none"></span>
|
<span class="d-md-none"></span>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
{{- $data := .menu -}}
|
{{- $data := .menu -}}
|
||||||
|
|
||||||
{{ if $data }}
|
{{ if $data }}
|
||||||
<nav class="sidebar flex-shrink-0 ps-1 pt-3 sticky-top" aria-label="{{ (strings.FirstUpper $section) }} navigation">
|
<nav class="sidebar flex-shrink-0 ps-1 pt-3" aria-label="{{ (strings.FirstUpper $section) }} navigation">
|
||||||
{{- $url := split $page.Permalink "/" -}}
|
{{- $url := split $page.Permalink "/" -}}
|
||||||
{{- $page_slug := index $url (sub (len $url) 2) -}}
|
{{- $page_slug := index $url (sub (len $url) 2) -}}
|
||||||
{{- $sectionBreak := false }}
|
{{- $sectionBreak := false }}
|
||||||
|
@@ -19,8 +19,9 @@
|
|||||||
{{- if $src -}}
|
{{- if $src -}}
|
||||||
<div class="carousel-item {{ if eq .Ordinal 0 }}active{{ end }}">
|
<div class="carousel-item {{ if eq .Ordinal 0 }}active{{ end }}">
|
||||||
{{ partial "image.html" (dict "url" $src "ratio" $ratio "innerClass" "d-block w-100") }}
|
{{ partial "image.html" (dict "url" $src "ratio" $ratio "innerClass" "d-block w-100") }}
|
||||||
|
<div class="carousel-caption gradient"></div>
|
||||||
{{ with $caption }}
|
{{ with $caption }}
|
||||||
<div class="carousel-caption d-none d-md-block gradient">
|
<div class="carousel-caption d-none d-md-block">
|
||||||
<div class="d-flex justify-content-center align-items-end h-100 w-100 p-4">{{ . }}</div>
|
<div class="d-flex justify-content-center align-items-end h-100 w-100 p-4">{{ . }}</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
2236
package-lock.json
generated
2236
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.10.0-alpha5",
|
"version": "0.10.0",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
@@ -17,11 +17,11 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prestart": "npm run clean",
|
"prestart": "npm run clean",
|
||||||
"start": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender",
|
"start": "hugo server --bind=0.0.0.0 --disableFastRender",
|
||||||
"start:prod": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender -e production",
|
"start:prod": "hugo server --bind=0.0.0.0 --disableFastRender -e production",
|
||||||
"prebuild": "npm run clean",
|
"prebuild": "npm run clean",
|
||||||
"build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify",
|
"build": "hugo --gc --minify",
|
||||||
"build:debug": "exec-bin node_modules/.bin/hugo/hugo -e debug --debug",
|
"build:debug": "hugo -e debug --debug",
|
||||||
"build:preview": "npm run build -D -F",
|
"build:preview": "npm run build -D -F",
|
||||||
"clean": "rimraf public resources",
|
"clean": "rimraf public resources",
|
||||||
"clean:install": "rimraf package-lock.json node_modules",
|
"clean:install": "rimraf package-lock.json node_modules",
|
||||||
@@ -31,14 +31,13 @@
|
|||||||
"lint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\"",
|
"lint:markdown": "markdownlint-cli2 \"*.md\" \"content/**/*.md\"",
|
||||||
"lint:markdown-fix": "markdownlint-cli2-fix \"*.md\" \"content/**/*.md\"",
|
"lint:markdown-fix": "markdownlint-cli2-fix \"*.md\" \"content/**/*.md\"",
|
||||||
"test": "npm run -s lint",
|
"test": "npm run -s lint",
|
||||||
"env": "exec-bin node_modules/.bin/hugo/hugo env",
|
"env": "hugo env",
|
||||||
"precheck": "npm version",
|
"precheck": "npm version",
|
||||||
"check": "exec-bin node_modules/.bin/hugo/hugo version",
|
"check": "hugo version",
|
||||||
"copy:fonts": "shx cp ./node_modules/@fortawesome/fontawesome-free/webfonts/* ./static/fonts/",
|
"copy:fonts": "shx cp ./node_modules/@fortawesome/fontawesome-free/webfonts/* ./static/fonts/",
|
||||||
"create:syntax-light": "exec-bin node_modules/.bin/hugo/hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
|
"create:syntax-light": "hugo gen chromastyles --style=github > ./assets/scss/components/_syntax-light.scss",
|
||||||
"create:syntax-dark": "exec-bin node_modules/.bin/hugo/hugo gen chromastyles --style=github-dark > ./assets/scss/components/_syntax-dark.scss",
|
"create:syntax-dark": "hugo gen chromastyles --style=github-dark > ./assets/scss/components/_syntax-dark.scss",
|
||||||
"create:syntax": "npm run -s create:syntax-light & npm run -s create:syntax-dark",
|
"create:syntax": "npm run -s create:syntax-light & npm run -s create:syntax-dark",
|
||||||
"postinstall": "hugo-installer --version otherDependencies.hugo --extended --destination node_modules/.bin/hugo",
|
|
||||||
"upgrade": "npx npm-check-updates -u"
|
"upgrade": "npx npm-check-updates -u"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -55,7 +54,7 @@
|
|||||||
"@fortawesome/fontawesome-free": "^6.4.0",
|
"@fortawesome/fontawesome-free": "^6.4.0",
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"bootstrap": "^5.3.0-alpha2",
|
"bootstrap": "^5.3.0-alpha3",
|
||||||
"cssnano": "^6.0.0",
|
"cssnano": "^6.0.0",
|
||||||
"cssnano-preset-advanced": "^6.0.0",
|
"cssnano-preset-advanced": "^6.0.0",
|
||||||
"eslint": "^8.37.0",
|
"eslint": "^8.37.0",
|
||||||
@@ -63,9 +62,8 @@
|
|||||||
"eslint-plugin-import": "^2.27.5",
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-n": "^15.7.0",
|
"eslint-plugin-n": "^15.7.0",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"exec-bin": "^1.0.0",
|
|
||||||
"flexsearch": "^0.7.31",
|
"flexsearch": "^0.7.31",
|
||||||
"hugo-installer": "^4.0.1",
|
"hugo-bin": "^0.101.5",
|
||||||
"markdownlint-cli2": "^0.6.0",
|
"markdownlint-cli2": "^0.6.0",
|
||||||
"postcss-cli": "^10.1.0",
|
"postcss-cli": "^10.1.0",
|
||||||
"purgecss-whitelister": "^2.4.0",
|
"purgecss-whitelister": "^2.4.0",
|
||||||
@@ -74,7 +72,7 @@
|
|||||||
"stylelint": "^15.4.0",
|
"stylelint": "^15.4.0",
|
||||||
"stylelint-config-standard-scss": "^7.0.1"
|
"stylelint-config-standard-scss": "^7.0.1"
|
||||||
},
|
},
|
||||||
"otherDependencies": {
|
"hugo-bin": {
|
||||||
"hugo": "0.111.3"
|
"buildTags": "extended"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user