Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit d8a3b00

Browse files
authored
Merge pull request #548 from steveklabnik/fix-bom
check for BOM before the build
2 parents 68a8f2f + 6e61a2c commit d8a3b00

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ install:
1010
- pip install --user awscli
1111
- ~/.local/bin/aws configure set preview.cloudfront true
1212

13+
before_script: bash tidy.sh
14+
1315
# Build and deploy the site to the S3 bucket on push to master, unless PR
1416
script: bundle exec jekyll build
1517
branches:

_layouts/zh-CN/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<!-- Page last generated {{ site.time }} -->
33
<html lang="zh-CN">
44
<head>

tidy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
git grep -l $'\xEF\xBB\xBF' .
2+
3+
if [ $? -eq 0 ]; then exit 1; else exit 0; fi

zh-CN/downloads.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
layout: zh-CN/default
33
title: 下载 &middot; Rust程序设计语言
44
---

zh-CN/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
layout: zh-CN/basic
33
title: Rust程序设计语言
44
---

0 commit comments

Comments
 (0)