Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickable categories not working on github pages - only in local quarto render #12187

Open
kubu4 opened this issue Mar 1, 2025 · 1 comment
Labels
support a request for support

Comments

@kubu4
Copy link

kubu4 commented Mar 1, 2025

Bug description

The Categories on my Quarto website (via GitHub Pages) are not clickable. Additionally, the categories in an individual post are clickable, but they simply return the main page of the website and do not limit the posts to those with the corresponding Category.

However, the locally rendered version of the website (e.g. opening index.html in a browser) functions perfectly.

Inspecting the browser console on the deployed website show these errors:

Failed to load resource: the server responded with a status of 404 ()
quarto-listing.js:1

Failed to load resource: the server responded with a status of 404 ()
list.min.js:1 
            
            
Failed to load resource: the server responded with a status of 404 ()
sams-notebook/:88 Uncaught ReferenceError: List is not defined
    at HTMLDocument.<anonymous> (sams-notebook/:88:56)

Steps to reproduce

GitHub repo is here: https://github.com/RobertsLab/sams-notebook

I haven't been able to figure out how to make a simple reproducible example for this issue.

I see that there was a similar issue from a couple of years ago, but that was a Quarto book. Not sure if these two issues could be related.

Actual behavior

No response

Expected behavior

No response

Your environment

  • OS:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble

Quarto check output

Quarto 1.6.42
[✓] Checking environment information...
      Quarto cache location: /home/sam/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.42
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.8 (Conda)
      Path: /home/sam/programs/miniforge3/bin/python
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with conda install jupyter

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /usr/lib/R
      LibPaths:
        - /home/sam/R/x86_64-pc-linux-gnu-library/4.4
        - /usr/local/lib/R/site-library
        - /usr/lib/R/site-library
        - /usr/lib/R/library
      knitr: 1.49
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK
@kubu4 kubu4 added the bug Something isn't working label Mar 1, 2025
@mcanouil
Copy link
Collaborator

mcanouil commented Mar 1, 2025

Render locally your website and ensure you have everything properly committed, especially the _freeze directory.

Your .gitignore file is very generic which is preventing you to commit the JavaScript script from Quarto to be committed. The error is quite explicit about this, i.e., the JavaScript files are all missing.

@mcanouil mcanouil added support a request for support and removed bug Something isn't working labels Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support a request for support
Projects
None yet
Development

No branches or pull requests

2 participants