diff --git a/docs/community/topics/kitchen-sink.md b/docs/community/topics/kitchen-sink.md
index 2a4b2b410a..951fde7e9b 100644
--- a/docs/community/topics/kitchen-sink.md
+++ b/docs/community/topics/kitchen-sink.md
@@ -6,3 +6,9 @@ The source files for these pages are stored [in the `sphinx-themes.org` reposito
To update the kitchen sink source files, there is a helper Python script that will loop through the known kitchen sink files and copy over the latest text.
To use it, run the following from the root of the repository:
+
+- [issue closed](https://github.com/pydata/pydata-sphinx-theme/issues/1882)
+- [issue open](https://github.com/pydata/pydata-sphinx-theme/issues/1895)
+- [pull open](https://github.com/pydata/pydata-sphinx-theme/issues/1888)
+- [pull merged](https://github.com/pydata/pydata-sphinx-theme/issues/1893)
+- [pull closed](https://github.com/pydata/pydata-sphinx-theme/issues/1853)
diff --git a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html
index 39e1c7a6fa..542a406f56 100644
--- a/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html
+++ b/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html
@@ -20,12 +20,85 @@
-
+ // Regular expression to match the desired GitHub issue URL pattern
+ const regex = /^https:\/\/github\.com\/([^\/]+)\/([^\/]+)\/(pulls|issues)\/(\d+)$/;
+
+ // Filter tags that match the pattern
+ const githubIssueLinks = Array.prototype.filter.call(anchorTags, function(element) {
+ return regex.test(element.href);
+ });
+
+ githubIssueLinks.map(async (atag) => {
+ const match = atag.href.match(regex);
+ if (match) {
+ const [fullUrl, username, repo,pr, issueNumber] = match;
+ console.log("[PST] Username:", username);
+ console.log("[PST] Repository:", repo);
+ console.log("[PST] Issue Number:", issueNumber);
+ const res = await octokit.request(`GET /repos/${username}/${repo}/issues/${issueNumber}`, {
+ //owner: 'OWNER',
+ //repo: 'REPO',
+ //issue_number: 'ISSUE_NUMBER',
+ headers: {
+ 'X-GitHub-Api-Version': '2022-11-28'
+ }
+ });
+ let pull_issue = 'unset';
+ let state = 'unset';
+ if (res.data.pull_request !== undefined){
+ pull_issue = 'pull';
+ state = res.data.pull_request.merged_at != null ? 'merged': res.data.state ;
+ } else {
+ pull_issue = 'issue';
+ state = res.data.state;
+ }
+ console.log(pull_issue, state);
+ atag.classList.add(`pst-gh-${pull_issue}`)
+ atag.classList.add(`pst-gh-${state}`)
+ }
+ })
+
+
+
{{ _webpack.head_pre_assets() }}
{{- css() }}
{{ _webpack.head_js_preload() }}