{{ range .Paginator.Pages }}
<section>
<a class="image" href="{{.Permalink}}">
- <img src="{{ .Params.featured_image | absURL}}" alt=".Title">
+ {{ if isset .Params "featured_image" }}
+ <img src="{{ .Params.featured_image | absURL}}" alt="{{.Title}}">
+ {{ else }}
+ {{ $default_image := resources.Get "img/default_article.jpg" }}
+ <img src="{{ $default_image.Permalink }}" alt="{{.Title}}">
+ {{ end }}
</a>
<div class="content">
<div class="inner">
<style media="screen">
#banner {
background-image: url( {{ $.Params.featured_image | absURL }} );
- background-repeat: no-repeat;
- background-position: center center;
- background-attachment: fixed;
}
</style>
{{ end }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
<link rel="stylesheet" href="{{ "css/syntax.css" |relURL }}">
- <noscript><link rel="stylesheet" href="{{ $noscript.RelPermalink }}" /></noscript>
+ <noscript><link rel="stylesheet" href="{{ $noscript.RelPermalink }}" ></noscript>
{{ partial "funcs/favicon.html" . }}
<link rel="canonical" href="{{ .Permalink }}">