Small adjustments for logo span and css
This commit is contained in:
parent
73e53768c9
commit
ae3c5017c4
10 changed files with 19 additions and 19 deletions
|
@ -128,8 +128,8 @@ disableKinds = ['taxonomy', 'taxonomyTerm']
|
||||||
BookToC = 3
|
BookToC = 3
|
||||||
|
|
||||||
# (Optional, default none) Set the path to a logo for the book. If the logo is
|
# (Optional, default none) Set the path to a logo for the book. If the logo is
|
||||||
# /static/logo.png then the path would be /logo.png
|
# /static/logo.png then the path would be 'logo.png'
|
||||||
BookLogo = '/logo.png'
|
BookLogo = 'logo.png'
|
||||||
|
|
||||||
# (Optional, default none) Set leaf bundle to render as side menu
|
# (Optional, default none) Set leaf bundle to render as side menu
|
||||||
# When not specified file structure and weights will be used
|
# When not specified file structure and weights will be used
|
||||||
|
@ -270,10 +270,10 @@ Render math formulas with [KaTeX](https://katex.org/)
|
||||||
|
|
||||||
```
|
```
|
||||||
{{< katex >}}
|
{{< katex >}}
|
||||||
$$ x = \begin{cases}
|
x = \begin{cases}
|
||||||
a &\text{if } b \\
|
a &\text{if } b \\
|
||||||
c &\text{if } d
|
c &\text{if } d
|
||||||
\end{cases} $$
|
\end{cases}
|
||||||
{{< /katex >}}
|
{{< /katex >}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -95,10 +95,10 @@ ul.pagination {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 40px;
|
height: 1.5em;
|
||||||
max-height: 40px;
|
width: auto;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 0.5rem;
|
margin-right: $padding-8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ pygmentsCodeFences = true
|
||||||
BookToC = 3
|
BookToC = 3
|
||||||
|
|
||||||
# (Optional, default none) Set the path to a logo for the book. If the logo is
|
# (Optional, default none) Set the path to a logo for the book. If the logo is
|
||||||
# /static/logo.png then the path would be /logo.png
|
# /static/logo.png then the path would be logo.png
|
||||||
# BookLogo = '/logo.png'
|
# BookLogo = 'logo.png'
|
||||||
|
|
||||||
# (Optional, default none) Set leaf bundle to render as side menu
|
# (Optional, default none) Set leaf bundle to render as side menu
|
||||||
# When not specified file structure and weights will be used
|
# When not specified file structure and weights will be used
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"search-data.min.8e65fc357463e492a0a63bbf1f8879c1d3e651b9b8ab524fd1782b843af7bf9c.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-jmX8NXRj5JKgpju/H4h5wdPmUbm4q1JP0XgrhDr3v5w="}}
|
{"Target":"search-data.min.d8cb1397d75559602eb3c92473e1c14b41f6d6198ea34823cb48fc4298b46ee8.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-2MsTl9dVWWAus8kkc+HBS0H21hmOo0gjy0j8Qpi0bug="}}
|
|
@ -1,4 +1,4 @@
|
||||||
(function(){const input=document.querySelector("#book-search-input");const results=document.querySelector("#book-search-results");input.addEventListener("focus",init);input.addEventListener("keyup",search);function init(){input.removeEventListener("focus",init);input.required=true;loadScript("/lunr.min.js");loadScript("/search-data.min.38819dbbe5e0b55e3b3be88010ec38428c444528b9f100d7b8aa08233677658b.js",function(){input.readOnly=false;input.required=false;search();});}
|
(function(){const input=document.querySelector("#book-search-input");const results=document.querySelector("#book-search-results");input.addEventListener("focus",init);input.addEventListener("keyup",search);function init(){input.removeEventListener("focus",init);input.required=true;loadScript("/theme/hugo-book/lunr.min.js");loadScript("/theme/hugo-book/search-data.min.d8cb1397d75559602eb3c92473e1c14b41f6d6198ea34823cb48fc4298b46ee8.js",function(){input.readOnly=false;input.required=false;search();});}
|
||||||
function search(){while(results.firstChild){results.removeChild(results.firstChild);}
|
function search(){while(results.firstChild){results.removeChild(results.firstChild);}
|
||||||
if(!input.value){return;}
|
if(!input.value){return;}
|
||||||
const terms=lunr.tokenizer(input.value);const searchHits=window.bookSearch.idx.query(function(query){query.term(terms,{boost:100});query.term(terms,{boost:10,wildcard:lunr.Query.wildcard.LEADING|lunr.Query.wildcard.TRAILING});query.term(terms,{editDistance:2});});searchHits.slice(0,10).forEach(function(hit){const page=window.bookSearch.pages[hit.ref];const li=document.createElement("li"),a=li.appendChild(document.createElement("a"));a.href=page.href;a.textContent=page.title;results.appendChild(li);});}
|
const terms=lunr.tokenizer(input.value);const searchHits=window.bookSearch.idx.query(function(query){query.term(terms,{boost:100});query.term(terms,{boost:10,wildcard:lunr.Query.wildcard.LEADING|lunr.Query.wildcard.TRAILING});query.term(terms,{editDistance:2});});searchHits.slice(0,10).forEach(function(hit){const page=window.bookSearch.pages[hit.ref];const li=document.createElement("li"),a=li.appendChild(document.createElement("a"));a.href=page.href;a.textContent=page.title;results.appendChild(li);});}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"Target":"search.min.cb8117f621a52d2616303b084f897f1d82fac83fc82d1fb628f29d9b705e798a.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-y4EX9iGlLSYWMDsIT4l/HYL6yD/ILR+2KPKdm3BeeYo="}}
|
{"Target":"search.min.da4874ea4f4a57ac6e394d9c0e5d4c8a0aee75879f3d801250bf2fe7d72e1ff9.js","MediaType":"application/javascript","Data":{"Integrity":"sha256-2kh06k9KV6xuOU2cDl1MigrudYefPYASUL8v59cuH/k="}}
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"Target":"book.min.6c7317d2e8552a0ac3ea8fd4ba500c3dfb1cc9c74e7afd73eee6d729751fad30.css","MediaType":"text/css","Data":{"Integrity":"sha256-bHMX0uhVKgrD6o/UulAMPfscycdOev1z7ubXKXUfrTA="}}
|
{"Target":"book.min.89885fa0429ec73067282f26fc0c6d38cfc617a443ec4e835d47b821c52c6e92.css","MediaType":"text/css","Data":{"Integrity":"sha256-iYhfoEKexzBnKC8m/AxtOM/GF6RD7E6DXUe4IcUsbpI="}}
|
|
@ -1,8 +1,8 @@
|
||||||
<h2 class="book-brand">
|
<h2 class="book-brand">
|
||||||
<a href="{{ .Site.BaseURL }}"><span>
|
<a href="{{ .Site.BaseURL }}">
|
||||||
{{- with .Site.Params.BookLogo -}}
|
{{- with .Site.Params.BookLogo -}}
|
||||||
<img src="{{ . | relURL }}" alt="Logo" />
|
<img src="{{ . | relURL }}" alt="Logo" />
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ .Site.Title }}
|
<span>{{ .Site.Title }}</span>
|
||||||
</span></a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
Loading…
Reference in a new issue