forked from gitbot/hugo-book
Merge tag 'v11.0.0' into soper-book
This commit is contained in:
commit
4e32047010
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ public/
|
||||
exampleSite/public/
|
||||
.DS_Store
|
||||
.hugo_build.lock
|
||||
resources/
|
||||
|
@ -298,7 +298,7 @@ If you are using `config.yaml` or `config.json`, consult the [configuration mark
|
||||
|
||||
## Versioning
|
||||
|
||||
This theme follows a simple incremental versioning. e.g. `v1`, `v2` and so on. There might be breaking changes between versions.
|
||||
This theme follows a simple incremental versioning. e.g. `v1.0.0`, `v2.0.0` and so on. Releases will happen on breaking changes.
|
||||
|
||||
If you want lower maintenance, use one of the released versions. If you want to live on the bleeding edge of changes, you can use the `master` branch and update your website when needed.
|
||||
|
||||
|
@ -2,6 +2,7 @@ html {
|
||||
font-size: $font-size-base;
|
||||
scroll-behavior: smooth;
|
||||
touch-action: manipulation;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -3,16 +3,16 @@
|
||||
Tabs let you organize content by context, for example installation instructions for each supported platform.
|
||||
|
||||
```tpl
|
||||
{{%/* tabs */%}}
|
||||
{{</* tabs "id" */>}}
|
||||
{{%/* tab "MacOS" */%}} # MacOS Content {{%/* /tab */%}}
|
||||
{{%/* tab "Linux" */%}} # Linux Content {{%/* /tab */%}}
|
||||
{{%/* tab "Windows" */%}} # Windows Content {{%/* /tab */%}}
|
||||
{{%/* /tabs */%}}
|
||||
{{</* /tabs */>}}
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
{{% tabs %}}
|
||||
{{< tabs >}}
|
||||
|
||||
{{% tab "MacOS" %}}
|
||||
# MacOS
|
||||
@ -47,4 +47,4 @@ protulit, sed sed aere valvis inhaesuro Pallas animam: qui _quid_, ignes.
|
||||
Miseratus fonte Ditis conubia.
|
||||
{{% /tab %}}
|
||||
|
||||
{{% /tabs %}}
|
||||
{{< /tabs >}}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"Target":"book.min.6c8b9d2a1fc95075ed7da46ca81060b39add8fff6741ac51259f768929281e2c.css","MediaType":"text/css","Data":{"Integrity":"sha256-bIudKh/JUHXtfaRsqBBgs5rdj/9nQaxRJZ92iSkoHiw="}}
|
14
i18n/he.yaml
Normal file
14
i18n/he.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- id: Search
|
||||
translation: חיפוש
|
||||
|
||||
- id: Edit this page
|
||||
translation: ערוך דף זה
|
||||
|
||||
- id: Last modified by
|
||||
translation: נערך לאחרונה על ידי
|
||||
|
||||
- id: Expand
|
||||
translation: הרחב
|
||||
|
||||
- id: bookSearchConfig
|
||||
translation: '{ cache: true }'
|
14
i18n/oc.yaml
Normal file
14
i18n/oc.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- id: Search
|
||||
translation: Recercar
|
||||
|
||||
- id: Edit this page
|
||||
translation: Modificar aquesta pagina
|
||||
|
||||
- id: Last modified by
|
||||
translation: Darrièra modificacion per
|
||||
|
||||
- id: Expand
|
||||
translation: Desplegar
|
||||
|
||||
- id: bookSearchConfig
|
||||
translation: '{ cache: true }'
|
14
i18n/pl.yaml
Normal file
14
i18n/pl.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- id: Search
|
||||
translation: Szukaj
|
||||
|
||||
- id: Edit this page
|
||||
translation: Edytuj stronę
|
||||
|
||||
- id: Last modified by
|
||||
translation: Ostatnia modyfikacja
|
||||
|
||||
- id: Expand
|
||||
translation: Rozwiń
|
||||
|
||||
- id: bookSearchConfig
|
||||
translation: '{ cache: true }'
|
14
i18n/pt-BR.yaml
Normal file
14
i18n/pt-BR.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
- id: Search
|
||||
translation: Buscar
|
||||
|
||||
- id: Edit this page
|
||||
translation: Editar página
|
||||
|
||||
- id: Last modified by
|
||||
translation: Última modificação por
|
||||
|
||||
- id: Expand
|
||||
translation: Expandir
|
||||
|
||||
- id: bookSearchConfig
|
||||
translation: '{ cache: true }'
|
@ -1,5 +1,5 @@
|
||||
- id: Search
|
||||
translation: Buscar
|
||||
translation: Pesquisar
|
||||
|
||||
- id: Edit this page
|
||||
translation: Editar página
|
||||
|
@ -7,7 +7,8 @@
|
||||
{{- define "portable-link" -}}
|
||||
{{- $destination := .Destination }}
|
||||
{{- $isRemote := or (in .Destination ":") (strings.HasPrefix .Destination "//") }}
|
||||
{{- if not $isRemote }}
|
||||
{{- $isFragment := strings.HasPrefix .Destination "#" }}
|
||||
{{- if and (not $isRemote) (not $isFragment) }}
|
||||
{{- $url := urls.Parse .Destination }}
|
||||
{{- $path := strings.TrimSuffix "/_index.md" $url.Path }}
|
||||
{{- $path = strings.TrimSuffix "/_index" $path }}
|
||||
|
@ -25,7 +25,6 @@
|
||||
<!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website -->
|
||||
{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" {{ template "integrity" $styles }}>
|
||||
|
||||
{{- if default true .Site.Params.BookSearch -}}
|
||||
{{- $searchJSFile := printf "%s.search.js" .Language.Lang }}
|
||||
{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }}
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{ define "main" }}
|
||||
<article class="markdown book-post">
|
||||
<h2>
|
||||
<h1>
|
||||
{{ partial "docs/title.html" . }}
|
||||
</h2>
|
||||
</h1>
|
||||
{{ partial "docs/post-meta" . }}
|
||||
<div class="book-post-content">
|
||||
{{- .Content -}}
|
||||
|
@ -1,3 +1,3 @@
|
||||
<blockquote class="book-hint {{ .Get 0 }}">
|
||||
{{ .InnerDeindent | safeHTML }}
|
||||
{{ .Inner | safeHTML }}
|
||||
</blockquote>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{- $group := printf "tabs-%d" .Parent.Ordinal -}}
|
||||
{{- $group := printf "tabs-%v" (default .Parent.Ordinal (.Parent.Get 0)) -}}
|
||||
{{- $tab := printf "%s-%d" $group .Ordinal }}
|
||||
<input type="radio" class="toggle" name="{{ $group }}" id="{{ $tab }}" {{ if not .Ordinal }}checked="checked"{{ end }} />
|
||||
<label for="{{ $tab }}">
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
{"Target":"book.min.309b7ed028807cdb68d8d61e26d609f48369c098dbf5e4d8c0dcf4cdf49feafc.css","MediaType":"text/css","Data":{"Integrity":"sha256-MJt+0CiAfNto2NYeJtYJ9INpwJjb9eTYwNz0zfSf6vw="}}
|
1109
static/mermaid.min.js
vendored
1109
static/mermaid.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user