-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Johannes Ernst
committed
Jan 29, 2024
1 parent
1a75eb3
commit 6c8c365
Showing
57 changed files
with
1,202 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.hugo_build.lock | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
feditest.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# FediTest.org | ||
|
||
This is the content of [feditest.org](https://feditest.org/). | ||
|
||
It is built with the [Hugo](https://gohugo.io/) static site generator, plus some Python scripts that generate a few of the pages. | ||
|
||
## Software requirements | ||
|
||
Install Git and Git-LFS, and initialize it: | ||
|
||
```shell | ||
$ brew install git | ||
$ brew install git-lfs | ||
$ git lfs install | ||
``` | ||
|
||
Install Hugo, e.g. on the Mac: | ||
|
||
```shell | ||
$ brew install hugo | ||
``` | ||
|
||
## To run the website locally | ||
|
||
Get the content: | ||
|
||
```shell | ||
$ git clone https://github.com/fediverse-devnet/feditest.org.git | ||
$ cd feditest.org | ||
$ git submodule update | ||
``` | ||
|
||
Run: | ||
|
||
```shell | ||
$ hugo server | ||
``` | ||
|
||
Then go to `http://localhost:1313/` (actual port will be printed to the terminal). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: FediTest | ||
breadcrumbtitle: Home | ||
layout: front | ||
--- | ||
|
||
## FediTest | ||
|
||
This wants to become the website for the FediTest project, which builds a test suite for | ||
the Fediverse. | ||
|
||
**Pardon our early work in progress.** | ||
|
||
<div style="height: 10em"></div> | ||
|
||
### Follow us in the Fediverse | ||
|
||
- <a rel="me" href="https://mastodon.social/@feditest">@feditest@mastodon.social</a> | ||
<link rel="me" href="https://mastodon.social/@feditest"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
baseURL = "https://feditest.org" | ||
title = "FediTest" | ||
languageCode = "en-US" | ||
defaultContentLanguage = "en" | ||
disableKinds = [ "taxonomy" ] | ||
enableRobotsTXT = true | ||
enableGitInfo = true | ||
|
||
[services.rss] | ||
limit = 42 | ||
|
||
[markup.goldmark.renderer] | ||
unsafe = true | ||
|
||
[markup.highlight] | ||
noClasses = false | ||
|
||
[params.author] | ||
name = "FediTest project" | ||
|
||
[sitemap] | ||
filename = "sitemap.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
{{ block "title" . }} | ||
<meta property="og:site_name" content="{{ .Site.Title }}"> | ||
{{ if .Site.Params.briefTitle }} | ||
<title>{{ .Site.Params.briefTitle }}{{ with .Title }} | {{ . }}{{ end }}</title> | ||
<meta property="og:title" content="{{ .Site.Params.briefTitle }}{{ with .Title }} | {{ . }}{{ end }}"> | ||
<meta property="twitter:title" content="{{ .Site.Params.briefTitle }}{{ with .Title }} | {{ . }}{{ end }}"> | ||
{{ else }} | ||
<title>{{ .Site.Title }}{{ with .Title }} | {{ . }}{{ end }}</title> | ||
<meta property="og:title" content="{{ .Site.Title }}{{ with .Title }} | {{ . }}{{ end }}"> | ||
<meta property="twitter:title" content="{{ .Site.Title }}{{ with .Title }} | {{ . }}{{ end }}"> | ||
{{ end }} | ||
{{ end }} | ||
|
||
<meta property="og:url" content="{{ .Permalink | absLangURL }}"> | ||
<meta property="og:locale" content="en_US"> | ||
<meta name="twitter:card" content="summary"> | ||
|
||
{{ if .IsHome }} | ||
<meta property="og:type" content="website"> | ||
{{ else }} | ||
<meta property="og:type" content="article"> | ||
{{ end }} | ||
|
||
{{ with .Site.Author.name }} | ||
<meta name="author" content="{{ . }}"> | ||
{{ end }} | ||
|
||
{{ with .Site.Title }} | ||
<meta property="og:site_name" content="{{ . }}"> | ||
<meta itemprop="name" content="{{ . }}"> | ||
{{ end }} | ||
|
||
{{ with .Description }} | ||
<meta name="description" content="{{ . | truncate 155 }}"> | ||
<meta itemprop="description" content="{{ . }}"> | ||
<meta property="og:description" content="{{ . }}"> | ||
<meta name="twitter:description" content="{{ . | truncate 200 }}"> | ||
{{ end }} | ||
|
||
{{ with .Site.Params.ImageUrl }} | ||
<meta itemprop="image" content="{{ . }}"> | ||
<meta name="twitter:image:src" content="{{ . }}"> | ||
<meta property="og:image" content="{{ . }}"> | ||
{{ end }} | ||
{{ with .Site.Params.Twitter }} | ||
<meta name="twitter:site" content="{{ . }}"> | ||
<meta name="twitter:creator" content="{{ . }}"> | ||
{{ end }} | ||
|
||
{{ with .Params.date }} | ||
<meta property="article:modified_time" content="{{ dateFormat "2006-01-02T15:04:05+07:00" . }}"> | ||
{{ end }} | ||
|
||
{{ with .Keywords }} | ||
<meta name="keywords" content="{{ delimit . ", " }}"> | ||
<meta property="article:tag" content="{{ delimit . ", " }}"> | ||
{{ end }} | ||
<link rel="icon" href="/favicon.ico"> | ||
{{ block "linksscripts" . }} | ||
{{ partial "linksscripts.html" . }} | ||
{{ end }} | ||
|
||
{{ range .AlternativeOutputFormats -}} | ||
{{ printf ` <link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} | ||
{{ end -}} | ||
</head> | ||
<body> | ||
<noscript>This site requires (a little bit of) Javascript.</noscript> | ||
|
||
{{ block "header" . }} | ||
<header> | ||
<div class="container"> | ||
{{ partial "headerlogo.html" . }} | ||
<div class="nav-tagline"> | ||
{{ partial "nav.html" . }} | ||
{{ partial "tagline.html" . }} | ||
</div> | ||
</div> | ||
</header> | ||
{{ end }} | ||
|
||
{{ block "nav-sections" . }} | ||
{{ partial "nav-sections.html" . }} | ||
{{ end }} | ||
|
||
{{ block "main" . }} | ||
<p>Placeholder for main content.</p> | ||
{{ end }} | ||
|
||
{{ block "footer" . }} | ||
{{ partial "footer.html" . }} | ||
{{ end }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ define "main" }} | ||
|
||
{{ if .Params.class }} | ||
<main class="{{ .Params.class }}"> | ||
{{ else }} | ||
<main> | ||
{{ end }} | ||
|
||
{{ if eq .Params.display false }} | ||
<p>Post unavailable.</p> | ||
{{ else }} | ||
<article> | ||
<div class="content"> | ||
{{ .Content }} | ||
</div> | ||
</article> | ||
{{ end }} | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{ define "main" }} | ||
|
||
{{ if .Params.class }} | ||
<main class="{{ .Params.class }}"> | ||
{{ else }} | ||
<main> | ||
{{ end }} | ||
|
||
{{ partial "toc.html" . }} | ||
{{ partial "breadcrumbs.html" . }} | ||
|
||
<section> | ||
|
||
{{ partial "title-et-al-main.html" . }} | ||
|
||
{{ if .Content }} | ||
<div class="content"> | ||
{{ .Content }} | ||
</div> | ||
{{ if .Pages }} | ||
<h2>Details</h2> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ $p := ( .Paginate ( where ( where .Pages "Params.display" "!=" "hide" ) "Params.display" "!=" "false" )) }} | ||
{{ partial "range-ul.html" $p.Pages.ByWeight }} | ||
{{ partial "paginate-buttons.html" $p }} | ||
</section> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- $pctx := . -}} | ||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} | ||
{{- $pages := $pctx.RegularPages -}} | ||
{{- $limit := .Site.Config.Services.RSS.Limit -}} | ||
{{- if ge $limit 1 -}} | ||
{{- $pages = $pages | first $limit -}} | ||
{{- end -}} | ||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title> | ||
<link>{{ .Permalink }}</link> | ||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description> | ||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} | ||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }} | ||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} | ||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} | ||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} | ||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} | ||
{{ with .OutputFormats.Get "RSS" }} | ||
{{ printf " <atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} | ||
{{ end }} | ||
{{ range $pages }} | ||
<item> | ||
<title>{{ .Title }}</title> | ||
<link>{{ .Permalink }}</link> | ||
{{ if .Date }} | ||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> | ||
{{ end }} | ||
{{ with .Site.Author.email }} | ||
<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author> | ||
{{ end }} | ||
<guid>{{ .Permalink }}</guid> | ||
<description>{{ .Content | html }}</description> | ||
</item> | ||
{{ end }} | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ define "main" }} | ||
|
||
{{ if .Params.class }} | ||
<main class="{{ .Params.class }}"> | ||
{{ else }} | ||
<main> | ||
{{ end }} | ||
|
||
{{ partial "toc.html" . }} | ||
{{ partial "breadcrumbs.html" . }} | ||
|
||
{{ if eq .Params.display false }} | ||
<p>Post unavailable.</p> | ||
{{ else }} | ||
<article> | ||
|
||
{{ partial "title-et-al-main.html" . }} | ||
|
||
<div class="content"> | ||
{{ .Content }} | ||
</div> | ||
</article> | ||
{{ end }} | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{{ define "main" }} | ||
|
||
{{ if .Params.class }} | ||
<main class="{{ .Params.class }}"> | ||
{{ else }} | ||
<main> | ||
{{ end }} | ||
|
||
{{ partial "breadcrumbs.html" . }} | ||
|
||
<section> | ||
|
||
{{ partial "title-et-al-main.html" . }} | ||
|
||
{{ if .Content }} | ||
<div class="content"> | ||
{{ .Content }} | ||
</div> | ||
{{ end }} | ||
|
||
{{ $p := ( .Paginate ( where ( where ( .RegularPages ) "Params.display" "!=" "hide" ) "Params.display" "!=" "false" ) 100 ) }} | ||
<dl class="range-dl-summary"> | ||
{{ range $p.Pages.ByTitle }} | ||
<dt> | ||
<a href="{{ .Permalink }}">{{ .Title }}</a> | ||
{{ if .Params.domain }} | ||
<span class="domain">({{ .Params.domain }})</span> | ||
{{ end }} | ||
{{ if .Params.status }} | ||
<span class="status">{{ .Params.status }}</span> | ||
{{ end }} | ||
</dt> | ||
{{ if .Params.summary }} | ||
<dd> | ||
{{ .Params.summary }} | ||
</dd> | ||
{{ end }} | ||
{{ end }} | ||
</dl> | ||
|
||
|
||
{{ partial "paginate-buttons-forward-backward.html" $p }} | ||
|
||
</section> | ||
</main> | ||
{{ end }} |
Oops, something went wrong.