Welcome to mirror list, hosted at ThFree Co, Russian Federation.

border.html « shortcodes « layouts - github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b72bb84aa060d62c342a69aaa133b2c6061be6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ $arg := .Get 0 }}
{{ $class := "" }}
{{ if eq $arg "dashed" }}
  {{ $class = "border-dashed" }}
{{ else if eq $arg "dotted" }}
  {{ $class = "border-dotted" }}
{{ else if eq $arg "dashed thick" }}
  {{ $class = "border-dashed border-thick" }}
{{ else if eq $arg "dotted thick" }}
  {{ $class = "border-dotted border-thick" }}
{{ end }}

<div class="child-borders">
  <div class="sm col {{ $class }}">
    {{ .Inner | markdownify }}
  </div>
</div>