🎉 Hello World
This commit is contained in:
24
layouts/_default/single.html
Normal file
24
layouts/_default/single.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- define "main" -}}
|
||||
|
||||
{{- $justify := false -}}
|
||||
{{- if eq .Params.justify true -}} {{- $justify = true -}} {{- end -}}
|
||||
<div id="white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
{{- partial "article-header.html" . -}}
|
||||
<h4>{{ .Title }}</h4>
|
||||
{{- with .Params.cover -}}<p><img class="img-responsive" src="{{- . | safeURL -}}" alt="{{ .Title }}"></p>{{- end -}}
|
||||
<div {{- if $justify -}}style="text-align: justify;" {{- end -}}>
|
||||
{{- .Content -}}
|
||||
</div>
|
||||
{{- partial "article-labels.html" . -}}
|
||||
{{- partial "article-license.html" . -}}
|
||||
{{- partial "article-author.html" . -}}
|
||||
</div>
|
||||
{{- partial "article-bottom-navigation.html" . -}}
|
||||
{{- partial "article-comments.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
Reference in New Issue
Block a user