|
1 | 1 | --- |
2 | 2 | layout: page |
3 | | -title: project 1 |
4 | | -description: with background image |
5 | | -img: assets/img/12.jpg |
| 3 | +title: My TinyHouse on Wheels |
| 4 | +description: In 2021, I moved into my self-designed and self-built TinyHouse. |
| 5 | +img: assets/img/tiny/cover.png |
6 | 6 | importance: 1 |
7 | | -category: work |
| 7 | +category: living |
8 | 8 | related_publications: true |
9 | 9 | --- |
10 | 10 |
|
11 | | -Every project has a beautiful feature showcase page. |
12 | | -It's easy to include images in a flexible 3-column grid format. |
13 | | -Make your photos 1/3, 2/3, or full width. |
14 | | - |
15 | | -To give your project a background in the portfolio page, just add the img tag to the front matter like so: |
| 11 | +More pictures about the construction process to come... |
16 | 12 |
|
17 | 13 | --- |
18 | 14 | layout: page |
19 | 15 | title: project |
20 | 16 | description: a project with a background image |
21 | | - img: /assets/img/12.jpg |
| 17 | + img: /assets/img/tiny/cover.png |
22 | 18 | --- |
23 | | - |
24 | | -<div class="row"> |
25 | | - <div class="col-sm mt-3 mt-md-0"> |
26 | | - {% include figure.liquid loading="eager" path="assets/img/1.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
27 | | - </div> |
28 | | - <div class="col-sm mt-3 mt-md-0"> |
29 | | - {% include figure.liquid loading="eager" path="assets/img/3.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
30 | | - </div> |
31 | | - <div class="col-sm mt-3 mt-md-0"> |
32 | | - {% include figure.liquid loading="eager" path="assets/img/5.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
33 | | - </div> |
34 | | -</div> |
35 | | -<div class="caption"> |
36 | | - Caption photos easily. On the left, a road goes through a tunnel. Middle, leaves artistically fall in a hipster photoshoot. Right, in another hipster photoshoot, a lumberjack grasps a handful of pine needles. |
37 | | -</div> |
38 | | -<div class="row"> |
39 | | - <div class="col-sm mt-3 mt-md-0"> |
40 | | - {% include figure.liquid loading="eager" path="assets/img/5.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
41 | | - </div> |
42 | | -</div> |
43 | | -<div class="caption"> |
44 | | - This image can also have a caption. It's like magic. |
45 | | -</div> |
46 | | - |
47 | | -You can also put regular text between your rows of images, even citations {% cite einstein1950meaning %}. |
48 | | -Say you wanted to write a bit about your project before you posted the rest of the images. |
49 | | -You describe how you toiled, sweated, _bled_ for your project, and then... you reveal its glory in the next row of images. |
50 | | - |
51 | | -<div class="row justify-content-sm-center"> |
52 | | - <div class="col-sm-8 mt-3 mt-md-0"> |
53 | | - {% include figure.liquid path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
54 | | - </div> |
55 | | - <div class="col-sm-4 mt-3 mt-md-0"> |
56 | | - {% include figure.liquid path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
57 | | - </div> |
58 | | -</div> |
59 | | -<div class="caption"> |
60 | | - You can also have artistically styled 2/3 + 1/3 images, like these. |
61 | | -</div> |
62 | | - |
63 | | -The code is simple. |
64 | | -Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system). |
65 | | -To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes. |
66 | | -Here's the code for the last row of images above: |
67 | | - |
68 | | -{% raw %} |
69 | | - |
70 | | -```html |
71 | | -<div class="row justify-content-sm-center"> |
72 | | - <div class="col-sm-8 mt-3 mt-md-0"> |
73 | | - {% include figure.liquid path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
74 | | - </div> |
75 | | - <div class="col-sm-4 mt-3 mt-md-0"> |
76 | | - {% include figure.liquid path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %} |
77 | | - </div> |
78 | | -</div> |
79 | | -``` |
80 | | - |
81 | | -{% endraw %} |
0 commit comments