mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-18 07:23:09 +00:00
@@ -302,6 +302,16 @@ As an example, the following shortcodes render links in different formats.
|
|||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
<!-- markdownlint-enable MD037 -->
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
|
## Mark
|
||||||
|
|
||||||
|
Use the `mark` shortcode to highlight text. The inner content is used as input.
|
||||||
|
|
||||||
|
<!-- markdownlint-disable MD037 -->
|
||||||
|
{{< example lang="hugo" >}}
|
||||||
|
Use the mark shortcode to {{</* mark >}}highlight{{< /mark */>}} specific text.
|
||||||
|
{{< /example >}}
|
||||||
|
<!-- markdownlint-enable MD037 -->
|
||||||
|
|
||||||
## Nav
|
## Nav
|
||||||
|
|
||||||
As an example, the following shortcode displays a tab group with vertically aligned pills.
|
As an example, the following shortcode displays a tab group with vertically aligned pills.
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
"input",
|
"input",
|
||||||
"li",
|
"li",
|
||||||
"link",
|
"link",
|
||||||
|
"mark",
|
||||||
"meta",
|
"meta",
|
||||||
"nav",
|
"nav",
|
||||||
"nil",
|
"nil",
|
||||||
@@ -34,6 +35,8 @@
|
|||||||
"small",
|
"small",
|
||||||
"span",
|
"span",
|
||||||
"strong",
|
"strong",
|
||||||
|
"sub",
|
||||||
|
"sup",
|
||||||
"svg",
|
"svg",
|
||||||
"time",
|
"time",
|
||||||
"title",
|
"title",
|
||||||
@@ -439,6 +442,7 @@
|
|||||||
"leaflet-map-0",
|
"leaflet-map-0",
|
||||||
"link",
|
"link",
|
||||||
"map",
|
"map",
|
||||||
|
"mark",
|
||||||
"nav",
|
"nav",
|
||||||
"nav-0",
|
"nav-0",
|
||||||
"nav-0-0",
|
"nav-0-0",
|
||||||
@@ -452,6 +456,8 @@
|
|||||||
"navbar-sample-collapse",
|
"navbar-sample-collapse",
|
||||||
"release",
|
"release",
|
||||||
"spinner",
|
"spinner",
|
||||||
|
"sub",
|
||||||
|
"sup",
|
||||||
"timeline",
|
"timeline",
|
||||||
"toast",
|
"toast",
|
||||||
"toast-container",
|
"toast-container",
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
"link",
|
"link",
|
||||||
"meta",
|
"meta",
|
||||||
"nav",
|
"nav",
|
||||||
|
"ol",
|
||||||
"p",
|
"p",
|
||||||
"path",
|
"path",
|
||||||
"script",
|
"script",
|
||||||
@@ -37,9 +38,12 @@
|
|||||||
"bg-primary",
|
"bg-primary",
|
||||||
"bottom-0",
|
"bottom-0",
|
||||||
"bottom-bar",
|
"bottom-bar",
|
||||||
|
"breadcrumb",
|
||||||
|
"breadcrumb-item",
|
||||||
"btn",
|
"btn",
|
||||||
"btn-close",
|
"btn-close",
|
||||||
"btn-primary",
|
"btn-primary",
|
||||||
|
"btn-social",
|
||||||
"col",
|
"col",
|
||||||
"col-12",
|
"col-12",
|
||||||
"col-lg-2",
|
"col-lg-2",
|
||||||
@@ -80,12 +84,17 @@
|
|||||||
"fa-circle-half-stroke",
|
"fa-circle-half-stroke",
|
||||||
"fa-ellipsis",
|
"fa-ellipsis",
|
||||||
"fa-face-frown",
|
"fa-face-frown",
|
||||||
|
"fa-facebook",
|
||||||
"fa-fw",
|
"fa-fw",
|
||||||
"fa-github",
|
"fa-github",
|
||||||
|
"fa-link",
|
||||||
"fa-linkedin",
|
"fa-linkedin",
|
||||||
"fa-medium",
|
"fa-medium",
|
||||||
"fa-moon",
|
"fa-moon",
|
||||||
|
"fa-share-nodes",
|
||||||
"fa-sun",
|
"fa-sun",
|
||||||
|
"fa-whatsapp",
|
||||||
|
"fa-x-twitter",
|
||||||
"fab",
|
"fab",
|
||||||
"fas",
|
"fas",
|
||||||
"feature",
|
"feature",
|
||||||
@@ -99,16 +108,21 @@
|
|||||||
"fs-3",
|
"fs-3",
|
||||||
"fw-30",
|
"fw-30",
|
||||||
"fw-bold",
|
"fw-bold",
|
||||||
|
"gap-2",
|
||||||
"h-100",
|
"h-100",
|
||||||
|
"hstack",
|
||||||
"img-fluid",
|
"img-fluid",
|
||||||
"img-wrap",
|
"img-wrap",
|
||||||
"invisible",
|
"invisible",
|
||||||
"is-search",
|
"is-search",
|
||||||
"justify-content-center",
|
"justify-content-center",
|
||||||
|
"lead",
|
||||||
"link-bg-footer",
|
"link-bg-footer",
|
||||||
"link-secondary",
|
"link-secondary",
|
||||||
"main-nav-toggler",
|
"main-nav-toggler",
|
||||||
|
"mb-3",
|
||||||
"mb-4",
|
"mb-4",
|
||||||
|
"mb-5",
|
||||||
"me-auto",
|
"me-auto",
|
||||||
"middle-bar",
|
"middle-bar",
|
||||||
"min-vh-100",
|
"min-vh-100",
|
||||||
@@ -147,11 +161,13 @@
|
|||||||
"px-4",
|
"px-4",
|
||||||
"px-xxl-0",
|
"px-xxl-0",
|
||||||
"py-2",
|
"py-2",
|
||||||
|
"py-3",
|
||||||
"py-5",
|
"py-5",
|
||||||
"py-md-1",
|
"py-md-1",
|
||||||
"rounded",
|
"rounded",
|
||||||
"row",
|
"row",
|
||||||
"row-cols-1",
|
"row-cols-1",
|
||||||
|
"row-cols-2",
|
||||||
"row-cols-sm-3",
|
"row-cols-sm-3",
|
||||||
"row-cols-sm-4",
|
"row-cols-sm-4",
|
||||||
"search",
|
"search",
|
||||||
@@ -160,10 +176,13 @@
|
|||||||
"shadow",
|
"shadow",
|
||||||
"svg-inline--fa",
|
"svg-inline--fa",
|
||||||
"switch-mode-collapsed",
|
"switch-mode-collapsed",
|
||||||
|
"text-body-secondary",
|
||||||
"text-center",
|
"text-center",
|
||||||
"text-decoration-none",
|
"text-decoration-none",
|
||||||
|
"text-end",
|
||||||
"text-secondary",
|
"text-secondary",
|
||||||
"text-sm-start",
|
"text-sm-start",
|
||||||
|
"text-uppercase",
|
||||||
"theme-icon",
|
"theme-icon",
|
||||||
"theme-icon-active",
|
"theme-icon-active",
|
||||||
"toast",
|
"toast",
|
||||||
@@ -178,9 +197,11 @@
|
|||||||
"ids": [
|
"ids": [
|
||||||
"-theme",
|
"-theme",
|
||||||
"-theme-collapsed",
|
"-theme-collapsed",
|
||||||
|
"btn-webshare",
|
||||||
"navbar-0-collapse",
|
"navbar-0-collapse",
|
||||||
"toast-container",
|
"toast-container",
|
||||||
"toast-copied-code-message"
|
"toast-copied-code-message",
|
||||||
|
"toast-message-email-4"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -15,6 +15,8 @@
|
|||||||
You can omit the file extension. The file should reside in the "data" folder. The data supports
|
You can omit the file extension. The file should reside in the "data" folder. The data supports
|
||||||
language extensions. For example, "abbr.en.yaml" refers to the English translation of the
|
language extensions. For example, "abbr.en.yaml" refers to the English translation of the
|
||||||
abbrevation data. The filename "abbr.yaml" is used when no suitable translation is found.
|
abbrevation data. The filename "abbr.yaml" is used when no suitable translation is found.
|
||||||
|
"class" Optional class attribute of the abbr element. For example, specify "initialism" for a slightly
|
||||||
|
smaller font size.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{{ $error := false }}
|
{{ $error := false }}
|
||||||
@@ -33,6 +35,8 @@
|
|||||||
{{ $error = true }}
|
{{ $error = true }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- $class := .Get "class" -}}
|
||||||
|
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
{{/* Try language-specific file first */}}
|
{{/* Try language-specific file first */}}
|
||||||
{{ $path := path.Join (path.Dir $data) (printf "%s.%s" (path.BaseName $data) .Page.Language.Lang) (path.Ext $data) }}
|
{{ $path := path.Join (path.Dir $data) (printf "%s.%s" (path.BaseName $data) .Page.Language.Lang) (path.Ext $data) }}
|
||||||
@@ -59,6 +63,6 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if not $error }}
|
{{ if not $error }}
|
||||||
<abbr title="{{ $title }}">{{ $key }}</abbr>
|
<abbr {{ with $class }}class="{{ . }}"{{ end }} title="{{ $title }}">{{ $key }}</abbr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.19.0-alpha3",
|
"version": "0.19.0-beta1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.19.0-alpha3",
|
"version": "0.19.0-beta1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^5.0.0",
|
"@fullhuman/postcss-purgecss": "^5.0.0",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.19.0-alpha3",
|
"version": "0.19.0-beta1",
|
||||||
"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",
|
||||||
|
Reference in New Issue
Block a user