Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.md « 01-homepage « content-and-customization « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6cd19513a3b4f45a8e16cbe7360dae5e0ee91aaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
+++
title="Home page"
description = "Control how the home page should be rendered"
weight=10
+++

{{% alert theme="success" %}}By default, this theme use the first section (folder) available in your content folder as a homepage.{{%/alert%}}

## Create a dedicated homepage
Create a `_index.md` in `content` root folder.

```text
	content
	├── _index.md  <-- if this file exists, it is the landing page
	└── section-one/ <-- else this section will be the home page
	    
```

## Landing page appearance
Remove navigation components from your landing page by setting options in its page frontmatter. You will be able to hide header, breadcrum, toc or footer...
* see `hide` options [here]({{%relref "00-adding-content#page-frontmatter"%}})
* see [examples of pages]({{%relref "/examples"%}}) rendered with theses options 

{{%notice success%}}
**Nothing but my content !**
\
set `render="raw"` in your home page frontmatter : only your content will be rendered, without menu, toc, headers, etc..... [example]({{%relref "/examples/page with raw content"%}})
{{%/notice%}}

## Use plain HTML for your homepage
Remember that hugo allows you to write your content with HTML when markdown if not enough. very usefull for a landing page !

Example
```toml
+++
title="Homepage"
render="raw"
+++
<div class="myHome">
	Hello
</div>
```