diff --git a/Makefile b/Makefile index a525177..f2e88c7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all format lint clean +.PHONY: all run format emojiscraper build vendor test compile format lint clean # If the first argument is "run"... ifeq (run,$(firstword $(MAKECMDGOALS))) @@ -11,7 +11,7 @@ endif GOCMD=go LDFLAGS="-s -w ${LDFLAGS_OPT}" -all: build format lint ## Format, lint and build +all: vendor build format lint ## Format, lint and build run: ## Run go run -tags debug main.go $(RUN_ARGS) @@ -22,6 +22,9 @@ emojiscraper: ## Run emojiscraper build: ## Build go build -tags debug -o bin/go-grip main.go +vendor: ## Vendor + go mod vendor + test: ## Test ${GOCMD} test ./... diff --git a/defaults/templates/layout.html b/defaults/templates/layout.html index 846ae7e..4dc7b92 100644 --- a/defaults/templates/layout.html +++ b/defaults/templates/layout.html @@ -1,28 +1,74 @@ - + - - - go-grip - markdown preview - - {{if eq .Theme "dark" }} - - {{else if eq .Theme "light" }} - - {{else}} - - {{end}} - - - -
-
- {{ .Content }} + + + go-grip - markdown preview + + {{if eq .Theme "dark" }} + + {{else if eq .Theme "light" }} + + {{else}} + + + {{end}} + + + + +
+ +
+ {{ .Content }} +
-
- {{if .BoundingBox}} - - {{end}} - + {{if .BoundingBox}} + + {{end}} +