diff options
author | EuAndreh <eu@euandre.org> | 2019-06-02 10:15:13 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-02 10:19:00 -0300 |
commit | 31f1d1573fa6af5c40d90a1ab603ccd9e36aa800 (patch) | |
tree | 3d704bcc4bd595bd500af6be0543d89587256f23 /README.org | |
parent | Use default generated options in env.sh for Bash files (diff) | |
download | dotfiles-31f1d1573fa6af5c40d90a1ab603ccd9e36aa800.tar.gz dotfiles-31f1d1573fa6af5c40d90a1ab603ccd9e36aa800.tar.xz |
Use explicit HTML for badge in README.org
The old link did work, but the =--self-contained= flag from pandoc would
download the badge at build time and embed it as base64 data.
I tried adding the =data-external="1"= attribute to the image, like:
#+ATTR_HTML: :data-external 1
[[https://builds.sr.ht/~euandreh/dotfiles][file:https://builds.sr.ht/~euandreh/dotfiles.svg]]
However this did *not* work for this link format. If I downloaded the image and
referenced it instead, pandoc would keep the link:
#+ATTR_HTML: :data-external 1
[[https://builds.sr.ht/~euandreh/dotfiles][./dotfiles.svg]]
The hand-written HTML is to cover both cases:
1. do not embed the image at build time;
2. show the SVG image from the original source instead of the local copy.
Diffstat (limited to '')
-rw-r--r-- | README.org | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,4 +1,11 @@ * dotfiles - EuAndreh's personal repository +#+BEGIN_HTML +<p> + <a href="https://builds.sr.ht/~euandreh/dotfiles"> + <img data-external="1" src="https://builds.sr.ht/~euandreh/dotfiles.svg" /> + </a> +</p> +#+END_HTML ** Instructions - setting up a new NixOS installation *** 1. Prepare the USB stick Get the link for the [[https://nixos.org/nixos/download.html][NixOS ISO image]] and burn it to the USB stick: |