Skip to content

Commit

Permalink
Drop mycplus.com iframe from Shortcode page (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed May 4, 2023
1 parent 29e1dec commit dbec296
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions userguide/content/en/docs/adding-content/shortcodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ For announcement of latest features etc.
### blocks/feature

```go-html-template
{{%/* blocks/feature icon="fa-brands fa-github" title="Contributions welcome!" url="https://github.com/gohugoio/hugo" */%}}
We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions workflow on **GitHub**. New users are always welcome!
{{%/* /blocks/feature */%}}
```

| Parameter | Default | Description |
Expand All @@ -139,7 +137,6 @@ We do a [Pull Request](https://github.com/gohugoio/hugo/pulls) contributions wor
The **blocks/link-down** shortcode creates a navigation link down to the next section. It's meant to be used in combination with the other blocks shortcodes.

```go-html-template
<div class="mx-auto mt-5">
{{</* blocks/link-down color="info" */>}}
</div>
Expand Down Expand Up @@ -179,7 +176,6 @@ The **pageinfo** shortcode creates a text box that you can use to add banner inf
{{%/* pageinfo color="primary" */%}}
This is placeholder content.
{{%/* /pageinfo */%}}
```

Renders to:
Expand All @@ -197,7 +193,6 @@ This is placeholder content

The **imgproc** shortcode finds an image in the current [Page Bundle](/docs/adding-content/content/#page-bundles) and scales it given a set of processing instructions.


```go-html-template
{{</* imgproc spruce Fill "400x450" */>}}
Norway Spruce <i>Picea abies</i> shoot with foliage buds.
Expand Down Expand Up @@ -388,9 +383,6 @@ object HelloWorld extends App {
println("Hello world!")
}
{{< /tab >}}
{{< tab header="Reference" right=true text=true >}}
{{< iframe src="https://www.mycplus.com/featured-articles/hello-world-programs-in-300-programming-languages" >}}
{{< /tab >}}
{{< /tabpane >}}

The Docsy template provides two shortcodes `tabpane` and `tab` that let you easily create tabbed panes. To see how to use them, have a look at the following code block, which renders to a right aligned pane with one disabled and three active tabs:
Expand Down Expand Up @@ -606,7 +598,6 @@ Check system compatibility before proceeding.
`sudo sh install.sh`
1. Test that your installation was successfully completed.
```

You can import this section into another document:
Expand All @@ -615,7 +606,6 @@ You can import this section into another document:
The following section explains how to install the database:
{{%/* readfile "installation.md" */%}}
```

This is rendered as if the instructions were in the parent document. Hugo
Expand Down Expand Up @@ -650,7 +640,6 @@ To create a new pipeline, follow the next steps:
{{</* readfile file="includes/config.yaml" code="true" lang="yaml" */>}}
1. Apply the file to your cluster `kubectl apply config.yaml`
```

This code automatically reads the content of `includes/config.yaml` and inserts it
Expand All @@ -660,11 +649,11 @@ into the document. The rendered text looks like this:

To create a new pipeline, follow the next steps:

1. Create a configuration file `config.yaml`:
1. Create a configuration file `config.yaml`:

{{< readfile file="includes/config.yaml" code="true" lang="yaml" >}}

1. Apply the file to your cluster `kubectl apply config.yaml`
1. Apply the file to your cluster `kubectl apply config.yaml`

---

Expand Down

0 comments on commit dbec296

Please sign in to comment.