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

Support building the site with nix build #54

Open
Samasaur1 opened this issue Dec 6, 2024 · 3 comments
Open

Support building the site with nix build #54

Samasaur1 opened this issue Dec 6, 2024 · 3 comments

Comments

@Samasaur1
Copy link
Owner

This would make CI simpler

@Samasaur1
Copy link
Owner Author

I think this might cause issues with the Git plugin though

@Samasaur1
Copy link
Owner Author

There should be some way to inject self.rev and self.shortRev though

@Samasaur1
Copy link
Owner Author

Here's where the git hash is done:

{% if jekyll.environment == "production" %}
Built off of <a href="{{ "https://github.com/Samasaur1/samasaur1.github.io/tree/" | append: site.github.build_revision }}">commit <span class="text-monospace">{{ site.github.build_revision | truncate: 7, "" }}</span></a>
{% else %}
Local build (last commit <span class="text-monospace">{{ site.data['hash'] }}</span>)
{% endif %}

Easiest way to deal with this is probably to just remove that git plugin (or conditionally remove it for Nix builds) and then inject the hash into site.data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant