diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-17 21:02:53 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-17 21:02:53 +0200 |
| commit | 58f744a22380c42c25ee4059bb4b2bcfd255fd53 (patch) | |
| tree | c1d34bf628f1887edf0d4e38e341eaf35f0d6c09 /layouts/_default/home.atom.xml | |
| parent | 2e2e603a3ba1923087f949956bbf66456afbe7bf (diff) | |
| download | gohugo-theme-ed-58f744a22380c42c25ee4059bb4b2bcfd255fd53.tar.gz | |
Add json feed
Diffstat (limited to 'layouts/_default/home.atom.xml')
| -rw-r--r-- | layouts/_default/home.atom.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/home.atom.xml b/layouts/_default/home.atom.xml index 5368ab7..45af5ca 100644 --- a/layouts/_default/home.atom.xml +++ b/layouts/_default/home.atom.xml @@ -4,9 +4,10 @@ xml:lang="{{ site.LanguageCode }}"> {{ printf `<title type="html"><![CDATA[%s]]></title>` site.Title | safeHTML }} {{ with site.Params.description }}{{ printf `<subtitle type="html"><![CDATA[%s]]></subtitle>` . | safeHTML }}{{ end }} - <link href="{{ "/" | absURL }}" type="text/html" /> + <link href="{{ site.BaseURL | absURL }}" type="text/html" /> {{ with site.Home.OutputFormats.Get "ATOM" }}<link href="{{ .Permalink | absURL }}" rel="self" type="{{ .MediaType.Type | html }}" />{{ end }} {{ with site.Home.OutputFormats.Get "FEED"}}<link href="{{ .Permalink | absURL }}" rel="alternate" type="{{ .MediaType.Type | html }}" />{{end}} + {{ with site.Home.OutputFormats.Get "JSON"}}<link href="{{ .Permalink | absURL }}" rel="alternate" type="{{ .MediaType.Type | html }}" />{{end}} {{ $logo := resources.Get (site.Params.assets.logo | default "/img/open-graph-logo.png" ) }}{{ $logo = $logo.Resize "96x96" }}<icon>{{ $logo.Permalink | absURL }}</icon> <logo>{{ $logo.Permalink | absURL }}</logo> {{ with site.Author.name }}<author> |
