diff options
-rw-r--r-- | content/go/workflow.md | 3 | ||||
-rw-r--r-- | hugo.toml | 11 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
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 @@ -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" . }} |