Skip to content

Commit b375d3e

Browse files
update the url timestamp query
1 parent f986f3e commit b375d3e

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

current_link.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://www.nibbles.dev/p/96|96
1+
https://www.nibbles.dev/p/97|97

index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>Nibble #96</title>
4+
<title>Nibble #97</title>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width,initial-scale=1" />
7-
<meta name="title" content="Nibble #96" />
7+
<meta name="title" content="Nibble #97" />
88
<meta
99
name="description"
1010
content="Nibble is a Tech Newsletter with quick bits to stay updated on tech, life and memes"
@@ -18,10 +18,10 @@
1818
<!-- Open Graph / Facebook -->
1919
<meta property="og:type" content="website" />
2020
<meta property="og:url" content="https://latest.nibbles.dev" />
21-
<meta property="og:title" content="Nibble #96" />
21+
<meta property="og:title" content="Nibble #97" />
2222
<meta
2323
property="og:image"
24-
content="https://files.nibbles.dev/covers/96.jpg"
24+
content="https://files.nibbles.dev/covers/97.jpg"
2525
/>
2626
<meta
2727
property="og:description"
@@ -32,10 +32,10 @@
3232
<meta name="twitter:creator" content="@AashutoshRathi" />
3333
<meta property="twitter:card" content="summary_large_image" />
3434
<meta property="twitter:url" content="https://latest.nibbles.dev" />
35-
<meta property="twitter:title" content="Nibble #96" />
35+
<meta property="twitter:title" content="Nibble #97" />
3636
<meta
3737
name="twitter:image"
38-
content="https://files.nibbles.dev/covers/96.jpg"
38+
content="https://files.nibbles.dev/covers/97.jpg"
3939
/>
4040
<meta
4141
name="twitter:description"
@@ -56,7 +56,7 @@
5656
let countdown = 3;
5757
const countdownElement = document.getElementById('countdown');
5858
const nibbleEditionElement = document.getElementById('nibble-edition');
59-
const latestUrl = 'https://nibbles.dev/p/96';
59+
const latestUrl = 'https://nibbles.dev/p/97';
6060
const latestNumber = latestUrl.split('/').pop();
6161

6262
if (latestNumber) {

updateNibble.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import fs from 'fs';
22
import fetch from 'node-fetch';
33

44
const RSS2JSON_ENDPOINT = 'https://api.rss2json.com/v1/api.json?rss_url=';
5-
const FEED_URL = encodeURIComponent('https://www.nibbles.dev/feed.xml');
5+
const FEED_URL = encodeURIComponent('https://www.nibbles.dev/feed.xml?t=${timestamp}');
66

77
const timestamp = Date.now();
8-
const API_URL = `${RSS2JSON_ENDPOINT}${FEED_URL}?t=${timestamp}`;
8+
const API_URL = `${RSS2JSON_ENDPOINT}${FEED_URL}`;
99
const DELIMITER = '|';
1010

1111
// Files to update

wallpaper.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<title>Wallpaper of the Week | Nibble #96</title>
4+
<title>Wallpaper of the Week | Nibble #97</title>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width,initial-scale=1" />
7-
<meta name="title" content="Wallpaper of the Week | Nibble #96" />
8-
<meta http-equiv="refresh" content="1; url='https://files.nibbles.dev/wallpapers/96.jpg'" />
7+
<meta name="title" content="Wallpaper of the Week | Nibble #97" />
8+
<meta http-equiv="refresh" content="1; url='https://files.nibbles.dev/wallpapers/97.jpg'" />
99
<meta
1010
name="description"
1111
content="Nibble is a Tech newsletter with quick bits to stay updated on tech, life and memes"
@@ -19,10 +19,10 @@
1919
<!-- Open Graph / Facebook -->
2020
<meta property="og:type" content="website" />
2121
<meta property="og:url" content="https://wow.nibbles.dev" />
22-
<meta property="og:title" content="Nibble #96" />
22+
<meta property="og:title" content="Nibble #97" />
2323
<meta
2424
property="og:image"
25-
content="https://files.nibbles.dev/wallpapers/96.jpg"
25+
content="https://files.nibbles.dev/wallpapers/97.jpg"
2626
/>
2727
<meta
2828
property="og:description"
@@ -33,10 +33,10 @@
3333
<meta name="twitter:creator" content="@AashutoshRathi" />
3434
<meta property="twitter:card" content="summary_large_image" />
3535
<meta property="twitter:url" content="https://wow.nibbles.dev" />
36-
<meta property="twitter:title" content="Wallpaper of Week | Nibble #96" />
36+
<meta property="twitter:title" content="Wallpaper of Week | Nibble #97" />
3737
<meta
3838
name="twitter:image"
39-
content="https://files.nibbles.dev/wallpapers/96.jpg"
39+
content="https://files.nibbles.dev/wallpapers/97.jpg"
4040
/>
4141
<meta
4242
name="twitter:description"

0 commit comments

Comments
 (0)