瀏覽代碼

Fix RSS <link> and add a link to it in the sidebar menu

Brendan Abolivier 6 年之前
父節點
當前提交
7373a94f15
共有 2 個檔案被更改,包括 2 行新增1 行删除
  1. 1
    1
      layouts/partials/head.html
  2. 1
    0
      layouts/partials/sidebar.html

+ 1
- 1
layouts/partials/head.html 查看文件

@@ -43,5 +43,5 @@
43 43
   <link rel="shortcut icon" type="image/png" href="/favicon.png">
44 44
 
45 45
   <!-- RSS -->
46
-  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
46
+  <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
47 47
 </head>

+ 1
- 0
layouts/partials/sidebar.html 查看文件

@@ -9,6 +9,7 @@
9 9
 
10 10
     <ul class="sidebar-nav">
11 11
       <li><i class="fas fa-home"></i> <a href="{{ .Site.BaseURL }}">Home</a> </li>
12
+      <li><i class="fas fa-rss-square"></i> <a href="{{ .Site.RSSLink }}">RSS Feed</a></li>
12 13
       <li><i class="fab fa-twitter-square"></i> <a href="https://twitter.com/{{ .Site.Params.twitter }}">{{ .Site.Params.twitter }}</a></li>
13 14
       <li><i class="fab fa-github-square"></i> <a href="https://github.com/{{ .Site.Params.github }}">{{ .Site.Params.github }}</a></li>
14 15
       <li><i class="fas fa-envelope"></i> <a href=mailto:{{ .Site.Params.email }}>{{ .Site.Params.email }}</a></li>