<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                - 默認的相關內容是keywords和時間相關,時間晚的頁面會顯示時間早的關聯頁面,時間早的頁面不會顯示時間晚的頁面,也就是有時間先后 1. 創建themes/hyde/layouts/partial/related.html ``` {{ $related := .Site.RegularPages.Related . | first 6 }} {{ with $related }} <div class="related-content"> <h2>Related content</h2> <ul class="article-gallery"> {{ range . }} <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span> {{ end }} </ul> {{ else }} <ul>. Nothing related</ul> </div> {{ end }} ``` 2. themes/hyde/layouts/_default/single.html ``` {{ define "main" -}} <div class="post"> <h1>{{ .Title }}</h1> <time datetime={{ .Date.Format "2006-01-02T15:04:05Z0700" }} class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time> {{ .Content }} </div> {{ if .Site.DisqusShortname -}} <h2>Comments</h2> {{ template "_internal/disqus.html" . }} {{- end }} {{ partial "related.html" . }} {{- end }} ``` 3. 新的post里面一定要包含keywords,默認對應keywords ``` --- title: "Second" date: 2019-11-01T16:14:58+08:00 draft: false keywords: ["peter"] --- ``` 4. 如果你的關鍵字name不是keywords比如是tags,那么需要調整related.html ``` {{ $related := .Site.RegularPages.RelatedIndices . "tags" | first 6 }} {{ with $related }} <div class="related-content"> <h2>Related content</h2> <ul class="article-gallery"> {{ range . }} <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span> {{ end }} </ul> {{ else }} <ul>. Nothing related</ul> </div> {{ end }} ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看