{"action":"opened","issue":{"url":"https://api.github.com/repos/theme-next/hexo-theme-next/issues/348","repository_url":"https://api.github.com/repos/theme-next/hexo-theme-next","labels_url":"https://api.github.com/repos/theme-next/hexo-theme-next/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/theme-next/hexo-theme-next/issues/348/comments","events_url":"https://api.github.com/repos/theme-next/hexo-theme-next/issues/348/events","html_url":"https://github.com/theme-next/hexo-theme-next/issues/348","id":339808471,"node_id":"MDU6SXNzdWUzMzk4MDg0NzE=","number":348,"title":"Related popular posts","user":{"login":"zureov","id":31351533,"node_id":"MDQ6VXNlcjMxMzUxNTMz","avatar_url":"https://avatars3.githubusercontent.com/u/31351533?v=4","gravatar_id":"","url":"https://api.github.com/users/zureov","html_url":"https://github.com/zureov","followers_url":"https://api.github.com/users/zureov/followers","following_url":"https://api.github.com/users/zureov/following{/other_user}","gists_url":"https://api.github.com/users/zureov/gists{/gist_id}","starred_url":"https://api.github.com/users/zureov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zureov/subscriptions","organizations_url":"https://api.github.com/users/zureov/orgs","repos_url":"https://api.github.com/users/zureov/repos","events_url":"https://api.github.com/users/zureov/events{/privacy}","received_events_url":"https://api.github.com/users/zureov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T11:50:42Z","updated_at":"2018-07-10T11:50:42Z","closed_at":null,"author_association":"NONE","body":"**I agree and want to create new issue**\r\n\r\n- [X] Yes, I was on [Hexo Docs page](https://hexo.io/docs/), especially on [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html).\r\n- [ ] Yes, I was on [NexT Documentation Site](http://theme-next.org/docs/).\r\n- [X] And yes, I already searched for current [issues](https://github.com/theme-next/hexo-theme-next/issues?utf8=%E2%9C%93&q=is%3Aissue) and this is not help to me.\r\n\r\n***\r\n\r\n### Expected behavior <!-- (预期行为) -->\r\nRelated popular posts.\r\nIt should generate related list of posts at the bottom of the post.\r\n\r\n### Actual behavior <!-- (实际行为) -->\r\nThe related list of posts it generates is right,but ,it generates wrong links.\r\nI think it's because my website is put in a subdirectory.\r\nex. it should be http://localhost:4000/blog/posts/c750391b/, but it actually is http://localhost:4000/posts/c750391b/\r\n\r\n### Steps to reproduce the behavior <!-- (重现步骤) -->\r\n1. N/A\r\n2. N/A\r\n3. N/A\r\n\r\n* Link to demo site with this issue: https://zurecn.gitee.io/blog/posts/3baee0e1/\r\n* Link(s) to source code or any usefull link(s): N/A\r\n\r\n### Node.js and NPM Information\r\n<!-- Paste output from `node -v && npm -v`  (粘贴 `node -v && npm -v` 输出的信息) -->\r\n```\r\n\r\n```\r\n\r\n### Package dependencies Information\r\n<!-- Paste output from `cat package.json`  (粘贴 `cat package.json` 输出的信息) -->\r\n```\r\n{\r\n  \"name\": \"hexo-site\",\r\n  \"version\": \"0.0.0\",\r\n  \"private\": true,\r\n  \"hexo\": {\r\n    \"version\": \"3.7.1\"\r\n  },\r\n  \"dependencies\": {\r\n    \"hexo\": \"^3.2.0\",\r\n    \"hexo-abbrlink\": \"^2.0.5\",\r\n    \"hexo-auto-category\": \"^0.1.6\",\r\n    \"hexo-deployer-git\": \"^0.3.1\",\r\n    \"hexo-generator-archive\": \"^0.1.4\",\r\n    \"hexo-generator-category\": \"^0.1.3\",\r\n    \"hexo-generator-feed\": \"^1.2.2\",\r\n    \"hexo-generator-index\": \"^0.2.0\",\r\n    \"hexo-generator-searchdb\": \"^1.0.8\",\r\n    \"hexo-generator-tag\": \"^0.2.0\",\r\n    \"hexo-related-popular-posts\": \"^3.0.1\",\r\n    \"hexo-renderer-ejs\": \"^0.3.0\",\r\n    \"hexo-renderer-marked\": \"^0.3.0\",\r\n    \"hexo-renderer-stylus\": \"^0.3.1\",\r\n    \"hexo-server\": \"^0.2.0\",\r\n    \"hexo-symbols-count-time\": \"^0.4.4\"\r\n  }\r\n}\r\n```\r\n\r\n### Hexo Information\r\n\r\n#### Hexo version\r\n<!-- Paste output from `hexo -v`  (粘贴 `hexo -v` 输出的信息) -->\r\n```\r\nhexo: 3.7.1\r\nhexo-cli: 1.1.0\r\nos: Windows_NT 10.0.17134 win32 x64\r\nhttp_parser: 2.8.0\r\nnode: 8.11.3\r\nv8: 6.2.414.54\r\nuv: 1.19.1\r\nzlib: 1.2.11\r\nares: 1.10.1-DEV\r\nmodules: 57\r\nnghttp2: 1.32.0\r\nnapi: 3\r\nopenssl: 1.0.2o\r\nicu: 60.1\r\nunicode: 10.0\r\ncldr: 32.0\r\ntz: 2017c\r\n```\r\n\r\n#### Hexo Configuration\r\n<!-- Paste configuration from Hexo `_config.yml`  (从 Hexo `_config.yml` 中粘贴信息) -->\r\n```yml\r\n# URL\r\n## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'\r\nurl: http://zureov.gitee.io/blog/\r\nroot: /blog/\r\npermalink: posts/:abbrlink/ #:year/:month/:day/:title/\r\npermalink_defaults:\r\n```\r\n\r\n### NexT Information\r\n\r\n**NexT Version:**\r\n<!-- Check needed with [x] (把 [ ] 换成 [X] 来选择) -->\r\n\r\n- [X ] Latest Master branch\r\n- [ ] Latest Release version\r\n- [ ] Old version\r\n\r\n\r\n**NexT Scheme:**\r\n<!-- Check needed with [x] (把 [ ] 换成 [X] 来选择) -->\r\n\r\n- [ ] All schemes\r\n- [ ] Muse\r\n- [ ] Mist\r\n- [ ] Pisces\r\n- [X] Gemini\r\n\r\n\r\n#### NexT Configuration:\r\n<!-- Paste ONLY CHANGED CONFIGURATION from NexT `_config.yml` (只粘贴NexT主题配置文件 `_config.yml` 中修改过的部分) -->\r\n```yml\r\n# Related popular posts\r\n# Dependencies: https://github.com/tea3/hexo-related-popular-posts\r\nrelated_posts:\r\n  enable: true #false\r\n  title: # custom header, leave empty to use the default one\r\n  display_in_home: false\r\n  params:\r\n    maxCount: 5\r\n    #PPMixingRate: 0.0\r\n    #isDate: false\r\n    #isImage: false\r\n    #isExcerpt: false\r\n```\r\n\r\n### Other Information <!-- (Like Browser, System, Screenshots) -->\r\n"}}
{"actor":{"display_login":"zureov"}}