mirror of
https://github.com/silicon-linux/silicon-linux.github.io.git
synced 2025-01-22 22:22:13 -05:00
Our new blog system (kind of broken for now) and some additional features
This commit is contained in:
parent
1d226dcf07
commit
ca0c69911b
7 changed files with 69 additions and 6 deletions
|
@ -1,3 +1,3 @@
|
|||
<div class="footer">
|
||||
<p>© Copyright 2018, Silicon Linux Development Group. <a href="https://github.com/silicon-linux/silicon-linux.github.io/issues">Report a bug.</a></p>
|
||||
<p>© Copyright 2018, Silicon Linux Development Group. <a href="https://github.com/silicon-linux/silicon-linux.github.io/issues">Report a bug.</a><br><a href="https://discord.gg/EFhRDqG"><img src="https://img.shields.io/discord/502598767510290432.svg?colorB=7289DA&label=discord" alt="Discord Badge"></p>
|
||||
</div>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<div id="navigation">
|
||||
<ul>
|
||||
<ul class="navbar">
|
||||
<li class="nav logo">Silicon Linux</li>
|
||||
<li class="nav"><a class="nav" href="/index.html">HOME</a></li>
|
||||
<li class="nav"><a class="nav"href="/download.html">DOWNLOAD</a></li>
|
||||
<li class="nav"><a class="nav" href="/support.html">SUPPORT</a></li>
|
||||
<li class="nav"><a class="nav" href="/" {% if page.url == "/" %}style="background-color: #1f8e42;"{% endif %}>HOME</a></li>
|
||||
<li class="nav"><a class="nav"href="/download.html" {% if page.url == "/download.html" %}style="background-color: #1f8e42;"{% endif %}>DOWNLOAD</a></li>
|
||||
<li class="nav"><a class="nav" href="/support.html" {% if page.url == "/support.html" %}style="background-color: #1f8e42;"{% endif %}>SUPPORT</a></li>
|
||||
<li class="nav"><a class="nav" href="/blog.html" {% if page.url == "/blog.html" %}style="background-color: #1f8e42;"{% endif %}>BLOG</a></li>
|
||||
<li class="nav"><a class="nav"href="https://github.com/silicon-linux">GITHUB</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
19
_layouts/post.html
Normal file
19
_layouts/post.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
---
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
{% include heading.html %}
|
||||
<TITLE>{{ page.title }} | Silicon Linux Blog</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
{% include navigator.html %}
|
||||
|
||||
<h1>{{ page.title }}</h1>
|
||||
<p><b>{{ page.date | date_to_string }} | {{ page.author }}</b></p>
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
</BODY>
|
||||
</HTML>
|
7
_posts/2018-11-03-new-blog.md
Normal file
7
_posts/2018-11-03-new-blog.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
layout: post
|
||||
author: Alee
|
||||
---
|
||||
Hey all! We now have a blog system in our website!
|
||||
|
||||
For now, we post everything that's related to Silicon Linux here and on Discord!
|
6
_posts/2018-12-10-test.md
Normal file
6
_posts/2018-12-10-test.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: post
|
||||
author: Alee
|
||||
---
|
||||
This is a test post.
|
||||
And so on and so on...
|
24
blog.html
Normal file
24
blog.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
project: Silicon Linux
|
||||
---
|
||||
|
||||
<HTML>
|
||||
<HEAD>
|
||||
{% include heading.html %}
|
||||
<TITLE>Silicon Linux</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
{% include navigator.html %}
|
||||
<h1>Latest Posts</h1>
|
||||
|
||||
<ul>
|
||||
{% for post in site.posts %}
|
||||
<li class="list-blog">
|
||||
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||
<p>{{ post.excerpt }}</p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% include footer.html %}
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -44,7 +44,7 @@ a {
|
|||
margin: -1px;
|
||||
}
|
||||
|
||||
ul {
|
||||
ul.navbar {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -52,6 +52,12 @@ ul {
|
|||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
li.list-blog{
|
||||
text-decoration: none;
|
||||
float: left;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li.logo{
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
|
|
Loading…
Reference in a new issue