Skip to content

Commit

Permalink
Allow using full resolution images
Browse files Browse the repository at this point in the history
  • Loading branch information
oleeskild committed Jan 18, 2024
1 parent 2c4610a commit cd1e088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ module.exports = function (eleventyConfig) {


eleventyConfig.addTransform("picture", function (str) {
if(process.env.USE_FULL_RESOLUTION_IMAGES === "true"){
return str;
}
const parsed = parse(str);
for (const imageTag of parsed.querySelectorAll(".cm-s-obsidian img")) {
const src = imageTag.getAttribute("src");
Expand Down
3 changes: 0 additions & 3 deletions src/site/_data/meta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
require("dotenv").config();
const axios = require("axios");
const fs = require("fs");
const crypto = require("crypto");
const { globSync } = require("glob");

module.exports = async (data) => {
Expand Down

0 comments on commit cd1e088

Please sign in to comment.