DPDK website maintenance
 help / color / Atom feed
* [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, back to index

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

DPDK website maintenance

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/web/0 web/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 web web/ http://inbox.dpdk.org/web \
		web@dpdk.org
	public-inbox-index web


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.web


AGPL code for this site: git clone https://public-inbox.org/ public-inbox