Browse Source

add goimport support

master
Lunny Xiao 1 year ago
parent
commit
d68da41499
Signed by: lunny <xiaolunwen@gmail.com> GPG Key ID: C3B7C91B632F738A
3 changed files with 15 additions and 0 deletions
  1. +15
    -0
      layouts/_default/single.html
  2. BIN
      static/favicon.png
  3. BIN
      static/images/logo.png

+ 15
- 0
layouts/_default/single.html View File

@ -0,0 +1,15 @@
{{ define "header_css" }}
{{ with .Params.goimport }}<meta name="go-import" content="{{ . }}">{{ end }}
{{ with .Params.gosource }}<meta name="go-source" content="{{ . }}">{{ end }}
{{ end }}
{{ define "body_classes" }}page-default-single{{ end }}
{{ define "header_classes" }}{{ end }}
{{ define "main" }}
<center>
<h1 class="title">{{.Title}}</h1>
<div class="content">
{{.Content}}
</div>
</center>
{{ end }}

BIN
static/favicon.png View File

Before After
Width: 128  |  Height: 128  |  Size: 18 KiB Width: 256  |  Height: 256  |  Size: 23 KiB

BIN
static/images/logo.png View File

Before After
Width: 128  |  Height: 128  |  Size: 18 KiB Width: 256  |  Height: 256  |  Size: 23 KiB

Loading…
Cancel
Save