Welcome to mirror list, hosted at ThFree Co, Russian Federation.

footer.html « partials « layouts - github.com/yihui/hugo-xmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fbef91c997f094420aa6cb3b1bee348a91bd5958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <footer>
  {{ partial "foot_custom.html" . }}
  {{ with .Site.Params.footer }}
  <hr/>
  {{ replace . "{Year}" now.Year | markdownify}}
  {{ end }}
  {{ if .File.Path }}
  {{ $RmdFile := (print .File.BaseFileName ".Rmd") }}
  {{ if (where (readDir (print "content/" .File.Dir)) "Name" $RmdFile) }}
    {{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
  {{ else }}
    {{ $.Scratch.Set "FilePath" .File.Path }}
  {{ end }}
  {{ with .Site.Params.GithubEdit}}
  | <a href="{{ . }}{{ $.Scratch.Get "FilePath" }}">Edit this page</a>
  {{ end }}
  {{ end }}
  </footer>
  </body>
</html>