about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-12 23:31:39 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-13 18:49:37 +0700
commit43a4b318cf7d4a9ab40fe800d6971d1ad4ee7f9f (patch)
tree9df5cfce703f7a0d5b5a087912fa854f6dc03825
parentac4d614cb0223be8167cc73fe6eaa440bbed74a7 (diff)
downloadsite-43a4b318cf7d4a9ab40fe800d6971d1ad4ee7f9f.tar.gz
Advertise RSS feed
-rw-r--r--_layout/hair.html7
-rw-r--r--_layout/head.html6
-rw-r--r--_layout/tag.html7
3 files changed, 9 insertions, 11 deletions
diff --git a/_layout/hair.html b/_layout/hair.html
new file mode 100644
index 0000000..352e740
--- /dev/null
+++ b/_layout/hair.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html lang=en>
+<meta charset=UTF-8 name=viewport content='width=device-width, initial-scale=1'>
+<link rel=alternate type=application/rss+xml href=https://cnx.srht.site/feed.xml
+      title='{{website_title}}'>
+<link rel=icon href=/assets/favicon.png>
+<link rel=stylesheet href=/css/style.css>
diff --git a/_layout/head.html b/_layout/head.html
index 9c0eac5..4b4ca29 100644
--- a/_layout/head.html
+++ b/_layout/head.html
@@ -1,8 +1,4 @@
-<!doctype html>
-<html lang=en>
-<meta charset=UTF-8 name=viewport content='width=device-width, initial-scale=1'>
-<link rel=icon href=/assets/favicon.png>
-<link rel=stylesheet href=/css/style.css>
+{{insert hair.html}}
 {{if hasmath}}<link rel=stylesheet href=/css/katex.min.css>{{end}}
 {{isdef title}}<title>{{title}} - McSinyx</title>{{end}}
 <body>
diff --git a/_layout/tag.html b/_layout/tag.html
index 2ac2eea..a9de4ae 100644
--- a/_layout/tag.html
+++ b/_layout/tag.html
@@ -1,9 +1,4 @@
-<!doctype html>
-<html lang=en>
-<meta charset=UTF-8>
-<meta name=viewport content='width=device-width, initial-scale=1'>
-<link rel=icon href=/assets/favicon.png>
-<link rel=stylesheet href=/css/style.css>
+{{insert hair.html}}
 <title>Tag: {{fd_tag}}</title>
 <body>
 {{insert header.html}}