Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
48d294a6
Commit
48d294a6
authored
Apr 12, 2016
by
Tobias Weingartner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better default template.
parent
42b7d574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
middleware/markdown/markdown_test.go
middleware/markdown/markdown_test.go
+1
-1
middleware/markdown/template.go
middleware/markdown/template.go
+3
-5
No files found.
middleware/markdown/markdown_test.go
View file @
48d294a6
...
...
@@ -151,7 +151,7 @@ DocFlags.var_bool true`
<link rel="stylesheet" href="/resources/css/default.css">
<script src="/resources/js/log.js"></script>
<script src="/resources/js/default.js"></script>
</head>
</head>
<body>
<h2>Welcome on the blog</h2>
...
...
middleware/markdown/template.go
View file @
48d294a6
...
...
@@ -42,11 +42,9 @@ const (
<html>
<head>
<title>{{.Doc.title}}</title>
<meta charset="utf-8">
{{range .Styles}}<link rel="stylesheet" href="{{.}}">
{{end -}}
{{range .Scripts}}<script src="{{.}}"></script>
{{end -}}
<meta charset="utf-8">{{range .Styles}}
<link rel="stylesheet" href="{{.}}">{{end}}{{range .Scripts}}
<script src="{{.}}"></script>{{end}}
</head>
<body>
{{.Doc.body}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment