1
0
Fork 0

Add module for the Grawkit playground

This commit is contained in:
Alex Palaistras 2022-10-29 19:46:22 +01:00
parent 890a3e2fe6
commit 07facfff11
5 changed files with 31 additions and 4 deletions

13
content/grawkit.md Normal file
View File

@ -0,0 +1,13 @@
---
title: Grawkit Playground
description: A live playground environment for Grawkit
module:
root_path: go.deuill.org/grawkit
sub_path: /play
repository:
type: git
http_url: https://git.deuill.org/deuill/grawkit
clone_url: https://git.deuill.org/deuill/grawkit.git
aliases:
- /grawkit/play
---

View File

@ -2,7 +2,7 @@
title: Informbot
description: A Chat Bot for Inform 7 Stories, Built in Go
module:
path: go.deuill.org/informbot
root_path: go.deuill.org/informbot
repository:
type: git
http_url: https://git.deuill.org/deuill/informbot

View File

@ -4,9 +4,9 @@
<h1>{{.Title}} <aside>{{.Description}}</aside></h1>
<dl>
<dt>Install</dt>
<dd><pre>go install {{.Params.module.path}}@latest</pre></dd>
<dd><pre>go install {{.Params.module.root_path}}{{.Params.module.sub_path}}@latest</pre></dd>
<dt>Documentation</dt>
<dd><a href="https://pkg.go.dev/{{.Params.module.path}}">https://pkg.go.dev/{{.Params.module.path}}</a></dd>
<dd><a href="https://pkg.go.dev/{{.Params.module.root_path}}{{.Params.module.sub_path}}">https://pkg.go.dev/{{.Params.module.root_path}}{{.Params.module.sub_path}}</a></dd>
<dt>Code</dt>
<dd><a href="{{.Params.repository.http_url}}">{{.Params.repository.http_url}}</a></dd>
</dl>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>{{.Page.Title}}</title>
<link rel="canonical" href="{{.Permalink}}">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<meta http-equiv="refresh" content="5; url={{.Permalink}}">
<meta name="go-import" content="{{.Page.Params.module.root_path}} {{.Page.Params.repository.type}} {{.Page.Params.repository.clone_url}}">
</head>
<body>
<main>This is a sub-package for the <code>{{.Page.Params.module.root_path}}</code> module, redirecting in 5 seconds.</main>
</body>
</html>

View File

@ -6,7 +6,7 @@
<title>{{if .IsHome}}Go Modules{{else}}{{.Title}}{{end}} &middot; {{.Site.Title}}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ if and (.IsPage) (.Params.module) (.Params.repository) }}<meta name="go-import" content="{{.Params.module.path}} {{.Params.repository.type}} {{.Params.repository.clone_url}}">{{ end }}
{{ if and (.IsPage) (.Params.module) (.Params.repository) }}<meta name="go-import" content="{{.Params.module.root_path}} {{.Params.repository.type}} {{.Params.repository.clone_url}}">{{ end }}
<link rel="stylesheet" href="/css/main.css">
</head>