2014-11-25 2 views
3

GitHub PagesJekyll을 사용하여 블로그를 호스팅하려고합니다. 나는 문제없이 로컬에서 블로그를 운영 할 수 있었다. 나는 username.github.io/username 저장소를 사용 중입니다. 다음 명령을 사용하여 새 블로그를 만들었습니다.지킬 GitHub 사용자 페이지 빌드 오류

git clone https://github.com/xxx/xxx.github.io.git 
jekyll new blog 
cd blog 
jekyll serve 

이것은 로컬로 작동합니다. 그때 최선을 다하고했습니다과 아래의 명령을 사용하여 자식의 repo에 밀어 :

cd .. 
git add * 
git commit -m "testing" 
git push 

다음과 같은 오류와 함께 실패 페이지 빌드 :

The file blog/css/main.scss contains syntax errors. For more information, see https://help.github.com/articles/page-build-failed-markdown-errors .

If you have any questions please contact us at https://github.com/contact .

main.scss, 다음과 같습니다

--- 
# Only the main Sass file needs front matter (the dashes are enough) 
--- 
@charset "utf-8"; 



// Our variables 
$base-font-family: Helvetica, Arial, sans-serif; 
$base-font-size: 16px; 
$small-font-size: $base-font-size * 0.875; 
$base-line-height: 1.5; 

$spacing-unit:  30px; 

$text-color:  #111; 
$background-color: #fdfdfd; 
$brand-color:  #2a7ae2; 

$grey-color:  #828282; 
$grey-color-light: lighten($grey-color, 40%); 
$grey-color-dark: darken($grey-color, 25%); 

// Width of the content area 
$content-width: 800px; 

$on-palm:   600px; 
$on-laptop:  800px; 



// Using media queries with like this: 
// @include media-query($on-palm) { 
//  .wrapper { 
//   padding-right: $spacing-unit/2; 
//   padding-left: $spacing-unit/2; 
//  } 
// } 
@mixin media-query($device) { 
    @media screen and (max-width: $device) { 
     @content; 
    } 
} 



// Import partials from `sass_dir` (defaults to `_sass`) 
@import 
     "base", 
     "layout", 
     "syntax-highlighting" 
; 

저는 문제는 CSS가 scss에서 생성되지 않는다고 생각합니다. 나는 확실하지 않다. 뭐가 문제 야?

+0

지킬에 대해 아무것도 몰라요.하지만 그 대시와 해시 스타일 주석은 파일 상단이 유효한 Sass가 아닙니다. – cimmanon

+0

@cimmanon 대시를 제거했습니다. 나는 실수를 범하지 않았지만 블로그에서 어떤 스타일링도 볼 수 없었다. 그냥 간단한 텍스트 페이지. – NEO

+0

은 _site/css 폴더에 있지만 여전히 main.scss입니다. CSS로 컴파일해야합니까? [지킬에 익숙한 사람은 누구나이 사실을 알 수 있습니다] – NEO

답변

관련 문제