Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.168.0"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
with:
submodules: recursive

# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- name: Setup Pages
id: pages
uses: actions/configure-pages@v6
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
- uses: actions/checkout@v7
with:
submodules: recursive
# Hugo resolves the landingkit module (hugo.toml [module]) with the go
# command, at the version go.mod pins.
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache: false
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.168.0"
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# go-plot.github.io
The go-plot landing page (Hugo)

## The design is not here

It comes from the shared Hugo module
[`go-fleettools/landingkit`](https://github.com/go-fleettools/landingkit),
pinned in `go.mod` (Renovate bumps it); `kit.go` keeps `go mod tidy` from
deleting that requirement. `[params.brand]` in `hugo.toml` is read from the logo by
`landingkit brand`. A file under `layouts/partials/` with the name of one of the
kit's would silently override it.
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/go-plot/go-plot.github.io

go 1.27.3

require github.com/go-fleettools/landingkit v0.6.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/go-fleettools/landingkit v0.6.0 h1:lIlazNZ3xTWDSti/16Uo+aSUOFPhVniQaEnILbQmJuE=
github.com/go-fleettools/landingkit v0.6.0/go.mod h1:gBpbziqFcmcjtNknPjy5+AAzGZ5L+pPr9mIJZHpDlZc=
5 changes: 5 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ title = 'go-plot'

disableKinds = ['taxonomy', 'term', 'rss', 'sitemap', '404']

# The design comes from the landing kit, a Hugo module pinned in go.mod.
[module]
[[module.imports]]
path = "github.com/go-fleettools/landingkit"

[markup.goldmark.renderer]
unsafe = true

Expand Down
9 changes: 9 additions & 0 deletions kit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build tools

// This file never builds. A Hugo site has no Go code, so `go mod tidy` --
// which Renovate runs after every bump -- would find nothing that uses
// github.com/go-fleettools/landingkit and delete its requirement from go.mod.
// Importing it here keeps it. See the landingkit README.
package site

import _ "github.com/go-fleettools/landingkit"
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ <h2>Plots for the Go scientific stack.</h2>
</div>
</div></section>

<footer><div class="wrap"><span>go-plot · <a href="/go-plot">go-plot on GitHub</a> · BSD-3-Clause</span><span>data in · figures out</span></div></footer>
<footer><div class="wrap"><span>go-plot · <a href="/go-plot">go-plot on GitHub</a>{{ if not (partial "mantra-on.html" $) }} · BSD-3-Clause{{ end }}</span><span>data in · figures out</span></div></footer>
</body>
</html>
5 changes: 0 additions & 5 deletions layouts/partials/fork-ribbon.html

This file was deleted.

21 changes: 0 additions & 21 deletions layouts/partials/icons/OCTICONS-LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/partials/icons/book.html

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/partials/icons/github.html

This file was deleted.

Loading
Loading