[dpdk-web] [PATCH] use shortcode parameter to center buttons
Thomas Monjalon
thomas at monjalon.net
Wed Nov 21 01:05:30 CET 2018
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 at 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
More information about the web
mailing list