Skip to content

Improve readability of embedded templates #10900

@ZhangChengLin

Description

@ZhangChengLin

<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description>
</item>

Whether the code can increase the readability, this will not affect the later compression, it should be updated and maintained.

The official documentation feels outdated, so you can only look at the source code. Sometimes the source code is not readable, but Hugo is really easy to use. When can you consider some basic issues.

It's just a personal feeling, if something is wrong, please forgive me, I hope Hugo will get better and better.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions