liquid-layout

How to pass {% captured %} variable from a view to the layout in Jekyll/Liquid?

非 Y 不嫁゛ 提交于 2019-12-03 22:53:47
I am trying to rebuild a blog in Jekyll and I have stubled upon a simple task. Provided I have the following set of templates: default.html: {{ head }} {{ content }} frontpage.html: --- layout: default --- {% capture head %} Frontpage {% end %} {{ content }} index.html: --- layout: frontpage --- Other stuff I was expecting that {% capture head %} would pass a variable to layout. But it seems only variables from the Front Matter are actually being passed as page.variable_name . Is there a way to pass capture -d var to the layout in Jekyll? Guess I could make 2 different layouts for frontpage

How to go about serving the same app on different resolutions/screens

醉酒当歌 提交于 2019-12-03 21:21:13
Scenario : You need to expose the same app on different screens - let's say a standard 15''-17'' a portable 10'' and a mobile 4'', possibly working on different resolutions. Question : Do you attempt to go for a liquid layout that gets rearranged depending on the real estate available or do you roll N (one for each range) separate UI layers, optimized for each specific supported resolution/screen-size. What's the industry standard on this kind of problems? Does it make sense to come up with very trick layouts partitioning the screen in priority areas that will go away /come back when the

How to suppress blank line in Jekyll?

元气小坏坏 提交于 2019-12-03 15:09:58
问题 I use GitHub Pages for my blog, and am running into a problem with Jekyll. My post.html has a block like this: {% for testpost in site.posts %} {% four %} {% lines of %} {% processing %} {% goes here %} {% endfor %} The part in the middle doesn't matter. The important part is the end of the line which is outside of the {% %} markup, and is therefore rendered into the html. Since this is in a loop, it's putting about 1000 blank lines into the middle of by HTML page. It doesn't affect the

Div layout with 3 columns: fixed - liquid - fixed

别等时光非礼了梦想. 提交于 2019-12-03 12:46:24
I'm trying to build a 3 column layout that has one fixed column on the left, a fluid column in the middle and another fixed column on the right. Anyone seen this? There are similar problems here, but not the solution I was looking for. CSS Layout 2-Column fixed-fluid http://www.dynamicdrive.com/style/layouts/category/C13/ http://www.dynamicdrive.com/style/layouts/item/css-liquid-layout-31-fixed-fluid-fixed/ Yes? Use fixed width and float to the appropriate side on the left and right columns. Then set the right and left margins of the fluid div to the width of the fixed divs. Fluid div should

CSS 3 column liquid layout with fixed center column

房东的猫 提交于 2019-12-03 09:21:10
问题 I want to make for my marketing site a 3 column layout that has images in the top banner. I want to have a liquid left/right side with a fixed center. The html would ideally look like this: <div id="pixelLeft"> </div> <div id="bannerCenter"> <img src="images/mybanner.png" /> </div> <div id="pixelRight"> </div> <style> #pixelLeft { background: url(../../images/pixel_left_fixed.png) 0 0 repeat-x; } #pixelRight { background: url(../../images/pixel_right_fixed.png) 0 0 repeat-x; } #bannerCenter {

CSS 3 column liquid layout with fixed center column

烈酒焚心 提交于 2019-12-03 01:02:46
I want to make for my marketing site a 3 column layout that has images in the top banner. I want to have a liquid left/right side with a fixed center. The html would ideally look like this: <div id="pixelLeft"> </div> <div id="bannerCenter"> <img src="images/mybanner.png" /> </div> <div id="pixelRight"> </div> <style> #pixelLeft { background: url(../../images/pixel_left_fixed.png) 0 0 repeat-x; } #pixelRight { background: url(../../images/pixel_right_fixed.png) 0 0 repeat-x; } #bannerCenter { /* something here to make fixed width of 1550px */ } </style> The images in the left/right pixel sides

How do you make a webpage change its width automatically?

感情迁移 提交于 2019-12-02 06:26:00
问题 In HTML, is there a way to make a webpage expand to the user's monitor? Like say I have a 15inch, but someone else has a 24 inch. The webpage would be small on their screen, but would fit on min. How would I make the page expand to 100%, or maybe 95%? 回答1: Fluid-width is achieved by using percentage units or em units. It's all about crafting a site layout based on grids and containers. Read more. 回答2: Gumbo, by "page" you do you mean web page contents or do you mean the window that contains

How do you make a webpage change its width automatically?

喜欢而已 提交于 2019-12-02 01:11:21
In HTML, is there a way to make a webpage expand to the user's monitor? Like say I have a 15inch, but someone else has a 24 inch. The webpage would be small on their screen, but would fit on min. How would I make the page expand to 100%, or maybe 95%? Fluid-width is achieved by using percentage units or em units. It's all about crafting a site layout based on grids and containers. Read more . Gumbo, by "page" you do you mean web page contents or do you mean the window that contains the page? If you mean the window, the answer is DON'T. If you mean content, you can use liquid layouts; Google

Can't Prevent Nested Div's from Overflowing when using Percent Sizes and Padding in CSS?

心已入冬 提交于 2019-12-01 13:56:58
I want to be able to layout nested divs with these properties: width: 100% height: 100% padding: 10px I want it to be such that, the children are 100% width and height of the remaining space after padding is calculated, not before. Otherwise, when I have a document like the below example, the child makes the scrollbars appear. But the scrollbars are not the main issue, the fact that the child stretches beyond the width of the parent container is. I can use all position: absolute declarations, but that doesn't seem right. Here is the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http

Can't Prevent Nested Div's from Overflowing when using Percent Sizes and Padding in CSS?

核能气质少年 提交于 2019-12-01 12:58:06
问题 I want to be able to layout nested divs with these properties: width: 100% height: 100% padding: 10px I want it to be such that, the children are 100% width and height of the remaining space after padding is calculated, not before. Otherwise, when I have a document like the below example, the child makes the scrollbars appear. But the scrollbars are not the main issue, the fact that the child stretches beyond the width of the parent container is. I can use all position: absolute declarations,