Comments (1)
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.
from adidoks.
Related Issues (20)
- switch color theme is broken HOT 3
- Theme overrides zola syntax theme background on dark mode
- Jost font displays incorrectly on macOS HOT 2
- Support RSS Feed
- Support to view blog posts by Date/Tag
- How to create external link using header
- feature request
- Fails with zola deploy action: variable not found in context HOT 1
- Navigation needs updating for Zola 0.16 & later HOT 1
- html image tag with the correct image path HOT 2
- How to remove some page from menu?
- Is there currently a way to add collapsing menus HOT 1
- Wrong keycode for focusing the search (I can prepare a PR)
- Skip homepage/landing page and land directly into a documentation page HOT 1
- What's the right way to customize font?
- How to add custom variables in theme? HOT 2
- How can we implement Glossary reference in page
- Related content/pages
- Display images
- What is the correct way to add JS library?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adidoks.