From 87c70e64d54c069f227a1928e154e90023b28642 Mon Sep 17 00:00:00 2001 From: Mark Nguyen <1138440+canxerian@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:31:41 +0100 Subject: [PATCH] Copy of list.html and remove spinning animation --- .../index.md | 2 - layouts/_default/list.html | 78 +++++++++++++++++++ 2 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 layouts/_default/list.html diff --git a/content/posts/a-game-developers-guide-to-gaming-laptops/index.md b/content/posts/a-game-developers-guide-to-gaming-laptops/index.md index 921d90d..526a492 100644 --- a/content/posts/a-game-developers-guide-to-gaming-laptops/index.md +++ b/content/posts/a-game-developers-guide-to-gaming-laptops/index.md @@ -203,8 +203,6 @@ const priceComparisonChart = new Chart(ctx, { scales: { y: { ticks: { - // Include a dollar sign in the ticks - //callback: (value, index, ticks) => '$' + Chart.Ticks.formatters.numeric.apply(this, [value, index, ticks]) callback: function (value, index, ticks) { return 'GBP ' + value; } diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..41d2f03 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,78 @@ +{{ define "main" }} + + +{{ if and .Title (eq .Type "tags") }} +

#{{ .Title }}

+{{ end }} + + +{{ $pages := union .RegularPages .Sections }} +{{ if .IsHome }} +{{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} +{{ end }} + + +{{ $paginator := .Paginate $pages }} {{ range $index, $page := $paginator.Pages +}} + + +{{ if and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) }} + +{{ $avatar_url := $.Scratch.Get "avatar_url" }} +{{ if or $avatar_url site.Params.name }} +
+ {{ if $avatar_url }} +
+ {{ site.Params.name | default site.Title }} +
+ {{ end }} + {{ if site.Params.name }} +
+

{{ site.Params.name }}

+
+ {{ site.Params.bio | default (print `A personal blog by ` + site.Params.name) }} +
+
+ {{ end }} +
+{{ end }} + +{{ end }} + +
+ {{ if gt .Weight 0 }} + Featured + {{ end }} +

{{ .Title }}

+ + {{ .Title }} +
+{{ end }} + + +{{ if gt $paginator.TotalPages 1 }} + +{{ end }} + +{{ end }}