mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Make the blog items openable on right click action
This commit is contained in:
@@ -102,10 +102,13 @@ const Blog = ({ loading }) => {
|
|||||||
return (
|
return (
|
||||||
articles &&
|
articles &&
|
||||||
articles.slice(0, config.blog.limit).map((article, index) => (
|
articles.slice(0, config.blog.limit).map((article, index) => (
|
||||||
<div
|
<a
|
||||||
className="card shadow-lg compact bg-base-100 cursor-pointer"
|
className="card shadow-lg compact bg-base-100 cursor-pointer"
|
||||||
key={index}
|
key={index}
|
||||||
onClick={() => {
|
href={article.link}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (config.googleAnalytics?.id) {
|
if (config.googleAnalytics?.id) {
|
||||||
ga.event({
|
ga.event({
|
||||||
@@ -164,7 +167,7 @@ const Blog = ({ loading }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
))
|
))
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user