patch pelican to add rel="me"
attribute to social links
This commit is contained in:
parent
66c071e279
commit
c4c5bfdb8a
|
@ -9,7 +9,11 @@
|
|||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
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 {
|
||||
name = "website";
|
||||
src = ./.;
|
||||
|
|
13
pelican.patch
Normal file
13
pelican.patch
Normal 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 -->
|
Loading…
Reference in a new issue