patch pelican to add rel="me" attribute to social links

This commit is contained in:
Paul-Nicolas Madelaine 2023-09-18 17:41:52 +02:00
parent 66c071e279
commit c4c5bfdb8a
2 changed files with 18 additions and 1 deletions

View file

@ -9,7 +9,11 @@
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
python = pkgs.python3.withPackages (ps: with ps; [ markdown pelican ]); python = pkgs.python3.withPackages (ps:
with ps; [
markdown
(pelican.overrideAttrs (_: _: { patches = [ ./pelican.patch ]; }))
]);
website = pkgs.stdenv.mkDerivation { website = pkgs.stdenv.mkDerivation {
name = "website"; name = "website";
src = ./.; src = ./.;

13
pelican.patch Normal file
View file

@ -0,0 +1,13 @@
diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html
index 2b302899..07e28e2d 100644
--- a/pelican/themes/notmyidea/templates/base.html
+++ b/pelican/themes/notmyidea/templates/base.html
@@ -62,7 +62,7 @@
{% endif %}
{% for name, link in SOCIAL %}
- <li><a href="{{ link }}">{{ name }}</a></li>
+ <li><a rel="me" href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div><!-- /.social -->