Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit482bbdc

Browse files
authored
Merge pull requestRustPython#4 from mireille-raad/master
html and style fixes
2 parents0be7a39 +4abd6c2 commit482bbdc

File tree

14 files changed

+108
-90
lines changed

14 files changed

+108
-90
lines changed

‎_config.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ description: "An open source Python-3 (CPython >= 3.5.0) Interpreter written in
2323
# baseurl: "/" # the subpath of your site, e.g. /blog
2424
url:"https://rustpython.github.io"# the base hostname & protocol for your site, e.g. http://example.com
2525
github_username:RustPython
26-
disclaimer:"The disclaimer not to use thisin production. Update this in the config.yml file attheroot."
26+
disclaimer:"RustPython is in a development phase and should not be usedin production or a fault intolerant setting. Our current build supports only about half ofthePython standard library."
2727
github:https://github.com/RustPython/RustPython/
2828
docs:https://github.com/RustPython/docs/
2929
gitter:https://gitter.im/rustpython/Lobby
3030
show_excerpts:true
3131
contributor_excerpt:""# TODO: write something here, goes right under "Contributors" heading
32+
blog-intro:Create an issue if you read something wrong. Edit posts or create new ones via PR on <a target="_blank" href="https://github.com/RustPython/rustpython.github.io">github.com/RustPython/rustpython.github.io</a>
3233

3334
navigation:
3435
-title:Blog

‎_includes/header.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<header>
22
<navclass="menu w-100 text-center border-bottom">
33
<ulclass="list-inline">
4-
<liclass="m-smallfloat-left"><ahref="{{ site.baseurl }}">Home</a></li>
4+
<liclass="float-left pl-1 pr-1"><ahref="{{ site.url }}">Home</a></li>
55
{% for item in site.navigation %}
6-
<liclass="m-smallfloat-left"><ahref="{{ item.url | relativeurl }}">{{item.title}}</a></li>
6+
<liclass="float-left pr-1"><ahref="{{ item.url | relativeurl }}">{{item.title}}</a></li>
77
{% endfor %}
88
</ul>
99
</nav>

‎_layouts/archive.html‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,31 @@
33
---
44

55
<section>
6-
<divclass="w-80 m-auto mt-md-4 mt-sm-2">
6+
<divclass="w-80 m-auto mt-2">
77
<divclass="d-md-flex">
88
<divclass="d-sm-none">
99
<imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"alt="RustPython Logo">
1010
</div>
1111
<divclass="pl-md-2">
1212
<divclass="section-title">Archive</div>
1313
<divclass="title">{{ site.title }} {{ page.title | escape }}</div>
14+
<small>{{ site.blog-intro }}</small>
1415
</div>
1516
</div>
1617
</div>
1718
</section>
1819

19-
<divclass="w-80 m-auto mt-md-4 mt-sm-2">
20+
<divclass="w-80 m-auto mt-2">
21+
<divclass="blog-intro">
22+
{{ content }}
23+
</div>
2024
{%- if site.posts.size> 0 -%}
2125
<ulclass="list-unstyled">
2226
{%- for post in site.posts -%}
23-
<liclass="blog-entry mt-4">
27+
<liclass="blog-entry mt-4">
2428
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
2529
<!-- flex container -->
26-
<divclass="d-md-flex">
30+
<divclass="d-md-flex">
2731
<divclass="pl-md-2 mt-1">
2832
<markclass="post-date">{{ post.date | date: date_format }}</mark>
2933
</div>

‎_layouts/home.html‎

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<!-- site title, logo and description -->
66
<!-- to update, edit the global site config.yaml -->
77
<section>
8-
<divclass="w-md-50 m-auto mt-md-4 mt-sm-2">
9-
<divclass="d-md-flexml-lg-20-percent">
10-
<divclass="pl-2d-sm-none"><imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"alt="RustPython Logo">
8+
<divclass="w-100 m-auto mt-2">
9+
<divclass="d-md-flexjustify-center">
10+
<divclass="d-sm-none"><imgclass="logo"src="{{site.baseurl}}/assets/img/rust-python-logo.svg"alt="RustPython Logo">
1111
</div>
12-
<divclass="pl-2">
12+
<divclass="w-md-25pl-2">
1313
<divclass="title">{{ site.title }}</div>
1414
<divclass="">
15-
<pclass="w-80">
15+
<p>
1616
{{ site.description }}
1717
</p>
1818
</div>
@@ -23,45 +23,47 @@
2323

2424
<!-- explainer image, paragraph and links to demos -->
2525
<!-- to update, edit index.markdown file in the root folder -->
26-
<sectionclass="p-2">
27-
<divclass="m-auto w-md-30 mt-md-4">
26+
<section>
27+
<divclass="m-auto w-md-25 mt-2">
2828
<imgclass="img-fluid"src="{{site.baseurl}}/assets/img/explainer.jpg"alt="RustPython Explainer">
2929
</div>
3030
<divclass="mt-md-4 mt-sm-2 w-md-50 m-auto">
31-
<pclass="mt-md-4 text-justify">
31+
<pclass="mt-md-4">
3232
{{ page.explainer }}
3333
</p>
3434
</div>
3535
<divclass="text-md-center">
3636
<ulclass="list-inline">
3737
{% for demo in page.demo %}
38-
<liclass="float-leftm-small"><arel="noopener"rel="noreferrer"href="{{ demo.url }}"target="_blank">{{ demo.label }}</a></li>
38+
<liclass="float-leftpr-1 mt-1"><arel="noopener"rel="noreferrer"href="{{ demo.url }}"target="_blank">{{ demo.label }}</a></li>
3939
{% endfor %}
4040
</ul>
4141
</div>
4242
</section>
4343

4444
<!-- installation instructions -->
4545
<!-- to update, edit the parameters in the index.markdown file -->
46-
<sectionclass="p-2">
46+
<section>
4747
<divclass="text-center">
4848
<divclass="section-title"> Installation</div>
4949
{% for install in page.installation %}
50-
<markclass="code m-auto"> {{ install.command }}</mark>
50+
<markclass="coded-tablem-auto mt-1"> {{ install.command }}</mark>
5151
{% endfor %}
5252
<divclass="mt-1"><small><arel="noopener"rel="noreferrer"href="{{ page.build-from-source-link }}"target="_blank">OR BUILD FROM SOURCE</a></small></div>
5353
</div>
5454
</section>
5555

5656
<!-- goals and why rustpython -->
5757
<!-- to update, edit the parameters in the index.markdown file -->
58-
<sectionclass="bg-light">
59-
<divclass="w-80 m-auto p-2">
58+
<sectionclass="bg-light mt-2">
59+
<divclass="w-md-80 m-auto">
6060
<divclass="section-title">Goals</div>
61-
<divid="goals"class="d-md-flex">
61+
<divclass="d-md-flex">
6262
{% for goals in page.goals %}
63-
<divclass="bg-rust text-white p-2 w-md-30 mt-2 goal">
64-
{{ goals.goal }}
63+
<divclass="w-md-50 mt-2 goal bg-rust">
64+
<divclass=" text-white p-2">
65+
{{ goals.goal }}
66+
</div>
6567
</div>
6668
{% endfor %}
6769
</div>
@@ -70,8 +72,7 @@
7072
{{ content }}
7173
</div>
7274
<divclass="w-md-50 mt-2">
73-
<divclass="border p-2 w-lg-30 w-md-50 m-auto mt-2">
74-
<div>
75+
<divclass="border w-md-50 float-md-right mt-md-4 p-2">
7576
<strong> Learn more</strong>
7677
<!-- list of posts where category is "featured" -->
7778
<ulclass="list-unstyled">
@@ -81,7 +82,6 @@
8182
{% endif %}
8283
{%- endfor -%}
8384
</ul>
84-
</div>
8585
</div>
8686
</div>
8787
</div>
@@ -91,15 +91,17 @@
9191
<!-- contributor list -->
9292
<!-- to edit, update _data/contributors.json -->
9393
<section>
94-
<divclass="w-80 m-auto p-2">
94+
<divclass="w-md-80 m-auto">
9595
<divclass="section-title"> Contributors</div>
9696
<pclass="w-80">{{ site.contributor_excerpt}}</p>
9797
<ulclass="list-contributors">
9898
{% for contributor in site.data.contributors %}
9999
<li><arel="noopener"rel="noreferrer"href="https://github.com/{{ contributor.github_username }}"target="_blank">{{ contributor.github_username }}</a></li>
100100
{% endfor %}
101101
</ul>
102-
<div><small><ahref="https://github.com/RustPython/RustPython/graphs/contributors">VIEW MORE</a></small></div>
103-
<div><small><ahref="https://github.com/RustPython/RustPython/#contributing">HOW TO CONTRIBUTE</a></small></div>
102+
<divclass="d-md-flex">
103+
<divclass="pr-1 mt-1"><small><ahref="https://github.com/RustPython/RustPython/graphs/contributors">VIEW MORE</a></small></div>
104+
<divclass="mt-1"><small><ahref="https://github.com/RustPython/RustPython/#contributing">HOW TO CONTRIBUTE</a></small></div>
105+
</div>
104106
</div>
105107
</section>

‎_layouts/post.html‎

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,22 @@
33
---
44

55
<!-- header section -->
6-
<section>
7-
<divclass="w-80 m-auto mt-md-4 mt-sm-2">
8-
<divclass="d-md-flex">
9-
<divclass="">
10-
<divclass="section-title">{{ site.title }} Blog</div>
11-
<divclass="titlew-80mt-sm-1">{{page.title| escape }}</div>
12-
</div>
13-
</div>
14-
</div>
6+
<sectionclass="bg-light">
7+
<divclass="w-80 m-auto">
8+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
9+
<markclass="post-date">{{ page.date | date: date_format }}</mark>
10+
11+
<divclass="section-title mt-1">{{site.title}} Blog</div>
12+
<divclass="title mt-sm-1"> {{ page.title | escape }}</div>
13+
<small>{{ site.blog-intro }}</small>
14+
</div>
1515
</section>
1616

17-
<!--date and content -->
17+
<!-- content -->
1818
<section>
19-
<divclass="w-80 m-auto mt-2">
20-
<divclass="w-md-75 d-flex">
21-
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
22-
<markclass="post-date">{{ page.date | date: date_format }}</mark>
23-
<divclass="w-md-75">
19+
<divclass="w-md-80 m-auto">
20+
<divclass="w-md-80">
2421
{{ content }}
25-
</div>
2622
</div>
2723
</div>
2824
</section>

‎_posts/2020-03-12-welcome-to-jekyll.markdown‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎assets/media.css‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,30 @@
4444
width:50%;
4545
}
4646

47-
.w-md-30 {
48-
width:30%;
47+
.w-md-25 {
48+
width:25%;
4949
}
5050

51-
.w-md-75 {
52-
width:75%;
51+
.w-md-80 {
52+
width:80%;
5353
}
5454

5555
.text-md-center {
5656
text-align: center;
5757
}
5858

59+
.goal:last-child{
60+
margin-left:2em;
61+
}
62+
63+
.float-md-right {
64+
float: right;
65+
}
66+
5967
}
6068

6169
/* fixes for ipad */
6270
@media (min-width:992px) {
63-
.ml-lg-20-percent {
64-
margin-left:20%;
65-
}
6671

6772
.w-lg-30 {
6873
width:30%;

‎assets/media/bytecode.jpg‎

19.8 KB
Loading

‎assets/media/python-larpop.jpg‎

101 KB
Loading
49.5 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp