Skip to content

Commit

Permalink
Removed web mentions. I give up.
Browse files Browse the repository at this point in the history
  • Loading branch information
steinbring committed Oct 18, 2024
1 parent 27436b5 commit fcd4c2e
Show file tree
Hide file tree
Showing 6 changed files with 1,474 additions and 89 deletions.
6 changes: 2 additions & 4 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
<meta property="og:url" content="https://jws.pictures">
<meta property="twitter:title" content="JWS Pictures | The Photography of Joe Steinbring">
<meta property="twitter:description" content="Check out Joe Steinbring's photography portfolio.">
<link rel="webmention" href="https://webmention.io/jws.pictures/webmention" />
<link rel="pingback" href="https://webmention.io/jws.pictures/xmlrpc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://github.com/steinbring" rel="me">
<base href="/" />
<title>JWS Pictures | The Photography of Joe Steinbring</title>
<script type="module" crossorigin src="/assets/index-rzyEVrDs.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BfjwvsVt.css">
<script type="module" crossorigin src="/assets/index-DA_kdCgN.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSxq4Jr8.css">
</head>
<body>
<div id="app"></div>
Expand Down
1,463 changes: 1,463 additions & 0 deletions assets/index-DA_kdCgN.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/index-DSxq4Jr8.css

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
<meta property="og:url" content="https://jws.pictures">
<meta property="twitter:title" content="JWS Pictures | The Photography of Joe Steinbring">
<meta property="twitter:description" content="Check out Joe Steinbring's photography portfolio.">
<link rel="webmention" href="https://webmention.io/jws.pictures/webmention" />
<link rel="pingback" href="https://webmention.io/jws.pictures/xmlrpc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://github.com/steinbring" rel="me">
<base href="/" />
<title>JWS Pictures | The Photography of Joe Steinbring</title>
<script type="module" crossorigin src="/assets/index-rzyEVrDs.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BfjwvsVt.css">
<script type="module" crossorigin src="/assets/index-DA_kdCgN.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSxq4Jr8.css">
</head>
<body>
<div id="app"></div>
Expand Down
79 changes: 0 additions & 79 deletions src/components/PhotoPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,6 @@
<p v-else>No GPS data available for this photo.</p>
</div>

<!-- Web Mentions Section -->
<div class="webmentions">
<h3>Web Mentions</h3>
<div v-if="webMentions.length">
<ul>
<li v-for="mention in webMentions" :key="mention.url">
<div class="mention">
<img
v-if="mention.author.photo"
:src="mention.author.photo"
alt=""
class="mention-author-photo"
/>
<div>
<a :href="mention.author.url" target="_blank">{{ mention.author.name }}</a>
<p v-if="mention.content && mention.content.text">
{{ mention.content.text }}
</p>
</div>
</div>
</li>
</ul>
</div>
<div v-else>
<p>No web mentions yet.</p>
</div>
</div>

<!-- Rest of your content -->
</div>
</template>
Expand Down Expand Up @@ -105,7 +77,6 @@ export default {
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
latitude: null,
longitude: null,
webMentions: [],
};
},
computed: {
Expand All @@ -120,7 +91,6 @@ export default {
},
mounted() {
this.fetchPhotoData();
this.fetchWebMentions();
},
methods: {
fetchPhotoData() {
Expand Down Expand Up @@ -194,19 +164,6 @@ export default {
this.longitude = null;
}
},
fetchWebMentions() {
const pageUrl = window.location.href;
const apiUrl = `https://webmention.io/api/mentions.jf2?target=${encodeURIComponent(pageUrl)}`;
fetch(apiUrl)
.then((response) => response.json())
.then((data) => {
this.webMentions = data.children || [];
})
.catch((error) => {
console.error('Error fetching web mentions:', error);
});
},
goBackToYear() {
this.$router.push(`/${this.year}`);
},
Expand Down Expand Up @@ -272,40 +229,4 @@ export default {
height: 50vh;
}
}
/* Styles for the web mentions */
.webmentions {
margin-top: 1rem;
}
.webmentions h3 {
margin-bottom: 0.5rem;
}
.webmentions ul {
list-style: none;
padding: 0;
}
.webmentions .mention {
display: flex;
align-items: flex-start;
margin-bottom: 1rem;
}
.mention-author-photo {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 0.5rem;
}
.mention a {
font-weight: bold;
margin-right: 0.5rem;
}
.mention p {
margin: 0;
}
</style>
2 changes: 0 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<meta property="og:url" content="https://jws.pictures">
<meta property="twitter:title" content="JWS Pictures | The Photography of Joe Steinbring">
<meta property="twitter:description" content="Check out Joe Steinbring's photography portfolio.">
<link rel="webmention" href="https://webmention.io/jws.pictures/webmention" />
<link rel="pingback" href="https://webmention.io/jws.pictures/xmlrpc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://github.com/steinbring" rel="me">
<base href="/" />
Expand Down

0 comments on commit fcd4c2e

Please sign in to comment.