Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advice for adding figures to project pages? #729

Open
bbockelm opened this issue Apr 29, 2021 · 2 comments
Open

Advice for adding figures to project pages? #729

bbockelm opened this issue Apr 29, 2021 · 2 comments
Assignees

Comments

@bbockelm
Copy link
Contributor

I'd like to spruce up the presentation of a few project pages. One area where I could use particular help is best practice for embedding figures. Example:

https://iris-hep.org/projects/tpc.html

These are currently somewhat-ugly blobs.

What's the best way to tackle these?

@henryiii
Copy link
Collaborator

henryiii commented Apr 29, 2021

This is not styled very well currently for non-news pages, but this would be the way to do it (what you have now is currently nicer):

{% include figure.html
   file="/assets/images/tpc-over-http.png"
   alt="TPC rates from testing"
   class="center"
   img-style="width:100%;"
   caption="<h5>How fast is HTTP?</h5>The above graph shows data movement rates (up to 24Gbps) for a single host, achieved during
   standalone tests; a typical LHC site will load-balance across multiple hosts in order to saturate
   available network links.  With a sufficiently performant HTTP server, we have
   observed the protocol can go as quickly as the underlying network infrastructure."
%}

@henryiii
Copy link
Collaborator

This is now supported with #896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants