feat: done customize
This commit is contained in:
@@ -51,60 +51,6 @@
|
||||
<span class="h4">{{ .job }}</span>
|
||||
<small>-</small>
|
||||
<a href="{{ .companyUrl }}" target="_blank">{{ .company }}</a>
|
||||
<div class="pb-1">
|
||||
<!-- <small>{{ .date }}</small> -->
|
||||
{{ if .info.enable | default true }}
|
||||
<span class="p-2">
|
||||
<span
|
||||
style="cursor: pointer;"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="top"
|
||||
data-bs-original-title={{ .info.content | default (print "Working as a " .job " at " .company ) }}
|
||||
>
|
||||
<i class="fas fa-info-circle fa-xs"></i>
|
||||
</span>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ if .featuredLink.enable | default false }}
|
||||
<div class="py-2 featuredLink">
|
||||
<a class="p-2 px-4 btn btn-outline-primary btn-sm" href={{ .featuredLink.url | default "#" }} target="_blank">
|
||||
{{ .featuredLink.name | default "Featured Link" }}
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ .content | markdownify}}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div
|
||||
class="tab-pane fade bg-transparent"
|
||||
role="tabpanel"
|
||||
id='pills-{{ replace .company " " "-" }}-{{ replace .date " " "-" }}'
|
||||
aria-labelledby='pills-{{ replace .company " " "-" }}-{{ replace .date " " "-" }}-tab'
|
||||
>
|
||||
<div>
|
||||
<span class="h4">{{ .job }}</span>
|
||||
<small>-</small>
|
||||
<a href="{{ .companyUrl }}" target="_blank">{{ .company }}</a>
|
||||
|
||||
<div class="pb-1">
|
||||
<!-- <small>{{ .date }}</small> -->
|
||||
{{ if .info.enable | default true }}
|
||||
<span class="p-2">
|
||||
<span
|
||||
style="cursor: pointer;"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="top"
|
||||
data-bs-original-title={{ .info.content | default (print "Worked as a " .job " at " .company ) }}
|
||||
>
|
||||
<i class="fas fa-info-circle fa-xs"></i>
|
||||
</span>
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ if .featuredLink.enable | default false }}
|
||||
<div class="py-2 featuredLink">
|
||||
@@ -117,6 +63,35 @@
|
||||
|
||||
<div class="pt-2">
|
||||
{{ .content | markdownify}}
|
||||
<br>
|
||||
<strong>{{ .writtenBy | markdownify}} </strong>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div
|
||||
class="tab-pane fade bg-transparent"
|
||||
role="tabpanel"
|
||||
id='pills-{{ replace .company " " "-" }}-{{ replace .date " " "-" }}'
|
||||
aria-labelledby='pills-{{ replace .company " " "-" }}-{{ replace .date " " "-" }}-tab'
|
||||
>
|
||||
<div>
|
||||
<span class="h4">{{ .job }}</span>
|
||||
<small>-</small>
|
||||
<a href="{{ .companyUrl }}" target="_blank">{{ .company }}</a>
|
||||
|
||||
{{ if .featuredLink.enable | default false }}
|
||||
<div class="py-2 featuredLink">
|
||||
<a class="p-2 px-4 btn btn-outline-primary btn-sm" href={{ .featuredLink.url | default "#" }} target="_blank">
|
||||
{{ .featuredLink.name | default "Featured Link" }}
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pt-2">
|
||||
{{ .content | markdownify}}
|
||||
<br>
|
||||
<strong>{{ .writtenBy | markdownify}} </strong>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user