fix typos, make markdownlint happy
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
This commit is contained in:
parent
a20a2ff6cd
commit
6264a749df
7 changed files with 16 additions and 11 deletions
|
|
@ -7,18 +7,21 @@ header_menu: true
|
|||
This demonstates localized variants `about-me.de.md` placed along the primary language content, such as `content/en`. Both localisation approaches (separate folder, suffixes in the same folder) can be used and mixed.
|
||||
|
||||
#### Local content
|
||||
When localised page variants are placed along, images of other languages can't be used directly. You would need to use `.de`-suffixed copy of the image: ``
|
||||
|
||||
When localised page variants are placed along, images of other languages can't be used directly. You would need to use `.de`-suffixed copy of the image: ``
|
||||
Consider using assets instead.
|
||||
|
||||
Images from local content location can't be pipeline-processed.
|
||||
Images from local content location can't be pipeline-processed.
|
||||
|
||||
#### Static
|
||||
|
||||
Alternatively, images can be injected from `static/images`:
|
||||

|
||||
Note the leading `/` is required in this case.
|
||||
Images from static location can't be pipeline-processed and are always copied when publishing the site, even if not linked from any page.
|
||||
|
||||
#### Assets
|
||||
|
||||
Latest Hugo version supports injection from `assets` via natural Markdown notation, which empowers this approach for injecting images since pipeline processing (resizing etc) can be used. However, It only worked for me with the local test deployment, there were issues while deploying previews Netlify. Possible workaround would be to use custom shortcode to "touch" the image via [Resources.GetMatch](https://gohugo.io/functions/resources/getmatch/). I hope this gets fixed someday.
|
||||
|
||||

|
||||
|
|
@ -26,4 +29,4 @@ Historically, Linking image from `assets` folder worked only via Hugo-specific s
|
|||
|
||||
Note that using images form assets folder is the only way to apply pipeline processing, such as resizing, when building the site. Fore more details, read about [asset vs static difference](https://discourse.gohugo.io/t/difference-between-asset-and-static-folder/41203)
|
||||
|
||||
Assets are only published if linked from a content page.
|
||||
Assets are only published if linked from a content page.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Neither embedded figure shortcode, nor Markdown hook were able to render image f
|
|||
You would have to .Resouces.GetMatch via custom shortcode.
|
||||

|
||||
-->
|
||||

|
||||

|
||||
See DE language for more examples of image management. There are multiple approaches.
|
||||
|
||||
##### Professional Experience
|
||||
|
|
@ -18,4 +18,4 @@ A lot, but let us get into the details with some lorem ipsum. Lorem ipsum dolor
|
|||
|
||||
----
|
||||
|
||||
In ultrices, est at lobortis pretium, magna quam mollis neque, id viverra odio est sit amet lorem. Mauris efficitur nunc vel lectus porttitor, sit amet sodales quam eleifend. Duis et felis ut mauris dignissim efficitur. Aliquam non sem eros. Integer elit ante, bibendum id hendrerit vitae, vestibulum eget risus. Nunc efficitur nisl in iaculis vestibulum.
|
||||
In ultrices, est at lobortis pretium, magna quam mollis neque, id viverra odio est sit amet lorem. Mauris efficitur nunc vel lectus porttitor, sit amet sodales quam eleifend. Duis et felis ut mauris dignissim efficitur. Aliquam non sem eros. Integer elit ante, bibendum id hendrerit vitae, vestibulum eget risus. Nunc efficitur nisl in iaculis vestibulum.
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ If the parameter `detailed_page_homepage_content` is set to false neither this s
|
|||
|
||||
If `detailed_page_homepage_content` is set to true or is missing at all, the link, navigation menu and the content will be rendered. In that case this section might contain less or just summarized information compared to the single page referenced by the parameter `detailed_page_path`.
|
||||
|
||||
Want to see more about the details? See [dedicated page](legal) with more details or hit the button 'Legal' on the cover page.
|
||||
Want to see more about the details? See [dedicated page](legal) with more details or hit the button 'Legal' on the cover page.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue