Skip to content

Commit 6869d2f

Browse files
ThooriumHerschel
authored andcommitted
Quick pass to make pretty.
1 parent c18a03e commit 6869d2f

File tree

7 files changed

+138
-45
lines changed

7 files changed

+138
-45
lines changed

_layouts/post.html renamed to _layouts/blog-post.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
layout: default
33
---
4-
<section class="section content primary">
5-
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
4+
<section class="section content primary blog">
5+
<article class="blog-post blog-post-full" itemscope itemtype="http://schema.org/BlogPosting">
66

7-
<header class="post-header">
8-
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
7+
<header>
8+
<h2 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h2>
99
<p class="post-meta">
1010
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
1111
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
1212
{{ page.date | date: date_format }}
1313
</time>
1414
{%- if page.author -%}
15-
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
15+
<i aria-hidden="true"></i> <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
1616
{%- endif -%}</p>
1717
</header>
1818

19-
<div class="post-content e-content" itemprop="articleBody">
19+
<section class="blog-post-content e-content" itemprop="articleBody">
2020
{{ content }}
2121
</div>
2222

_layouts/blog.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="home">
6+
<section class="section content primary blog">
7+
{%- if page.title -%}
8+
<h1 class="page-heading">{{ page.title }}</h1>
9+
{%- endif -%}
10+
11+
{{ content }}
12+
13+
{%- if site.posts.size > 0 -%}
14+
<!--<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>-->
15+
16+
{%- for post in site.posts -%}
17+
<article class="blog-post">
18+
<header>
19+
<h2>
20+
<a class="post-link" href="{{ post.url | relative_url }}">
21+
{{ post.title | escape }}
22+
</a>
23+
</h2>
24+
<p class="post-meta">
25+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
26+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
27+
{{ post.date | date: date_format }}
28+
</time>
29+
{%- if post.author -%}
30+
<i aria-hidden="true"></i> <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ post.author }}</span></span>
31+
{%- endif -%}
32+
</p>
33+
</header>
34+
{%- if site.show_excerpts -%}
35+
<section class="blog-post-content">
36+
{{ post.excerpt }}
37+
</section>
38+
{%- endif -%}
39+
</article>
40+
{%- endfor -%}
41+
42+
{%- endif -%}
43+
44+
</section>
45+
</div>

_layouts/default.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@
1212
</main>
1313

1414
{%- include footer.html -%}
15+
<script>
16+
$(document).ready(function () {
17+
var $nav = $('.navbar');
18+
// fade in .navbar
19+
$(function () {
20+
$(window).on('scroll load', function () {
21+
// set distance user needs to scroll before we start fadeIn
22+
if ($(this).scrollTop() > window.innerHeight / 8) {
23+
$nav.addClass("active");
24+
} else {
25+
$nav.removeClass("active");
26+
}
27+
});
28+
});
29+
});
30+
</script>
1531

1632
</body>
1733

_layouts/home.html

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

assets/title.scss

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,65 @@ table.table-dark th {
167167
border: solid 1px;
168168
}
169169

170+
.section.content.blog {
171+
// max-width: 800px;
172+
margin: 0 auto;
173+
}
174+
175+
.section.content.blog header {
176+
padding: 2rem 0;
177+
}
178+
179+
.section.content.blog header h2 {
180+
margin-bottom: 0;
181+
margin-left: 0;
182+
}
183+
184+
.section.content.blog header h2 a {
185+
font-size: 3rem;
186+
text-decoration: none;
187+
}
188+
189+
.section.content.blog header p.post-meta {
190+
margin-bottom: 0;
191+
}
192+
193+
.section.content.blog header p.post-meta time {
194+
font-size: 1rem;
195+
}
196+
197+
.section.content.blog header p.post-meta time {
198+
font-size: 1rem;
199+
}
200+
201+
.section.content.blog header p.post-meta i {
202+
color: #FFAD33;
203+
}
204+
205+
.section.content.blog section.blog-post-content {
206+
padding: 0 1rem;
207+
border-left: solid;
208+
}
209+
210+
.section.content.blog article.blog-post-full h2 {
211+
color:#FC0;
212+
font-size: 3rem;
213+
}
214+
215+
.section.content.blog article.blog-post-full section.blog-post-content {
216+
border-left: none;
217+
}
218+
219+
.section.content.blog section.blog-post-content h3 {
220+
font-size: 2rem;
221+
font-weight: bold;
222+
margin-top:15px;
223+
}
224+
225+
.section.content.blog section.blog-post-content video {
226+
margin: 2rem;
227+
}
228+
170229
.header-down-arrow {
171230
-webkit-animation: 2s 3s ease-out infinite;
172231
animation: 2s 3s ease-out infinite;
@@ -273,6 +332,12 @@ a.store-badge {
273332
max-height: 300px;
274333
}
275334

335+
.blog {
336+
h1 {
337+
margin: 4px;
338+
}
339+
}
340+
276341
@media screen and (max-width: 800px) {
277342
footer .social .username {
278343
display:none;

blog/_posts/2023-03-12-progress-report.markdown

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
2-
layout: post
2+
layout: blog-post
33
title: "First post, progress report!"
44
date: 2023-03-12 01:23:00 +0100
5+
author:
56
categories:
67
---
78
Get ready for the biggest Ruffle announcement yet! And the first one on the blog!
89

9-
# Huge improvements to Ruffle's AVM1 engine accuracy!
10+
### Huge improvements to Ruffle's AVM1 engine accuracy!
1011
Thanks to a massive code refactor by @CUB3D, dozens upon dozens of ActionScript 2 games have been fixed! Here are just a few of them:
1112
- Chibi Knight: [https://www.newgrounds.com/portal/view/526470](https://www.newgrounds.com/portal/view/526470)
1213
- Xeno Tactic 2: [https://www.newgrounds.com/portal/view/438241/format/flash?emulate=flash](https://www.newgrounds.com/portal/view/438241/format/flash?emulate=flash)
@@ -18,7 +19,7 @@ Thanks to a massive code refactor by @CUB3D, dozens upon dozens of ActionScript
1819
- The Powerpuff Girls: Attack of the Puppybots: [https://flasharch.com/en/archive/play/b93354279e9788b849f83ef78f52cbbb](https://flasharch.com/en/archive/play/b93354279e9788b849f83ef78f52cbbb)
1920
- Extreme Pamplona: [https://flasharch.com/en/archive/play/e36aac73914ec8672218317e000615d7](https://flasharch.com/en/archive/play/e36aac73914ec8672218317e000615d7)
2021

21-
# Incredible progress in AVM2 (ActionScript 3) support!
22+
### Incredible progress in AVM2 (ActionScript 3) support!
2223
- Our website now has a page listing exactly what ActionScript 3 APIs we have implemented, making it easy to follow our progress. It will be frequently updated! [https://ruffle.rs/avm2.html](https://ruffle.rs/avm2.html)
2324
- XML support is rapidly improving! ActionScript 3 games tend to use a wide variety of XML methods. As Ruffle gains support for these methods, games are springing to life!
2425
- Several problems that caused unresponsive buttons and menus have been fixed. Unclickable buttons in ActionScript 3 games are (mostly) a thing of the past!
@@ -47,7 +48,7 @@ Here are just a few more of the many ActionScript 3 games that are playable toda
4748
- Fracuum: [https://www.newgrounds.com/portal/view/594354](https://www.newgrounds.com/portal/view/594354)
4849
- Dino Run: Marathon of Doom: [https://www.newgrounds.com/portal/view/566176](https://www.newgrounds.com/portal/view/566176)
4950

50-
# Last but not least, support for **mobile devices** is improving in a big way!
51+
### Last but not least, support for **mobile devices** is improving in a big way!
5152
- **Text input boxes** are finally supported on mobile devices! Tapping on a text box within Flash content now brings up the soft keyboard, so you can type into it without using a bluetooth keyboard or other workarounds.
5253
- The **context menu** finally works on iOS! It is activated by a long-press on the screen. To stop this behavior if needed, simply tap the "Hide this menu" option.
5354

blog/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
layout: home
2+
layout: blog
33
---

0 commit comments

Comments
 (0)