mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 07:07:16 +03:00
Added <script> tag support to customJS
Added a "readmore" class to the read more links to enable finegrained css
This commit is contained in:
parent
57ff9c6ee9
commit
5fbc45536a
@ -24,7 +24,7 @@
|
||||
{{ .Summary }}…
|
||||
{{ end }}
|
||||
</div>
|
||||
<a href="{{ .RelPermalink }}">Read more ⟶</a>
|
||||
<a class="readmore" href="{{ .RelPermalink }}">Read more ⟶</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ template "partials/paginator.html" . }}
|
||||
|
@ -54,6 +54,8 @@
|
||||
{{- range .Site.Params.customJS }}
|
||||
{{- if or (hasPrefix . "http://") (hasPrefix . "https://") }}
|
||||
<script src="{{ . }}"></script>
|
||||
{{- else if (hasPrefix . "<script")}}
|
||||
{{ .| safeHTML }}
|
||||
{{- else }}
|
||||
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user