Add short code + add improve this page button
This commit is contained in:
parent
b18cf1d7cd
commit
9b10cadb58
7 changed files with 66 additions and 4 deletions
|
@ -20,7 +20,7 @@
|
|||
<div class="page-content">
|
||||
<div class="author-profile ml-auto align-self-lg-center">
|
||||
<img class="rounded-circle" src='{{ partial "helpers/get-author-image.html" . }}'/>
|
||||
<h5>{{ partial "helpers/get-author-name.html" . }}</h5>
|
||||
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
|
||||
<p>{{ .Page.Date.Format "January 2, 2006" }}</p>
|
||||
</div>
|
||||
|
||||
|
@ -32,7 +32,15 @@
|
|||
{{ .Page.Content }}
|
||||
</div>
|
||||
|
||||
<!---Next and Previous Navigator -->
|
||||
<!--- Improve this page button --->
|
||||
<div class="btn-improve-page">
|
||||
<a href="{{ .Site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
Improve This Page
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!---Next and Previous Navigator -->
|
||||
<hr />
|
||||
<div class="row next-prev-navigator">
|
||||
{{ $currentPage := . }}
|
||||
|
|
17
layouts/shortcodes/img.html
Normal file
17
layouts/shortcodes/img.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<img src="{{ .Get "src"}}"
|
||||
{{ if .Get "title"}}
|
||||
alt="{{.Get "title"}}"
|
||||
{{end}}
|
||||
{{ if .Get "width"}}
|
||||
width="{{.Get "width"}}"
|
||||
{{end}}
|
||||
{{ if .Get "height"}}
|
||||
height="{{.Get "height"}}"
|
||||
{{end}}
|
||||
{{ if .Get "float"}}
|
||||
style="float: {{.Get "float"}};"
|
||||
{{end}}
|
||||
{{ if .Get "align"}}
|
||||
class="{{.Get "align"}}"
|
||||
{{end}}
|
||||
>
|
7
layouts/shortcodes/split.html
Normal file
7
layouts/shortcodes/split.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="row">
|
||||
{{ range $idx, $val := split .Inner "---" }}
|
||||
<div class="col col-sm-12 col-lg-{{ $.Get $idx }}">
|
||||
{{ $val | markdownify }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
1
layouts/shortcodes/vs.html
Normal file
1
layouts/shortcodes/vs.html
Normal file
|
@ -0,0 +1 @@
|
|||
<div style="margin-top: {{ .Get 0 }}rem;"></div>
|
Loading…
Add table
Add a link
Reference in a new issue