Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

除了首页外其他菜单不显示文章,分类和TAG也不显示文章 #50

Closed
jffree opened this issue Jun 13, 2019 · 4 comments
Closed

Comments

@jffree
Copy link

jffree commented Jun 13, 2019

除了首页外其他菜单不显示文章,分类和TAG也不显示文章,请问从哪里可以排查原因?
用的是 hugo 0.55.6 的版本

@flysnoworg
Copy link
Collaborator

参考例子的配置

@jffree jffree closed this as completed Jun 29, 2019
@TinoGuo
Copy link

TinoGuo commented Dec 11, 2019

我也遇到了同样的问题,然后看了下别的分类文件夹下生成的都是rss的xml,请问是怎么解决的?谢谢

@flysnoworg
Copy link
Collaborator

参考下例子。分类下的xml文件不用管。

@TinoGuo
Copy link

TinoGuo commented Dec 11, 2019

@rujews 我是按照例子写的。烦请帮忙看下
同时还有一个warning

found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

languageCode = "en-us"
DefaultContentLanguage = "zh-cn"
DefaultContentLanguageInSubdir = true
title = "**"
theme = "maupassant"
copyright = "Everything is mine"
publishDir = "public"

MetaDataFormat = "yaml"
SectionPagesMenu = "main"
Paginate = 10 # this is set low for demonstrating with dummy content. Set to a higher number
googleAnalytics = "UA-**"
enableRobotsTXT = true

# [sitemap]
#   changefreq = "monthly"
#   priority = 0.5
#   filename = "sitemap.xml"

## 保持分类的原始名字(false会做转小写处理)
preserveTaxonomyNames = true
## 是否禁止URL Path转小写
disablePathToLower = true

hasCJKLanguage = true
summaryLength = 70
 
[author]
  name = "**"

[params]
  ## maupassant配置
  subtitle = "***"
  keywords = "***"
  description = ""
  localSearch = true
  busuanzi = true
  ## 配置结束

[menu]

  [[menu.main]]
    identifier = "books"
    name = "文章"
    url = "/books/"
    weight = 2

  [[menu.main]]
    identifier = "abroad"
    name = "生活"
    url = "/abroad/"
    weight = 3

  [[menu.main]]
    identifier = "about"
    name = "关于"
    url = "/about/"
    weight = 4 

[params.cc]
    name = "知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议"
    link = "https://creativecommons.org/licenses/by-nc-nd/4.0/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants