Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop mycplus.com iframe from Shortcode page #1475

Merged
merged 1 commit into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 >}}
Copy link
Collaborator

@deining deining Mar 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that www.mycplus.com needs to be replaced or removed.

What about replacing it with http://helloworldcollection.de:

{{< /tab >}}
{{< tab header="Reference" right=true text=true >}}
{{< iframe src="http://helloworldcollection.de" >}}
{{< /tab >}}

This site loads ways faster.

{{< 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