aaranxu / adidoks

AdiDoks is a mordern documentation theme, which is a port of the Hugo theme Doks for Zola.

Home Page:https://adidoks.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image out of box

fanux opened this issue · comments

commented

image

How to fix this issue

Add a width in the theme's sass.

Here's a simple fix:

  • Add a width variable
  • Use the width variable in global setting width to img

This will all be done within the themes folder in your project root.

In the _variables.scss add the following somewhere:

// Images

$img-width: 100%;

In the _global.scss add the following somewhere:

img {
  width: $img-width;
}

Hope this helps. Though, keep in mind, it will apply to all img across the entire site. So you might wish to be more specific on what this width is being applied to.