当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
7 Star 1 Fork 13

openEuler / blog
关闭

 / 详情

The character "-" doesn't work well on the blog

已完成
缺陷 成员
创建于  
2020-03-06 20:11

Step 1, visit https://gitee.com/openeuler/website

Step 2, click the month on archives in the bottom right, nothing appears.

Step 3, click the any tag with character "-" in the Tags, nothing appears.

There is a bug to parse "-". Please help to fix it.

评论 (2)

Fred_Li 创建了缺陷
Fred_Li 关联仓库设置为openEuler/blog
展开全部操作日志

Hey @Fred_Li, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developpers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/command.md to find the details.

Fred_Li 添加了
 
help-wanted
标签
Fred_Li 添加了
 
kind/bug
标签

From @TommyLike
因为url路径中的空格被转成了dash,所以过滤逻辑失效l,可以在list模板中修改相应的逻辑,类似于

原来内容(见链接1): {{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq
$key $tag  }}{{ range $value.Pages }}
修改为: {{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq $key
($tag | urlize) }}{{ range $value.Pages }}

archieve是一样的问题

参考链接:

  1. https://gohugo.io/functions/urlize/
  2. https://gitee.com/openeuler/blog/blob/master/themes/hugo-blog-jeffprod/layouts/tags/list.html#L9
Fred_Li 关联了任务(普通)归档博客为空
Fred_Li 通过openeuler/blog Pull Request !22任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936 5250947 zerodefect 1578983253
1
https://gitee.com/openeuler/blog.git
git@gitee.com:openeuler/blog.git
openeuler
blog
blog

搜索帮助