xiaoheiAh/hugo-theme-pure

404 page not found

udit-001 opened this issue · 9 comments

When I went through the files I saw a 404.html file but it didn't seem to have anything it it, do you have any plans on adding a 404 page to this theme?

currently no plans.but we can implement it like index.html. would you like to add some style? I'm not good at css/html~

yeah, so I took a look at the hexo theme that this theme was inspired by, here's how it's 404 page looks like : https://blog.cofess.com/wha

Seems to me it's just the post page, but with changed headings and content, can this be done?

this is hexo theme 404 page source code. the js link is a charitable project but not work on that page.

---
title: 404 Not Found:该页无法显示
toc: false
comments: false
permalink: /404
---
<script type="text/javascript" src="//www.qq.com/404/search_children.js" charset="utf-8" homePageUrl="<%- config.url %>" homePageName="回到我的主页"></script>

my suggestion is edit 404.html in our project like index.html use hugo block syntax. And do whatever you want~

{{- define "content"}}
css/html you want to add~
{{- end }}

Alright, I'll try it out, can you point me to the template file that is used to generate this page : https://xiaohei.im/hugo-theme-pure/2019/11/replication/

This is what I created

404

What do you think?

it seems look goodyou can send a pr

@xiaoheiAh I just sent a PR #28, please check it out!

already merge and add Chinese translation