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: 296d49847d7b6b8b78fef47fdfa37326e8566246 (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
---
description: Control how the home page should be rendered
title: Home page
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 `type="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"
type="raw"
+++
<div class="myHome">
	Hello
</div>
```