TolgaTatli / Halve

Stylish Two-Column Jekyll Theme
https://tolgatatli.github.io/Halve/
MIT License
290 stars 356 forks source link

About the size of the halve. #32

Closed chuyangliu closed 7 years ago

chuyangliu commented 7 years ago

How could I make the left part narrower? I just want a 1:2 page instead of a 1:1 page.

TaylanTatli commented 7 years ago

Edit assets/_sass/_site.scss

Replace this part:

.block-left,
.block-right {
  width: 50%;
  height: 100%;
  position: relative;
  display: table;
  > div {
    display: table-cell;
    vertical-align: middle;
  }
  .content {
    height: 100%;
  }
}

with this:

.block-left {
  width: 33%;
}
.block-right {
  width: 67%;
}
.block-left,
.block-right {
  height: 100%;
  position: relative;
  display: table;
  > div {
    display: table-cell;
    vertical-align: middle;
  }
  .content {
    height: 100%;
  }
}
chuyangliu commented 7 years ago

Thanks! By the way, the installation guide is not accessible to me. How could I preview the website locally? I am new to Ruby.

chuyangliu commented 7 years ago

I have figured it out!

gem install bundler
bundle install
bundle exec jekyll serve --watch

Then visit http://127.0.0.1:4000/ is ok.