gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.45k stars 7.5k forks source link

Tutorial: Creating a new theme article creates RSS feed #2898

Closed ghost closed 7 years ago

ghost commented 7 years ago

When followings the tutorial at http://gohugo.io/tutorials/creating-a-new-theme/ an RSS feed is created when two content pages should be created instead.

e.g.

hugo --verbose new article/First.md
hugo --verbose new article/Second.md

produces

INFO 2017/01/05 22:36:22 Using config file: /home/cschoede/workspace/go/src/github.com/cschoede/msc/config.toml
INFO 2017/01/05 22:36:22 attempting to create  article/First.md of article
INFO 2017/01/05 22:36:22 curpath: /home/cschoede/workspace/go/src/github.com/cschoede/msc/themes/zafta/archetypes/default
.md
INFO 2017/01/05 22:36:22 creating /home/cschoede/workspace/go/src/github.com/cschoede/msc/content/article/First.md
/home/cschoede/workspace/go/src/github.com/cschoede/msc/content/article/First.md created

then when building the site with the command hugo --verbose the following output is created

INFO 2017/01/05 22:38:37 Using config file: /home/cschoede/workspace/go/src/github.com/cschoede/msc/config.toml
INFO 2017/01/05 22:38:37 using a UnionFS for static directory comprised of:
INFO 2017/01/05 22:38:37 Base: /home/cschoede/workspace/go/src/github.com/cschoede/msc/themes/zafta/static
INFO 2017/01/05 22:38:37 Overlay: /home/cschoede/workspace/go/src/github.com/cschoede/msc/static/
INFO 2017/01/05 22:38:37 syncing static files to /home/cschoede/workspace/go/src/github.com/cschoede/msc/public/
Started building sites ...
WARN 2017/01/05 22:38:37 No translation bundle found for default language "en"
INFO 2017/01/05 22:38:37 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
WARN 2017/01/05 22:38:37 Translation func for language en not found, use default.
WARN 2017/01/05 22:38:37 Translation func for language en not found, use default.
WARN 2017/01/05 22:38:37 article/First.html is rendered empty
WARN 2017/01/05 22:38:37 article is rendered empty
WARN 2017/01/05 22:38:37 404.html is rendered empty
Built site for language en:
0 draft content
0 future content
0 expired content
1 regular pages created
2 other pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
total in 19 ms

however only `public/article/index.html is actually created

<?xml version="2.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Articles on My New Hugo Site</title>
    <link>http://example.org/article/index.xml</link>
    <description>Recent content in Articles on My New Hugo Site</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 05 Jan 2017 22:36:22 -0600</lastBuildDate>
    <atom:link href="http://example.org/article/index.xml" rel="self" type="application/rss+xml" />

    <item>
      <title>First</title>
      <link>http://example.org/article/First/</link>
      <pubDate>Thu, 05 Jan 2017 22:36:22 -0600</pubDate>

      <guid>http://example.org/article/First/</guid>
      <description></description>
    </item>

  </channel>
</rss>
ghost commented 7 years ago

hugo build information Hugo Static Site Generator v0.19-DEV windows/amd64 BuildDate: 2017-01-06T12:18:53-06:00

digitalcraftsman commented 7 years ago

@rdwatters the new version of the docs doesn't seem to contain this kind of tutorials anymore. Should this issue then be closed?

rdwatters commented 7 years ago

I think so @digitalcraftsman since that section of the new docs is continually being iterated upon. Thanks!

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.