Browse Source

Add generator tag and comment link to theme code

How to preserve HTML comments in Go templates:

https://discourse.gohugo.io/t/how-to-add-comments-in-a-template/75/8
master
Adrian Short 7 years ago
parent
commit
de8ccb0806
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      layouts/partials/header.html

+ 2
- 0
layouts/partials/header.html View File

@@ -2,6 +2,8 @@
<html> <html>
<head> <head>
<title>{{ .Site.Title }}</title> <title>{{ .Site.Title }}</title>
{{ .Hugo.Generator }}
{{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}"> <link rel="stylesheet" href="{{ relURL "/css/main.css" }}">
</head> </head>


Loading…
Cancel
Save