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

github.com/MunifTanjim/minimo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunifTanjim <muniftanjim@gmail.com>2019-05-01 00:53:56 +0300
committerMunifTanjim <muniftanjim@gmail.com>2019-05-01 00:53:56 +0300
commitc8967699cc68d3e3ccf7981e6b224ab910c198d9 (patch)
tree42fe3030d410c8e7718f7acf2a82dd27523cf7ff
parentd9ccf2ec3d0f0e5c63d7913b704ecc800ebac445 (diff)
enhance [templates]: replace deprecated things
-rw-r--r--layouts/partials/comments/staticman/form.html4
-rw-r--r--layouts/partials/comments/staticman/list.html2
-rw-r--r--layouts/partials/comments/staticman/replies-list.html2
-rw-r--r--layouts/partials/head/head.html4
-rw-r--r--layouts/partials/widgets/breadcrumbs.html2
5 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/comments/staticman/form.html b/layouts/partials/comments/staticman/form.html
index a62be4c..6c7cdad 100644
--- a/layouts/partials/comments/staticman/form.html
+++ b/layouts/partials/comments/staticman/form.html
@@ -18,12 +18,12 @@
</small>
</h4>
<form action='{{ $api }}/comments' method='post' id='comment-form' class='comment-form'>
- <input type='hidden' name='options[postId]' value='{{ .UniqueID }}'>
+ <input type='hidden' name='options[postId]' value='{{ .File.UniqueID }}'>
<input type='hidden' name='options[redirect]' value='{{ .Permalink }}#submission-success'>
<input type='hidden' name='options[redirectError]' value='{{ .Permalink }}#submission-failure'>
<input type='address' name='fields[honeypot]' style='display:none'>
- <input type='hidden' name='fields[permalink]' value='{{ .URL }}'>
+ <input type='hidden' name='fields[permalink]' value='{{ .RelPermalink }}'>
<input type='hidden' name='fields[parent_id]' value=''>
<div>
diff --git a/layouts/partials/comments/staticman/list.html b/layouts/partials/comments/staticman/list.html
index 30c7496..27e4b2d 100644
--- a/layouts/partials/comments/staticman/list.html
+++ b/layouts/partials/comments/staticman/list.html
@@ -1,4 +1,4 @@
-{{- $entryId := .UniqueID -}}
+{{- $entryId := .File.UniqueID -}}
{{- if isset .Site.Data.comments $entryId -}}
diff --git a/layouts/partials/comments/staticman/replies-list.html b/layouts/partials/comments/staticman/replies-list.html
index a717eb9..b0191b2 100644
--- a/layouts/partials/comments/staticman/replies-list.html
+++ b/layouts/partials/comments/staticman/replies-list.html
@@ -1,5 +1,5 @@
{{- .Page.Scratch.Add "comments_depth" 1 -}}
-{{- $comments := ( index .Page.Site.Data.comments .Page.UniqueID ) -}}
+{{- $comments := ( index .Page.Site.Data.comments .Page.File.UniqueID ) -}}
{{- $parentId := .ParentId -}}
<ol class='children'>
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 292c267..ea6f512 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -2,8 +2,8 @@
{{ partial "head/meta" . }}
<title>{{ partial "data/title" . }}</title>
<link rel='canonical' href='{{ .Permalink }}'>
- {{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ with .OutputFormats.Get "RSS" }}
+ <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}
{{ partial "head/hreflang" . }}
{{ partial "head/includes" . }}
diff --git a/layouts/partials/widgets/breadcrumbs.html b/layouts/partials/widgets/breadcrumbs.html
index ba9f166..e2a303e 100644
--- a/layouts/partials/widgets/breadcrumbs.html
+++ b/layouts/partials/widgets/breadcrumbs.html
@@ -32,7 +32,7 @@
{{- $crumb := ( index $crumbs ( sub $length ( add $i 1 ) ) ) -}}
<li>
{{- if lt ( add $i 1 ) $length -}}
- <a href='{{- $crumb.URL -}}'>
+ <a href='{{- $crumb.RelPermalink -}}'>
{{- $crumb.LinkTitle -}}
</a>
{{- else -}}