Commit d2ca0067 authored by Kaushal Modi's avatar Kaushal Modi

Add somehow not-yet-committed table shortcode test post

parent 31a8da51
......@@ -4,6 +4,58 @@
#+MACRO: hugoissue Hugo Issue #[[https://github.com/gohugoio/hugo/issues/$1][$1]]
* Features
:PROPERTIES:
:EXPORT_HUGO_SECTION: features
:END:
** Internal shortcode for table
:PROPERTIES:
:EXPORT_FILE_NAME: internal-shortcode-table
:END:
{{% table %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
{{% table style="width:50%" %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
#+HTML: <style>
#+HTML: .toto { border-collapse: collapse; }
#+HTML: .toto table, .toto th, .toto td { border: 1px solid black; padding: 15px; text-align: left; }
#+HTML: </style>
{{% table class="toto" %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
{{% table class="toto" style="width:50%; border: 1px solid green" %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
#+HTML: <style>.zuzu { width:50%; } .zuzu th, .zuzu td { padding: 30px; text-align: right; }</style>
{{% table "zuzu" %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
{{% table "lala" "border:3px dashed red;" %}}
| a | b |
|---+---|
| c | d |
{{% /table %}}
* Bugs
:PROPERTIES:
:EXPORT_HUGO_SECTION: bugs
......
+++
title = "Internal shortcode for table"
author = ["Kaushal Modi"]
draft = false
+++
{{% table %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
{{% table style="width:50%" %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
<style>
.toto { border-collapse: collapse; }
.toto table, .toto th, .toto td { border: 1px solid black; padding: 15px; text-align: left; }
</style>
{{% table class="toto" %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
{{% table class="toto" style="width:50%; border: 1px solid green" %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
<style>.zuzu { width:50%; } .zuzu th, .zuzu td { padding: 30px; text-align: right; }</style>
{{% table "zuzu" %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
{{% table "lala" "border:3px dashed red;" %}}
| a | b |
|---|---|
| c | d |
{{% /table %}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment