浏览代码

Removed hardcoded theme sample hero image. This will allow the user to "blank" out the hero default set in the config. The if statement for blank was unreachable. (#133)

tags/2.34
cdeguise 6 年前
父节点
当前提交
37bb3cc699
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/partials/site-header.html

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

@@ -1,4 +1,4 @@
{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }}
{{ $featured_image := .Param "featured_image"}}
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
{{ $featured_image := (trim $featured_image "/") | absURL }}

正在加载...
取消
保存