mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
Add back embedded crp in site header, perf test
This commit is contained in:
@@ -15,9 +15,10 @@ toc: true
|
||||
|
||||
Templates used for section pages are *lists* and therefore have all the variables and methods available to [list pages][lists].
|
||||
|
||||
{{% note "Section Pages Pull Content from `_index.md`" %}}
|
||||
To effectively leverage section page templates, you should first understand Hugo's [content organization][contentorg] and, specifically, the purpose of `_index.md` for adding content and front matter to section and other list pages.
|
||||
{{% /note %}}
|
||||
## Adding Content to Section Templates
|
||||
|
||||
To effectively leverage section page templates, you should first understand Hugo's [content organization](/content-management/organization/) and, specifically, the purpose of `_index.md` for adding content and front matter to section and other list pages.
|
||||
|
||||
|
||||
## Section Template Lookup Order
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 111 KiB |
@@ -2,7 +2,8 @@
|
||||
<header id="site-header" class="site-header">
|
||||
<div class="hugo-meta" title="Hugo version {{$version}}">
|
||||
<a href="/" id="home-link">
|
||||
<img src="{{ "images/hugo-icons/hugo-logo-wide.svg" | relURL }}" alt="The official wide logo for Hugo">v{{$version}}</span>
|
||||
<!-- <img src="{{ "images/hugo-icons/hugo-logo-wide.svg" | relURL }}" alt="The official wide logo for Hugo"> -->
|
||||
{{ partial "svg-icons/hugo-logo-wide.svg" . }}v{{$version}}</span>
|
||||
</a>
|
||||
<!-- From https://buttons.github.io/. -->
|
||||
<!-- <a class="github-button" href="https://github.com/spf13/hugo" data-icon="octicon-star" data-style="mega" data-count-href="/spf13/hugo/stargazers" data-count-api="/repos/spf13/hugo#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star spf13/hugo on GitHub">Star</a> -->
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 111 KiB |
@@ -48,7 +48,7 @@
|
||||
align-items: center;
|
||||
font-size: .8em;
|
||||
margin-left: -1em;
|
||||
img {
|
||||
img,svg {
|
||||
height: $site-header-height * .7;
|
||||
max-height: $site-header-height * .7;
|
||||
margin-right: .25em;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user