mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 14:31:13 +00:00
Web Archive Links
This commit is contained in:
parent
c362493790
commit
b560ee2cf2
8 changed files with 11 additions and 11 deletions
|
@ -32,7 +32,7 @@ There are two types of hidden that I can think of:
|
|||
- You don't want any pages within unlisted to render at all.
|
||||
- You want it to render, but not appear in the section listing
|
||||
|
||||
For the first case, [Filosophy suggests](https://filosophy.org/code/disabling-a-specific-section-in-hugo/) to rename the section so that it starts with a dot. For example, `.unlisted`.
|
||||
For the first case, [Filosophy suggests](https://web.archive.org/web/20210125075337/https://filosophy.org/code/disabling-a-specific-section-in-hugo/) to rename the section so that it starts with a dot. For example, `.unlisted`.
|
||||
|
||||
For the second case, we need to introduce a page variable to help us choose when to display it. Let us call that page variable `hidden`. To set it to true, you need to add it to the frontmatter of `content/unlisted/_index.md`.
|
||||
|
||||
|
@ -50,4 +50,4 @@ Then replace the listing code with the following:
|
|||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue