Skip to content

Commit

Permalink
checkpoint, can't get navbar visible
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jun 19, 2024
1 parent f79b9fb commit 0710637
Show file tree
Hide file tree
Showing 27 changed files with 267 additions and 199 deletions.
Empty file added .hugo_build.lock
Empty file.
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
7 changes: 0 additions & 7 deletions content/about/index.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/developers/build/index.md

This file was deleted.

7 changes: 0 additions & 7 deletions content/developers/development/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/faq/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
+++
title = "Freenet: Frequently Asked Questions"
name = "FAQ"
+++

- [What is Freenet?](#what-is-freenet)
Expand Down
60 changes: 0 additions & 60 deletions content/home/index.md

This file was deleted.

File renamed without changes.
56 changes: 56 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
baseURL = 'https://freenet.org/'
languageCode = 'en-us'
title = 'Freenet'

theme = 'freenet'

[menu]

[[menu.main]]
name = "Home"
url = "/"
weight = 1

[[menu.main]]
name = "About"
url = "/about/"
weight = 2

[[menu.main]]
name = "Community"
url = "/about/community/"
weight = 3
parent = "About"

[[menu.main]]
name = "Philosophy"
url = "/about/philosophy/"
weight = 4
parent = "About"

[[menu.main]]
name = "Dev"
url = "/dev/"
weight = 5

[[menu.main]]
name = "Build"
url = "/dev/apps/"
weight = 6
parent = "Dev"

[[menu.main]]
name = "Platform"
url = "/dev/platform/"
weight = 7
parent = "Dev"

[[menu.main]]
name = "FAQ"
url = "/faq/"
weight = 8

[[menu.main]]
name = " Blog"
url = "/blog/"
weight = 9
3 changes: 0 additions & 3 deletions static/css/bulma.min.css

This file was deleted.

114 changes: 0 additions & 114 deletions static/css/freenetorg.css

This file was deleted.

7 changes: 7 additions & 0 deletions themes/freenet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Theme Name

## Features

## Installation

## Configuration
5 changes: 5 additions & 0 deletions themes/freenet/archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
22 changes: 22 additions & 0 deletions themes/freenet/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
body {
color: #222;
font-family: sans-serif;
line-height: 1.5;
margin: 1rem;
max-width: 768px;
}

header {
border-bottom: 1px solid #222;
margin-bottom: 1rem;
}

footer {
border-top: 1px solid #222;
margin-top: 1rem;
}

a {
color: #00e;
text-decoration: none;
}
1 change: 1 addition & 0 deletions themes/freenet/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('This site was generated by Hugo.');
9 changes: 9 additions & 0 deletions themes/freenet/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'


[module]
[module.hugoVersion]
extended = false
min = "0.116.0"
7 changes: 7 additions & 0 deletions themes/freenet/layouts/_default/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ end }}
8 changes: 8 additions & 0 deletions themes/freenet/layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ end }}
10 changes: 10 additions & 0 deletions themes/freenet/layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>

{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}
1 change: 1 addition & 0 deletions themes/freenet/layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>
4 changes: 4 additions & 0 deletions themes/freenet/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
<link rel="stylesheet" href="/css/bulma.min.css">
Loading

0 comments on commit 0710637

Please sign in to comment.