I would like to add my package's hex logo to the title line of its package vignette.
I am mostly clueless about CSS but I thought this could work:
---
title: "x"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{x}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{css}
h1::after {
content: "";
height: 3063px;
width: 3550px;
float: right;
background-image: url("logo.png");
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
}
It leaves a space but the logo does not show up.
Can anybody spot what I am doing wrong or does anybody have a snippet for adding a graphic to the title line of a vignette?