fix content insertion
This commit is contained in:
parent
174380f4c8
commit
6456376f3c
6 changed files with 84 additions and 44 deletions
|
|
@ -1,14 +1,36 @@
|
|||
- url: /
|
||||
title: Home
|
||||
- url: "#"
|
||||
title: About
|
||||
- url: "#"
|
||||
title: Linuxposting News
|
||||
- url: "#"
|
||||
title: Site Announcements
|
||||
- url: "/register"
|
||||
title: Register for Accounts
|
||||
- url: "#"
|
||||
title: View Molly's Page
|
||||
- url: "#"
|
||||
title: Contact Us
|
||||
# navigation buttons are specified in this file:
|
||||
# - main: for the upper column of buttons
|
||||
# - sub: for the lower column of buttons
|
||||
# each button has 3 properties:
|
||||
# - title: the button text
|
||||
# - url: the link the button leads to
|
||||
# - idn: the index name of the button. buttons get the class "btn-<idn>".
|
||||
#
|
||||
# Note: idn is optional and if not specified, will not apply any extra classes.
|
||||
|
||||
main:
|
||||
- title: Home
|
||||
url: /
|
||||
idn: 'home'
|
||||
- title: About
|
||||
url: /about/
|
||||
idn: 'about'
|
||||
- title: Linuxposting News
|
||||
url: /news/
|
||||
idn: 'new'
|
||||
- title: Announcements
|
||||
url: /announcements/
|
||||
idn: 'ann'
|
||||
- title: Molly's Page
|
||||
url: https://molly.linuxposting.xyz/
|
||||
idn: 'molly'
|
||||
sub:
|
||||
- title: Register
|
||||
url: /register/
|
||||
idn: 'reg'
|
||||
- title: Contact Us
|
||||
url: "#"
|
||||
idn: 'msg'
|
||||
- title: Theme Selection
|
||||
url: "#"
|
||||
idn: 'theme'
|
||||
5
website/_includes/mainnavbuttons.html
Normal file
5
website/_includes/mainnavbuttons.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% for item in site.data.nav.main %}
|
||||
<a href="{{ item.url }}"
|
||||
class="button {% if item.idn %}btn-{{item.idn}}{% endif %}"
|
||||
id="btn-{{forloop.index}}">{{ item.title }}</a>
|
||||
{% endfor %}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<nav>
|
||||
<ul>
|
||||
{% for item in site.data.nav %}
|
||||
<li>
|
||||
<a href="{{ item.url }}">{{ item.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
10
website/_includes/subnavbuttons.html
Normal file
10
website/_includes/subnavbuttons.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
{% assign subnav_offset = site.data.nav.main.size %}
|
||||
|
||||
{% for item in site.data.nav.sub %}
|
||||
{% assign subnav_index = forloop.index | plus: subnav_offset %}
|
||||
<a href="{{ item.url }}"
|
||||
class="button {% if item.idn %}btn-{{item.idn}}{% endif %}"
|
||||
id="btn-{{ subnav_index }}">{{ item.title }}</a>
|
||||
{% endfor %}
|
||||
|
|
@ -3,17 +3,23 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>bleh</title>
|
||||
<title>nya! {{page.title}}</title>
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- top bar -->
|
||||
<div class="nav-top">
|
||||
<a href="/"><img src="/assets/img/molly.png" alt="high mouse cherishing lunix. but fr tho, we need logo and stuff"></a>
|
||||
<h1>Headline</h1>
|
||||
<h1>{{ page.headline }}</h1>
|
||||
<form action="#">
|
||||
<input type="text" placeholder="Search.." name="search">
|
||||
<button type="submit"><i class="nf-fa-search"> </i></button>
|
||||
<!-- FIXME: the search icon should either be added manually
|
||||
using the unicode and adding nerdfonts as a fallback
|
||||
font, or by @importing the nerdfont css file which
|
||||
will add the icon using 'content:' just by the class.
|
||||
Here you have marked it as both while not adding
|
||||
nerdfonts as a font in any way. -->
|
||||
<button type="submit"><i class="nerd nf-fa-search"> </i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
@ -22,16 +28,10 @@
|
|||
<div class="sidebar-left">
|
||||
<!-- nav menu -->
|
||||
<div class="nav-main">
|
||||
<a href="#" class="button" id="btn-1">About</a>
|
||||
<a href="#" class="button" id="btn-2">Linuxposting News</a>
|
||||
<a href="#" class="button" id="btn-3">Announcements</a>
|
||||
<a href="#" class="button" id="btn-4">News</a>
|
||||
<a href="#" class="button" id="btn-5">Molly's Page</a>
|
||||
{% include mainnavbuttons.html %}
|
||||
</div>
|
||||
<div class="nav-main">
|
||||
<a href="/register/" class="button" id="btn-6">Register</a>
|
||||
<a href="#" class="button" id="btn-7">Contact Us</a>
|
||||
<a href="#" class="button" id="btn-8">Theme Selection</a>
|
||||
{% include subnavbuttons.html %}
|
||||
</div>
|
||||
<!-- icons at the bottom -->
|
||||
<div class="nav-icons">
|
||||
|
|
@ -55,23 +55,29 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>text</p>
|
||||
<p>{{ content }}</p>
|
||||
</div>
|
||||
|
||||
<div class="sidebar-right">
|
||||
<!-- the chapter or link list at the top right -->
|
||||
<div class="content-table">
|
||||
<h5>Table of Contents</h5>
|
||||
<ol>
|
||||
<li>If we had content with chapters, it would go here</li>
|
||||
<li>Oh yeah, very good structure</li>
|
||||
<li>another point</li>
|
||||
</ol>
|
||||
{% comment %}
|
||||
Table of contents generated by https://github.com/allejo/jekyll-toc .
|
||||
The file is included as toc.html in the _includes directory.
|
||||
{% endcomment %}
|
||||
{% include toc.html html=content %}
|
||||
</div>
|
||||
<div class="news">
|
||||
<div class="news-item">
|
||||
<h5>Announcements</h5>
|
||||
<p>Server restart at 23:00 UTC</p>
|
||||
{% for announcement in site.announce %}
|
||||
<p>
|
||||
<a href="{{ announcement.url }}">{{ announcement.title }}</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>No announcements available at the moment.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<a href="/feed.xml" class="button-small">
|
||||
<img src="/assets/img/icon.png">RSS Feed
|
||||
|
|
@ -81,7 +87,13 @@
|
|||
<div class="news">
|
||||
<div class="news-item">
|
||||
<h5>NEWS NEWS NEWS</h5>
|
||||
<p>Read here more about whatever shenanigans we are up to</p>
|
||||
{% for article in site.news %}
|
||||
<p>
|
||||
<a href="{{ article.url }}">{{ article.title }}</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>No news articles available at the moment.</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<a href="#" class="button-small">
|
||||
<img src="/assets/img/icon.png">Read more
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ layout: default
|
|||
headline: Account Registration
|
||||
---
|
||||
|
||||
### How to Register for accounts on linuxposting.xyz
|
||||
|
||||
## Rabout
|
||||
|
||||
This page will explain how to get accounts for various services on linuxposting.xyz
|
||||
|
||||
## Requisites
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue