Link to atom and rss feeds in head
This commit is contained in:
1 parent
c984f2ea7f
commit
81f6998b4e
3 files changed
+6
No files matched your search
@@ -13,6 +13,8 @@ pub async fn handle(Extension(posts): Extension<ConcurrentPostsStore>) -> Html {
|
|||||||
.with_crawler_permissive()
|
.with_crawler_permissive()
|
||||||
.with_head(html! {
|
.with_head(html! {
|
||||||
link href="/static/styles/main.css" rel="stylesheet";
|
link href="/static/styles/main.css" rel="stylesheet";
|
||||||
|
link rel="alternate" type="application/atom+xml" href="/atom.xml";
|
||||||
|
link rel="alternate" type="application/rss+xml" href="/rss.xml";
|
||||||
})
|
})
|
||||||
.with_body(template::main_page(html! {
|
.with_body(template::main_page(html! {
|
||||||
section .content_section {
|
section .content_section {
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ pub async fn handle(
|
|||||||
.with_head(html! {
|
.with_head(html! {
|
||||||
link href="/static/styles/main.css" rel="stylesheet";
|
link href="/static/styles/main.css" rel="stylesheet";
|
||||||
link href="/static/styles/code.css" rel="stylesheet";
|
link href="/static/styles/code.css" rel="stylesheet";
|
||||||
|
link rel="alternate" type="application/atom+xml" href="/atom.xml";
|
||||||
|
link rel="alternate" type="application/rss+xml" href="/rss.xml";
|
||||||
})
|
})
|
||||||
.with_body(template::main_page(html! {
|
.with_body(template::main_page(html! {
|
||||||
section .article_header {
|
section .article_header {
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ pub async fn handle(Extension(posts): Extension<ConcurrentPostsStore>) -> Html {
|
|||||||
.with_crawler_permissive()
|
.with_crawler_permissive()
|
||||||
.with_head(html! {
|
.with_head(html! {
|
||||||
link href="/static/styles/main.css" rel="stylesheet";
|
link href="/static/styles/main.css" rel="stylesheet";
|
||||||
|
link rel="alternate" type="application/atom+xml" href="/atom.xml";
|
||||||
|
link rel="alternate" type="application/rss+xml" href="/rss.xml";
|
||||||
})
|
})
|
||||||
.with_body(template::main_page(html! {
|
.with_body(template::main_page(html! {
|
||||||
section .content_section {
|
section .content_section {
|
||||||
|
|||||||
Reference in new issue
Block a user