From 418eac8c0b978089644f48e27a0fbdd20e18ac91 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 10 Dec 2024 22:35:15 +0300 Subject: Auto-commit 2024-12-10 --- content/go/workflow.md | 3 ++- hugo.toml | 11 ----------- 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 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 @@ +{{if .Params.gomod}} + + +{{end}} {{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} -- cgit v1.2.3