Add blog embed to homepage (#249)

master
rubenwardy 2022-05-14 18:35:07 +01:00 committed by GitHub
parent 5edcfa3c35
commit 9367c2cacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<a class="navbar-item" href="{{ '/#gallery' | relative_url }}">Gallery</a>
<a class="navbar-item" href="{{ '/downloads/' | relative_url }}">Download</a>
<a class="navbar-item" href="https://content.minetest.net">ContentDB</a>
<a class="navbar-item" href="https://forum.minetest.net/viewforum.php?f=18">News</a>
<a class="navbar-item" href="https://blog.minetest.net/">Blog</a>
<a class="navbar-item" href="{{ '/get-involved/' | relative_url }}">Get Involved</a>
<a class="navbar-item" href="{{ '/education/' | relative_url }}">Education</a>
</div>

11
_sass/_blog.scss Normal file
View File

@ -0,0 +1,11 @@
.blog-embed {
// position: relative;
text-align: center;
iframe {
width: 100%;
height: 230px;
max-width: 960px;
margin: none auto;
}
}

View File

@ -11,3 +11,4 @@
@import "home";
@import "content";
@import "footer";
@import "blog";

View File

@ -58,6 +58,18 @@ redirect_from:
</div>
</section>
<section class="section">
<div class="container is-max-desktop blog-embed">
<h2 id="blog" class="title section-title">Blog</h2>
<iframe src="https://blog.minetest.net/embed_latest/" frameborder="0"></iframe>
<p>
<a class="button is-primary">
View more blog posts
</a>
</p>
</div>
</section>
<section class="section">
<div class="container">
<h2 id="gallery" class="title section-title">Gallery</h2>