diff options
author | Baron Schwartz <xaprb@users.noreply.github.com> | 2018-09-16 00:08:55 +0300 |
---|---|---|
committer | Baron Schwartz <xaprb@users.noreply.github.com> | 2018-09-16 00:08:55 +0300 |
commit | 256269a5e490890f01ac684976ef0acf3d55bf97 (patch) | |
tree | a138f437b0457340b4ad2ee1ea3f5619fb1da0e9 | |
parent | 0fe2244151e1c07418c77b00a39831abf0538084 (diff) |
add default header thumbnail
-rw-r--r-- | exampleSite/content/images.md | 2 | ||||
-rw-r--r-- | layouts/_default/mailchimp.xml | 2 | ||||
-rw-r--r-- | layouts/partials/li.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/exampleSite/content/images.md b/exampleSite/content/images.md index 26d118d..bfa9637 100644 --- a/exampleSite/content/images.md +++ b/exampleSite/content/images.md @@ -87,7 +87,7 @@ credit: "https://unsplash.com/photos/QRkew0KwXSM" ``` If there's no thumbnail, Story falls back to the full-size image. -If there's no article-specific image, Story uses its default, `/img/default-header-img.jpg`. +If there's no article-specific image, Story uses its default, `/img/default-header-img.jpg`, or the thumbnail equivalent, `/img/default-header-img.tn-500x500.jpg`. This page doesn't supply its own header image, so Story is using the default. You can supply your own default header image by simply putting an image with the same name in your *site's* `/static/img` directory. diff --git a/layouts/_default/mailchimp.xml b/layouts/_default/mailchimp.xml index bc4855d..652a80d 100644 --- a/layouts/_default/mailchimp.xml +++ b/layouts/_default/mailchimp.xml @@ -14,7 +14,7 @@ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate> <author>{{ .Site.Params.Author }}</author> <guid>{{ .Permalink }}</guid> - <media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ (absURL (default (default "img/default-header-img.jpg" .Params.image) .Params.thumbnail)) }}" medium="image" type="image/jpg" width="100" height="100" /> + <media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ (absURL (default (default "img/default-header-img.tn-500x500.jpg" .Params.image) .Params.thumbnail)) }}" medium="image" type="image/jpg" width="100" height="100" /> <description>{{ (printf "%s<br>%s" .Params.description .Summary) | html }}</description> </item> {{ end }} diff --git a/layouts/partials/li.html b/layouts/partials/li.html index 47be5bb..e9729c5 100644 --- a/layouts/partials/li.html +++ b/layouts/partials/li.html @@ -4,7 +4,7 @@ <div class="db pv4 {{ cond $hdr "ph3" "" }} ph0-l no-underline dark-gray"> <div class="flex flex-column flex-row-ns"> {{ if $hdr }} - <div class="pr3-ns mb4 mb0-ns w-100 h4 h4-m w4-m h5-ns w5-ns br3 cover" style="background-image: url('{{ absURL (default "img/default-header-img.jpg" (default .Params.image .Params.thumbnail)) }}'); background-position: center;"> + <div class="pr3-ns mb4 mb0-ns w-100 h4 h4-m w4-m h5-ns w5-ns br3 cover" style="background-image: url('{{ absURL (default "img/default-header-img.tn-500x500.jpg" (default .Params.image .Params.thumbnail)) }}'); background-position: center;"> <a href="{{ .Permalink }}" class="db w-100 h-100"></a> </div> {{ end }} |