+
{{ .forks_count }}
@@ -58,7 +58,7 @@
.then(data => {
document.getElementById('{{ $id }}-full_name').innerHTML = data.full_name;
document.getElementById('{{ $id }}-description').innerHTML = data.description;
- document.getElementById('{{ $id }}-stars_count').innerHTML = data.starts_count;
+ document.getElementById('{{ $id }}-stars_count').innerHTML = data.stars_count;
document.getElementById('{{ $id }}-forks_count').innerHTML = data.forks_count;
})
.catch(error => console.error(error))
From cf85d913fbd84ff6d78b62dbfce5e4efbaccff2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?=
<40151420+ldericher@users.noreply.github.com>
Date: Wed, 7 Aug 2024 23:04:20 +0200
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20fix=20typos=20in=20"term"=20?=
=?UTF-8?q?default=20layout?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
layouts/_default/term.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index db33bd72..c72298ee 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,6 +1,6 @@
{{ define "main" }}
-{{ .Scratch.Set "scope" "list" }}
+{{ .Scratch.Set "scope" "term" }}
{{ if .Site.Params.term.showHero | default false }}
{{ $heroStyle := print "partials/hero/" .Site.Params.term.heroStyle ".html" }}
{{ if templates.Exists $heroStyle }}
@@ -39,9 +39,9 @@
{{ if gt .Pages 0 }}
- {{ $cardView := .Params.cardView | default (.Site.Params.list.cardView | default false) }}
- {{ $cardViewScreenWidth := .Site.Params.list.cardViewScreenWidth | default false }}
- {{ $groupByYear := .Params.groupByYear | default ($.Site.Params.list.groupByYear | default false) }}
+ {{ $cardView := .Params.cardView | default (.Site.Params.term.cardView | default false) }}
+ {{ $cardViewScreenWidth := .Site.Params.term.cardViewScreenWidth | default false }}
+ {{ $groupByYear := .Params.groupByYear | default ($.Site.Params.term.groupByYear | default false) }}
{{ if not $cardView }}
@@ -121,7 +121,7 @@
{{ else }}
- {{ i18n "list.no_articles" | emojify }}
+ {{ i18n "term.no_articles" | emojify }}
{{ end }}