aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-10 22:35:15 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-10 22:35:15 +0300
commit418eac8c0b978089644f48e27a0fbdd20e18ac91 (patch)
treeebe6af6bde5cf4f2d673facec0f901962970a6d8
parentdfe69e6cbe00fd7cb26ba5116c3fd78064462a68 (diff)
Auto-commit 2024-12-10
-rw-r--r--content/go/workflow.md3
-rw-r--r--hugo.toml11
-rw-r--r--layouts/partials/head.html4
3 files changed, 6 insertions, 12 deletions
diff --git a/content/go/workflow.md b/content/go/workflow.md
index 220d14b..76bc519 100644
--- a/content/go/workflow.md
+++ b/content/go/workflow.md
@@ -3,7 +3,8 @@ title = "Workflow"
name = "workflow"
repository = "https://git.neonxp.ru/workflow.git"
description = "Простой конечный автомат для Go"
-outputs = ["html", "go"]
+gomod = true
+outputs = ["html"]
+++
# Workflow for Go
diff --git a/hugo.toml b/hugo.toml
index 28a7647..afaad4d 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -116,17 +116,6 @@ page = ["html"]
home = ["html"]
section = ["html", "rss"]
-[mediaTypes]
- [mediaTypes.'text/html']
- suffixes = ['html']
- [mediaTypes.'text/gohtml']
- suffixes = ['htm']
-[outputFormats]
- [outputFormats.html]
- mediaType = 'text/html'
- [outputFormats.go]
- mediaType = 'text/gohtml'
-
[pagination]
disableAliases = false
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6731ae0..0e445ee 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,6 +4,10 @@
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<link rel="micropub" href="https://neonxp.ru/micropub">
+{{if .Params.gomod}}
+<meta name="go-import" content="neonxp.ru/go/{{.Params.Name}} git {{.Params.Repository}}">
+<meta name="go-source" content="neonxp.ru/go/{{.Params.Name}} {{.Params.Repository}}/tree/">
+{{end}}
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}