浏览代码

add image to theme dir and use for fallback

tags/v1.1
Bud Parr 7 年前
父节点
当前提交
2806e91176
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 3
    2
      layouts/partials/page-header.html
  2. 3
    2
      layouts/partials/site-header.html

+ 3
- 2
layouts/partials/page-header.html 查看文件

@@ -1,5 +1,6 @@
{{ if .Params.featured_image }}
<header class="cover bg-center" style="background-image: url('{{ .Params.featured_image | absURL }}');">
{{ $featured_image := $.Param "featured_image" }}
{{ if $featured_image }}
<header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
<div class="pb3-m pb6-l bg-black-60">
{{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns">

+ 3
- 2
layouts/partials/site-header.html 查看文件

@@ -1,5 +1,6 @@
{{ if .Params.featured_image }}
<header class="cover bg-center" style="background-image: url('{{ .Params.featured_image | absURL }}');">
{{ $featured_image := $.Param "featured_image" }}
{{ if $featured_image }}
<header class="cover bg-center" style="background-image: url('{{ $featured_image | absURL }}');">
<div class="bg-black-60">
{{ partial "site-navigation.html" .}}
<div class="tc-l pv4 pv6-l ph3 ph4-ns">

正在加载...
取消
保存