Luiz F. A. de Prá 3 лет назад
Родитель
Сommit
f67caf19b9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      layouts/posts/single.html

+ 2 - 2
layouts/posts/single.html

@@ -16,7 +16,7 @@
           <div class="date">
           <div class="date">
             <span class="posted-on">
             <span class="posted-on">
               <i class="fa fa-calendar" aria-hidden="true"></i>
               <i class="fa fa-calendar" aria-hidden="true"></i>
-              <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
+              <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
                 {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
                 {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}
               </time>
               </time>
             </span>
             </span>
@@ -33,7 +33,7 @@
 
 
       <div>
       <div>
         {{ if .Params.featuredImage }}
         {{ if .Params.featuredImage }}
-          <img src='{{ .Params.featuredImage }}' alt="Featured image"/>
+          <img src="{{ .Params.featuredImage | relURL }}" alt="Featured image"/>
         {{ end }}
         {{ end }}
         {{ .Content }}
         {{ .Content }}
       </div>
       </div>