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

categories 和 tag的设置方法以及相关参数 & 分页设置 #3

Open
user-xixiboliya opened this issue Jan 10, 2025 · 1 comment

Comments

@user-xixiboliya
Copy link

大佬好,这里有两个疑问,请教:

第一个

image
猜想category的设置是在每一篇post的开头设置的,是这样的吗,例如:

---
title: Linux/ubuntu VPN教程
date: 2024-11-14
description: >
draft: false
category:   //是这样的吗
resources:
  - src: "**.{png,jpg}"
    title: "Image #:counter"
    params:
      byline: ""
---

还有就是对category和tag设置之后会触发的一些workflow不太清楚,比如博客哪里会出现categories概览这样的。

params.yml中的分页参数

image
七篇博文都加载到了第一页,请问大佬分页的参数是?
十分感谢!

@D-Sketon
Copy link
Owner

---
tags: 
  - markdown
  - test
categories:
  - test
---

这样写
写了之后archives页面会出现胶囊可以跳转到对应的category/tag归档页面

现在分页使用的是hugo默认的配置,一页10个文章

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

2 participants