feat: Add Content Security Policy, enhance author information display with TypeIt animation, and include an RSS social link.
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 22s
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 22s
This commit is contained in:
21
layouts/_partials/home/author.html
Normal file
21
layouts/_partials/home/author.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<h1>{{ .Site.Params.author }}</h1>
|
||||
|
||||
{{ if .Site.Params.info }}
|
||||
<h2 id="typeit-info"></h2>
|
||||
|
||||
<script src="https://unpkg.com/typeit@8.7.1/dist/index.umd.js"></script>
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
new TypeIt("#typeit-info", {
|
||||
strings: {{ .Site.Params.info | jsonify | safeJS }},
|
||||
speed: 50,
|
||||
loop: true,
|
||||
breakLines: false,
|
||||
nextStringDelay: 2000,
|
||||
deleteSpeed: 50,
|
||||
startDelay: 500,
|
||||
lifeLike: true
|
||||
}).go();
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user