Skip to content

Commit edf5eaf

Browse files
committed
jekyll-to-hugo migration: update config
1 parent ff7e5fd commit edf5eaf

File tree

7 files changed

+46
-11
lines changed

7 files changed

+46
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.hugo_build.lock

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

_config.yml

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

hugo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
baseURL = "https://robustirc.net/"
2+
languageCode = "en-us"
3+
title = "RobustIRC - IRC without netsplits"
4+
theme = "robustirc"
5+
disableKinds = ["RSS", "taxonomyTerm"]
6+
publishDir = "docs"
7+
8+
[outputs]
9+
home = [ "HTML" ]
10+
page = [ "HTML" ]

_layouts/default.html renamed to themes/robustirc/layouts/_default/baseof.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<title>{{ page.title }}</title>
7+
<title>{{ .Params.Title }}</title>
88
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
99
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.1/css/fontawesome.css">
1010
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.0.1/css/brands.css">
11-
<link href="jumbotron-narrow.css" rel="stylesheet">
11+
<link href="/jumbotron-narrow.css" rel="stylesheet">
1212
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400">
1313
<style type="text/css">
1414
body {
@@ -37,16 +37,23 @@
3737
<div class="header">
3838
<nav>
3939
<ul class="nav nav-pills pull-right">
40-
{% assign pages = site.pages | sort:"weight" %}
41-
{% for p in pages %}
42-
<li role="presentation" {% if p.url == page.url %}class="active"{% endif %}><a href="{{ p.url }}">{{ p.menu }}</a></li>
43-
{% endfor %}
40+
41+
<!-- TODO: add class="active" -->
42+
<li role="presentation" ><a href="/assets/css/style.css"></a></li>
43+
44+
<li role="presentation" ><a href="/">Home</a></li>
45+
46+
<li role="presentation"><a href="/docs/">Docs</a></li>
47+
48+
<li role="presentation" ><a href="/releases/">Releases</a></li>
49+
50+
<li role="presentation" ><a href="/contact/">Contact</a></li>
4451
</ul>
4552
</nav>
4653
<h3 class="text-muted">RobustIRC</h3>
4754
</div>
4855

49-
{{ content }}
56+
{{- block "main" . }}{{- end }}
5057

5158
<footer class="footer" style="text-align: center">
5259
<p>&copy; 2014 <a href="https://github.com/robustirc/bridge/blob/master/AUTHORS">The RobustIRC Authors</a></p>
@@ -134,3 +141,4 @@ <h3 class="text-muted">RobustIRC</h3>
134141
<!--
135142
vim:ts=2:sw=2:et
136143
-->
144+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ define "main" }}
2+
3+
{{ .Content }}
4+
5+
{{ end }}

themes/robustirc/theme.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# theme.toml template for a Hugo theme
2+
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
3+
4+
name = "robustirc"
5+
license = "BSD"
6+
licenselink = "https://github.com/robustirc/robustirc/blob/master/LICENSE"
7+
description = ""
8+
homepage = "https://robustirc.net"
9+
tags = []
10+
features = []
11+
min_version = "0.37.1"
12+
13+
[author]
14+
name = ""
15+
homepage = ""

0 commit comments

Comments
 (0)