* [dpdk-web] [PATCH] use shortcode parameter to center buttons
@ 2018-11-21 0:05 Thomas Monjalon
2018-11-22 13:55 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Monjalon @ 2018-11-21 0:05 UTC (permalink / raw)
To: web
The shortcode "button" has a parameter "align":
https://docdock.netlify.com/shortcodes/button/
It can replace the HTML tag "center".
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
content/_index.md | 3 +--
content/lab/_index.md | 4 +---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/content/_index.md b/content/_index.md
index 0b2e2d4..b552623 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -21,8 +21,7 @@ running on a wide variety of CPU architectures.
- Runs mostly in Linux userland
- DPDK is an Open Source BSD licensed project
-<center>{{< button href="/download" >}} Download Now {{< /button >}}
-</center>
+{{< button align="center" href="/download" >}} Download Now {{< /button >}}
##### Architecture
----
diff --git a/content/lab/_index.md b/content/lab/_index.md
index 2841b14..913c86f 100644
--- a/content/lab/_index.md
+++ b/content/lab/_index.md
@@ -3,9 +3,7 @@ title = "Community Lab"
weight = "8"
+++
-<center>
- {{< button href="https://lab.dpdk.org" >}} Dashboard {{< /button >}}
-</center>
+{{< button align="center" href="https://lab.dpdk.org" >}} Dashboard {{< /button >}}
## What it's for
----
--
2.19.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-web] [PATCH] use shortcode parameter to center buttons
2018-11-21 0:05 [dpdk-web] [PATCH] use shortcode parameter to center buttons Thomas Monjalon
@ 2018-11-22 13:55 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-11-22 13:55 UTC (permalink / raw)
To: web
21/11/2018 01:05, Thomas Monjalon:
> The shortcode "button" has a parameter "align":
> https://docdock.netlify.com/shortcodes/button/
> It can replace the HTML tag "center".
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-22 13:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-21 0:05 [dpdk-web] [PATCH] use shortcode parameter to center buttons Thomas Monjalon
2018-11-22 13:55 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).