DPDK website maintenance
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: web@dpdk.org
Subject: [dpdk-web] [PATCH] use shortcode parameter to center buttons
Date: Wed, 21 Nov 2018 01:05:30 +0100	[thread overview]
Message-ID: <20181121000530.24424-1-thomas@monjalon.net> (raw)

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

             reply	other threads:[~2018-11-21  0:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-21  0:05 Thomas Monjalon [this message]
2018-11-22 13:55 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181121000530.24424-1-thomas@monjalon.net \
    --to=thomas@monjalon.net \
    --cc=web@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).