fix: sonic url in template and default post

pull/220/head
jakezhu9 2 years ago
parent fcdc748227
commit 320fd857a7
No known key found for this signature in database
GPG Key ID: 03F747222842F1D9

@ -31,7 +31,7 @@
<link rel="self" type="application/atom+xml" href="{{.atom_url}}"/> <link rel="self" type="application/atom+xml" href="{{.atom_url}}"/>
{{end}} {{end}}
<rights>Copyright © {{.now.Format "2006"}}, {{.blog_title}}</rights> <rights>Copyright © {{.now.Format "2006"}}, {{.blog_title}}</rights>
<generator uri="https://go-sonic.org/" version="{{.version}}">Sonic</generator> <generator uri="https://github.com/go-sonic/sonic" version="{{.version}}">Sonic</generator>
{{if .posts }} {{if .posts }}
{{range $post :=.posts}} {{range $post :=.posts}}
<entry> <entry>

@ -184,7 +184,7 @@ func (i installServiceImpl) createDefaultPost(ctx context.Context, category *ent
> >
` `
formatContent := `<h2 id="hello-sonic" tabindex="-1">Hello Sonic</h2> formatContent := `<h2 id="hello-sonic" tabindex="-1">Hello Sonic</h2>
<p>使 <a href="https://go-sonic.org" target="_blank">Sonic</a> 使</p> <p>使 <a href="https://github.com/go-sonic/sonic" target="_blank">Sonic</a> 使</p>
<h2 id="%E7%9B%B8%E5%85%B3%E9%93%BE%E6%8E%A5" tabindex="-1"></h2> <h2 id="%E7%9B%B8%E5%85%B3%E9%93%BE%E6%8E%A5" tabindex="-1"></h2>
<ul> <ul>
<li><a href="https://github.com/go-sonic" target="_blank">https://github.com/go-sonic</a></li> <li><a href="https://github.com/go-sonic" target="_blank">https://github.com/go-sonic</a></li>

Loading…
Cancel
Save