show commit link in footer
This commit is contained in:
parent
cedde935f2
commit
975d7df714
2
site.nix
2
site.nix
|
@ -13,7 +13,7 @@ let
|
||||||
|
|
||||||
xesite = naersk.buildPackage {
|
xesite = naersk.buildPackage {
|
||||||
inherit src;
|
inherit src;
|
||||||
buildInputs = [ pkg-config openssl ];
|
buildInputs = [ pkg-config openssl git ];
|
||||||
remapPathPrefix = true;
|
remapPathPrefix = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
use ructe::{Result, Ructe};
|
use ructe::{Result, Ructe};
|
||||||
|
use std::process::Command;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
Ructe::from_env()?.compile_templates("templates")
|
Ructe::from_env()?.compile_templates("templates")?;
|
||||||
|
|
||||||
|
let output = Command::new("git").args(&["rev-parse", "HEAD"]).output().unwrap();
|
||||||
|
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||||
|
println!("cargo:rustc-env=GITHUB_SHA={}", git_hash);
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<blockquote>Copyright 2020 Christine Dodrill. Any and all opinions listed here are my own and not representative of my employers; future, past and present.</blockquote>
|
<blockquote>Copyright 2020 Christine Dodrill. Any and all opinions listed here are my own and not representative of my employers; future, past and present.</blockquote>
|
||||||
<!--<p>Like what you see? Donate on <a href="https://www.patreon.com/cadey">Patreon</a> like <a href="/patrons">these awesome people</a>!</p>-->
|
<!--<p>Like what you see? Donate on <a href="https://www.patreon.com/cadey">Patreon</a> like <a href="/patrons">these awesome people</a>!</p>-->
|
||||||
<p>Looking for someone for your team? Take a look <a href="/signalboost">here</a>.</p>
|
<p>Looking for someone for your team? Take a look <a href="/signalboost">here</a>.</p>
|
||||||
<p>Served by @APP running commit @env!("GITHUB_SHA"), see <a href="https://github.com/Xe/site">source code here</a>.</p>
|
<p>Served by @APP running commit <a href="https://github.com/Xe/site/commit/@env!("GITHUB_SHA")">@env!("GITHUB_SHA")</a>, see <a href="https://github.com/Xe/site">source code here</a>.</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue