Skip to content

Commit 7e81e1b

Browse files
authored
Merge pull request #416 from jplatte/image-positioning
Fix image positioning
2 parents f999945 + fa72b85 commit 7e81e1b

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ any web server to check it out in your browser:
2424

2525
```console
2626
> cd site
27-
> python -m SimpleHTTPServer
27+
> python3 -m http.server
2828
```
2929

3030
The site is now available at <0.0.0.0:8000>.

posts/2017-06-27-Increasing-Rusts-Reach.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ Who should apply for this project:
8484
- Interest in improving usability of developer-facing documentation and tools
8585
- Interest in learning in detail about Rust syntax and semantics
8686

87-
![Nick Cameron][nrc]
87+
<img src="/images/2017-06-Increasing-Rusts-Reach/nrc.jpg" alt="Nick Cameron" class="right-thumbnail">
8888

8989
*About Nick Cameron: I'm a Rust core team member and lead the dev-tools team. I work on a bunch of
9090
tools including Rustdoc, Rustfmt, the Rust Language Server, and the Rust compiler. I want to make
9191
Rust developer tools awesome, and user experience is a key part of that. I want Rust to change the
9292
world (or at least the programming world), and we can't do that without making the Rust language
9393
and community more accessible to more people.*
9494

95-
![Steve Klabnik][steveklabnik]
95+
<img src="/images/2017-06-Increasing-Rusts-Reach/steveklabnik.jpeg" alt="Steve Klabnik" class="right-thumbnail">
9696

9797
*About Steve Klabnik: I used to work on Ruby on Rails before Rust, and one of the reasons why I love
9898
Rust is that as a project, we're committed to helping people learn Rust as their first low-level
@@ -127,7 +127,7 @@ Who should apply for this project:
127127
- Interest in improving the new Rust developer experience
128128
- Interest in learning how to improve and create lints
129129

130-
![Manish Goregaokar][manishearth]
130+
<img src="/images/2017-06-Increasing-Rusts-Reach/manish.png" alt="Manish Goregaokar" class="right-thumbnail">
131131

132132
*About Manish Goregaokar: I'm a research engineer at Mozilla working on Servo. I care a lot about
133133
improving workflows and tooling, especially around the newcomer experience.*
@@ -154,7 +154,7 @@ Who should apply for this project:
154154
- Interest in improving approachability of Rust
155155
- Interest in investigating the motivations behind visitors to the main website and/or crates.io
156156

157-
![Aaron Turon][aturon]
157+
<img src="/images/2017-06-Increasing-Rusts-Reach/aturon.jpg" alt="Aaron Turon" class="right-thumbnail">
158158

159159
*About Aaron Turon: I'm a Rust core team member, manage the Mozilla Rust team, and currently lead
160160
the library, infrastructure, and Cargo teams. On the technical side, I'm most driven by language
@@ -181,7 +181,7 @@ Who should apply for this project:
181181
- Background or interest in creating visual teaching tools like diagrams or drawings a plus
182182
- Interest in learning Rust concepts and teaching what you learn to others
183183

184-
![Niko Matsakis][nmatsakis]
184+
<img src="/images/2017-06-Increasing-Rusts-Reach/nmatsakis.jpeg" alt="Niko Matsakis" class="right-thumbnail">
185185

186186
*About Niko Matsakis: I'm a member of the Rust core team as well as the Rust language and compiler
187187
teams. I focus mainly on the design and implementation of the language itself. I want to do what I
@@ -205,7 +205,7 @@ Who should apply for this project:
205205
- Experience using a web framework written in some other language
206206
- Interest in learning how to write web applications in Rust and teaching what you learn to others
207207

208-
![Sean Griffin][sgrif]
208+
<img src="/images/2017-06-Increasing-Rusts-Reach/sgrif.jpeg" alt="Sean Griffin" class="right-thumbnail">
209209

210210
*About Sean Griffin: In addition to my Rust work, I am one of the maintainers of Ruby on Rails. One
211211
of the great things about Rails (and web development) is that it has really helped to lower the
@@ -235,7 +235,7 @@ Who should apply for this project:
235235
- Background in writing, teaching, or documentation
236236
- Interest in, and opinions about, improving tools for creating and displaying code documentation
237237

238-
![Felix Klock][pnkfelix]
238+
<img src="/images/2017-06-Increasing-Rusts-Reach/pnkfelix.jpeg" alt="Felix Klock" class="right-thumbnail">
239239

240240
*About Felix Klock: I'm the main developer of tango (as well as a member of the Rust compiler and
241241
language teams). I actively use tango for authoring my presentation slides about Rust. I
@@ -267,7 +267,7 @@ Who should apply for this project:
267267
- Interest in learning how to translate an application to Rust
268268
- Interest in researching and documenting features that libraries have or don’t have
269269

270-
![Andrew Gallant][burntsushi]
270+
<img src="/images/2017-06-Increasing-Rusts-Reach/burntsushi.jpeg" alt="Andrew Gallant" class="right-thumbnail">
271271

272272
*About Andrew Gallant: I'm a member of the Rust library team that works with Rust in my free time. I
273273
am very interested in information retrieval, fast text search and generally improving Rust's
@@ -293,7 +293,7 @@ Who should apply for this project:
293293
- Interest in learning how to write or translate a CLI program to Rust
294294
- Interest in researching and documenting features that libraries have or don’t have
295295

296-
![Kamal Marhubi][kamalmarhubi]
296+
<img src="/images/2017-06-Increasing-Rusts-Reach/kamalmarhubi.jpeg" alt="Kamal Marhubi" class="right-thumbnail">
297297

298298
*About Kamal Marhubi: I've been writing Rust for about a year and a half. I help maintain nix, a
299299
library that gives a Rusty interface to unix systems APIs. I've also contributed to rustfmt, rustup,
@@ -302,13 +302,3 @@ and the standard library.*
302302
----
303303

304304
We're excited to get [your application](https://docs.google.com/forms/d/e/1FAIpQLSfbSGuoyZE9dctdEoC_XEZ7j2ox7jQT1zghAOF4iGds2PfBCA/viewform) before July 18! We will notify all applicants by Aug 1.
305-
306-
[nrc]: /images/2017-06-Increasing-Rusts-Reach/nrc.jpg
307-
[steveklabnik]: /images/2017-06-Increasing-Rusts-Reach/steveklabnik.jpeg
308-
[manishearth]: /images/2017-06-Increasing-Rusts-Reach/manish.png
309-
[aturon]: /images/2017-06-Increasing-Rusts-Reach/aturon.jpg
310-
[nmatsakis]: /images/2017-06-Increasing-Rusts-Reach/nmatsakis.jpeg
311-
[sgrif]: /images/2017-06-Increasing-Rusts-Reach/sgrif.jpeg
312-
[pnkfelix]: /images/2017-06-Increasing-Rusts-Reach/pnkfelix.jpeg
313-
[burntsushi]: /images/2017-06-Increasing-Rusts-Reach/burntsushi.jpeg
314-
[kamalmarhubi]: /images/2017-06-Increasing-Rusts-Reach/kamalmarhubi.jpeg

src/posts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl Post {
6363
// next, the contents. we add + to get rid of the final "---\n\n"
6464
let options = ComrakOptions {
6565
ext_header_ids: Some(String::new()),
66+
unsafe_: true, // Allow rendering of raw HTML
6667
..ComrakOptions::default()
6768
};
6869

src/styles/app.scss

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,25 @@ h3, .post h2, header h2 {
247247
letter-spacing: normal;
248248
}
249249

250-
.post h2 {
251-
font-size: 2em;
250+
.post {
251+
h2 {
252+
font-size: 2em;
253+
}
254+
255+
img {
256+
display: block;
257+
margin-left: auto;
258+
margin-right: auto;
259+
}
260+
261+
.right-thumbnail {
262+
float: right;
263+
width: 150px;
264+
margin-left: 15px;
265+
margin-bottom: 15px;
266+
clear: right;
267+
box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
268+
}
252269
}
253270

254271
header h1 {

0 commit comments

Comments
 (0)