mirror of https://github.com/jpanther/congo.git
💄 Add rounded border to images
parent
e465eaeb33
commit
053a03d429
|
@ -177,7 +177,9 @@ If you have provided an author image or site logo, simply move these assets from
|
|||
|
||||
## Step 5: Check content
|
||||
|
||||
The behavior of the `figure` shortcode is different in version 2. If you are using `figure` in your content, you may need to adjust the parameters you are providing. Consult the shortcode docs to learn more about supported parameters.
|
||||
The behavior of the `figure` shortcode is different in version 2. If you are using `figure` in your content and have advanced use cases, you may need to adjust the parameters you are providing.
|
||||
|
||||
Consult the [shortcode docs]({{< ref "docs/shortcodes#figure" >}}) to learn more about supported parameters.
|
||||
|
||||
## Step 6: Rebuild
|
||||
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
{{ with $.Page.Resources.GetMatch (.Destination) }}
|
||||
<figure>
|
||||
<img
|
||||
class="my-0"
|
||||
class="my-0 rounded-md"
|
||||
srcset="
|
||||
{{ (.Resize "320x").RelPermalink }} 320w,
|
||||
{{ (.Resize "635x").RelPermalink }} 635w,
|
||||
{{ (.Resize "330x").RelPermalink }} 330w,
|
||||
{{ (.Resize "660x").RelPermalink }} 660w,
|
||||
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
||||
{{ (.Resize "1270x").RelPermalink }} 2x"
|
||||
src="{{ (.Resize "635x").RelPermalink }}"
|
||||
{{ (.Resize "1320x").RelPermalink }} 2x"
|
||||
src="{{ (.Resize "660x").RelPermalink }}"
|
||||
alt="{{ $altText }}"
|
||||
/>
|
||||
<figcaption>{{ $caption | markdownify }}</figcaption>
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
<figure {{ with $class }}class="{{ . }}"{{ end }}>
|
||||
{{ with $href }}<a href="{{ . }}">{{ end }}
|
||||
<img
|
||||
class="my-0"
|
||||
class="my-0 rounded-md"
|
||||
srcset="
|
||||
{{ (.Resize "320x").RelPermalink }} 320w,
|
||||
{{ (.Resize "635x").RelPermalink }} 635w,
|
||||
{{ (.Resize "330x").RelPermalink }} 330w,
|
||||
{{ (.Resize "660x").RelPermalink }} 660w,
|
||||
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
||||
{{ (.Resize "1270x").RelPermalink }} 2x"
|
||||
src="{{ (.Resize "635x").RelPermalink }}"
|
||||
{{ (.Resize "1320x").RelPermalink }} 2x"
|
||||
src="{{ (.Resize "660x").RelPermalink }}"
|
||||
alt="{{ $altText }}"
|
||||
/>
|
||||
{{ if $href }}</a>{{ end }}
|
||||
|
|
Loading…
Reference in New Issue