all repos — archie @ 5fbc45536a2999a697cebf8eb375d07acf0c6503

A minimal Hugo Theme

Added <script> tag support to customJS

Added a "readmore" class to the read more links to enable finegrained css
Ahmed Alsuwaidi aasuwaidi24@gmail.com
Sun, 27 Feb 2022 13:10:25 +0400
commit

5fbc45536a2999a697cebf8eb375d07acf0c6503

parent

57ff9c6ee9d44c0aac539c5b0b57c87370995c1a

2 files changed, 3 insertions(+), 1 deletions(-)

jump to
M layouts/index.htmllayouts/index.html

@@ -24,7 +24,7 @@ {{ else }}

{{ .Summary }}&hellip; {{ end }} </div> - <a href="{{ .RelPermalink }}">Read more ⟶</a> + <a class="readmore" href="{{ .RelPermalink }}">Read more ⟶</a> </section> {{ end }} {{ template "partials/paginator.html" . }}
M layouts/partials/header.htmllayouts/partials/header.html

@@ -54,6 +54,8 @@ {{- end -}}

{{- 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 }}