diff options
-rw-r--r-- | config.toml | 5 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/config.toml b/config.toml index 064ae86..509bd07 100644 --- a/config.toml +++ b/config.toml @@ -43,9 +43,8 @@ name = "About" url = "/about/" weight = 3 -# https://gohugo.io/getting-started/configuration/#configure-minify -[minify] -minifyOutput = false # output asset minimization +[taxonomies] +series = "series" # a group of related posts, see https://gohugo.io/templates/internal/#open-graph ######################## diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 687c478..ef3f2a7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,6 +33,9 @@ {{ partial "math.html" . }} {{ end }} + <!-- opengraph --> + {{ template "_internal/opengraph.html" . }} + <!-- permalink --> <link rel="canonical" href="{{ .Permalink }}"> @@ -42,6 +45,9 @@ <link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} + <!-- schema --> + {{ template "_internal/schema.html" . }} + <!-- style --> <link media="screen" rel="stylesheet" href='{{ "css/common.css" | absURL }}'> <link media="screen" rel="stylesheet" href='{{ "css/content.css" | absURL }}'> @@ -54,9 +60,7 @@ {{ end }} <!-- twitter --> - <meta name="twitter:card" content="summary" /> - <meta name="twitter:title" content="{{ .Title }}" /> - <meta name="twitter:description" content="{{ .Summary }}" /> + {{ template "_internal/twitter_cards.html" . }} {{ block "head" . }}{{ end }} </head> |