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

希望增加归档功能 #127

Open
pluveto opened this issue Jul 16, 2021 · 11 comments
Open

希望增加归档功能 #127

pluveto opened this issue Jul 16, 2021 · 11 comments
Labels
enhancement New feature or request

Comments

@pluveto
Copy link

pluveto commented Jul 16, 2021

如题

@pluveto pluveto added the enhancement New feature or request label Jul 16, 2021
@wangchucheng
Copy link
Owner

wangchucheng commented Jul 16, 2021 via email

@pluveto
Copy link
Author

pluveto commented Jul 18, 2021

可以参考这个的设计:https://adityatelange.github.io/hugo-PaperMod/archives/

主要是便于 Ctrl+F 搜索博文。目前还只能苦等 Google 收录。

@lizheming
Copy link

https://imnerd.org/custom-hugo-theme-eureka.html#%E5%BD%92%E6%A1%A3 可以参考一下我的博客的归档模板自己加一下就行~ https://imnerd.org/daily.html 这是成品哦~

@wangchucheng
Copy link
Owner

@lizheming 非常感谢你提供的参考;-)

@pluveto
Copy link
Author

pluveto commented Aug 29, 2021

https://imnerd.org/custom-hugo-theme-eureka.html#%E5%BD%92%E6%A1%A3 可以参考一下我的博客的归档模板自己加一下就行~ https://imnerd.org/daily.html 这是成品哦~

我也自己做了一个,用在自己的模板里了。
https://www.less-bug.com/archives/
代码见
https://github.com/pluveto/hugo-crux

@pylixm
Copy link

pylixm commented Feb 9, 2022

@lizheming 您好,我从您博客可到搜索的配置改造,搜索框中action直接写的 search.html ,这个url 是怎么配置的呢。我这边一直 404 。 search.html 我放到了 layouts/_default 下 ,希望回复下,感谢。

@lizheming
Copy link

@pylixm 需要创建个页面,下面的内容保存至 content/search.md

---
title: "包含关键词 的文章"
sitemap:
  priority : 0.1
layout: "search"
slug: "search"
---

@pylixm
Copy link

pylixm commented Feb 9, 2022

@pylixm 需要创建个页面,下面的内容保存至 content/search.md

---
title: "包含关键词 的文章"
sitemap:
  priority : 0.1
layout: "search"
slug: "search"
---

nice 搞定! 多谢~

@wenyaoliu
Copy link

不太会弄,还是希望主题自带,适配好些~~

@lennyleadership
Copy link

@lizheming 请教一个跟主题不相关的问题。我没有弄好Comments。想参考一下你是怎样设置的。

@lizheming
Copy link

@lennyleadership 是说评论功能吗?我这边是用的自己开发的 Waline 评论系统 https://waline.js.org 如果有什么问题的话可以去 issue 里反馈一下 https://github.com/walinejs/waline/issues

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

No branches or pull requests

6 participants