Skip to content

Commit

Permalink
debug and images disallowed
Browse files Browse the repository at this point in the history
  • Loading branch information
alpozkanm committed Nov 7, 2023
1 parent 4b08b82 commit d2bd6a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions app/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
User-agent: *
Allow: /

User-agent: Googlebot-Image
Disallow: /_next/image

# Host
Host: https://www.alpozkanm.info

Expand Down
4 changes: 2 additions & 2 deletions components/posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function Posts({ posts }: { posts: Content[] }) {
<p className="mt-3 hidden sm:block">{post.description}</p>
</div>
{post.image && (
<div className="relative order-1 h-[112px] w-[112px] md:order-2">
<Image fill={true} src={post.image} alt={post.title} />
<div className="relative order-1 h-[112px] w-[112px] md:order-2 overflow-hidden">
<Image src={post.image} alt={post.title} sizes="112px" fill style={{ objectFit: 'contain', objectPosition: 'top',}} />
</div>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Projects({ projects }: { projects: Content[] }) {
</div>
{project.image && (
<div className="relative order-1 h-[112px] w-[112px] md:order-2">
<Image fill={true} src={project.image} alt={project.title} />
<Image src={project.image} alt={project.title} sizes="112px" fill style={{ objectFit: 'contain', objectPosition: 'top',}}/>
</div>
)}
</div>
Expand Down
6 changes: 1 addition & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,5 @@ module.exports = {
}),
},
},
plugins: [
require("@tailwindcss/forms"),
require("tailwindcss-debug-screens"),
require("@tailwindcss/typography"),
],
plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography")],
};

0 comments on commit d2bd6a4

Please sign in to comment.