Badges and stuff.

This commit is contained in:
Charlie 2018-05-23 23:27:32 +01:00
parent ce93632ff4
commit 8176e74db4
4 changed files with 43 additions and 8 deletions

View file

@ -1,3 +1,5 @@
title: Jargonthing
collections:
topic:
output: true

View file

@ -1,16 +1,18 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class='container'>
<a class="navbar-brand" href="#">Navbar</a>
<a class="navbar-brand" href="/">{{ site.title }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
</ul>
{% if !page.hide_search %}
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
{% endif %}
</div>
</div>
</nav>

View file

@ -8,13 +8,13 @@
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<title>Hello, world!</title>
<title>{{ site.title }}</title>
</head>
<body>
{% include nav.html %}
<br />
{{ content }}
<!-- Optional JavaScript -->

View file

@ -1,10 +1,41 @@
---
layout: home
hide_search: true
---
<div class='text-center'>
<h1>{{ site.title }}</h1>
{% for item in site.topic %}
<h2>{{ item.title }}</h2>
<p>{{ item.description }}</p>
<p><a href="{{ item.url }}">{{ item.title }}</a></p>
{% endfor %}
<p class="lead">A Jargonbuster for people that work with techies.</p>
</div>
<div class='row'>
<div class='col d-flex flex-row justify-content-center'>
<div class="input-group mb-3" style='max-width: 400px;'>
<input type="text" class="form-control" placeholder="E.g. React" aria-label="Recipient's username" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button">Search</button>
</div>
</div>
</div>
</div>
<br />
<br />
<h4 class='text-center'>Topics</h4>
<div class='row'>
<div class='col'>
<div class='d-flex flex-row justify-content-around flex-wrap'>
{% for item in site.topic %}
<span class='badge badge-primary text-light' style='margin: 4px;'>
<a href="{{ item.url }}">
<span class='text-light'>{{ item.title }}</span>
</a>
</span>
{% endfor %}
</div>
</div>
</div>