diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-17 12:55:18 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-17 12:55:18 +0200 |
commit | 49e41445a6378949f520bfaf6989838361bb9550 (patch) | |
tree | 98e2ac15783d00f10456d76d58c3657b6daa187e | |
parent | Add Favicon (diff) | |
download | gopherproxy-49e41445a6378949f520bfaf6989838361bb9550.tar.gz gopherproxy-49e41445a6378949f520bfaf6989838361bb9550.tar.bz2 gopherproxy-49e41445a6378949f520bfaf6989838361bb9550.zip |
Fix indent bug
-rw-r--r-- | .vscode/settings.json | 3 | ||||
-rw-r--r-- | template.go | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..8c45cda --- /dev/null +++ b/.vscode/settings.json | |||
@@ -0,0 +1,3 @@ | |||
1 | { | ||
2 | "go.formatTool": "goimports" | ||
3 | } \ No newline at end of file | ||
diff --git a/template.go b/template.go index 242d0a2..32b75be 100644 --- a/template.go +++ b/template.go | |||
@@ -21,7 +21,7 @@ var tpltext = `<!doctype html> | |||
21 | {{- $content = printf "%s\n" $content -}} | 21 | {{- $content = printf "%s\n" $content -}} |
22 | {{- end -}} | 22 | {{- end -}} |
23 | {{- if .Link -}} | 23 | {{- if .Link -}} |
24 | {{- $content = printf "%s%s" $content (printf "<span class=\"link-type\">%s </span> <a class=\"link link--%s\" href=\"%s\">%s</a>" .Type .Type .Link .Text) -}} | 24 | {{- $content = printf "%s%s" $content (printf "<span class=\"link-type\">%s </span><a class=\"link link--%s\" href=\"%s\">%s</a>" .Type .Type .Link .Text) -}} |
25 | {{- else -}} | 25 | {{- else -}} |
26 | {{- $content = printf "%s%s" $content (printf " %s" .Text) -}} | 26 | {{- $content = printf "%s%s" $content (printf " %s" .Text) -}} |
27 | {{- end -}} | 27 | {{- end -}} |