This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
{{> head}} | |
<body> | |
{{> header}} | |
<div class="container"> | |
<div class="main"> | |
<h1 class="page-title p-name">On This Day</h1> | |
<div id="on-this-day"> | |
Loading... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let json_feed_url = "YOUR_JSON_FEED_URL_HERE"; | |
let tz = "YOUR_LOCAL_TIMEZONE"; | |
let container = document.getElementById('on-this-day'); | |
function renderPost(post) { | |
var postEl = document.createElement('article'); | |
postEl.className = 'h-entry entry'; | |
container.appendChild(postEl); | |
if (post.title != null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var post_url = window.location.href; | |
$(document).ready(function(){ | |
$("ul#mentions-list").empty(); | |
$.getJSON("https://webmention.io/api/mentions?per-page=50&page=0&jsonp=?", { | |
target: post_url | |
}, function(data){ | |
var social_media_likes = ""; | |
var social_media_repost = ""; | |
var social_media_post = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | |
<channel> | |
<title>Excursions</title> | |
<link>https://blog.amitgawande.com</link> | |
<atom:link href="https://blog.amitgawande.com/feed.rss" rel="self" type="application/rss+xml"/> | |
<description><![CDATA[ Blog by Amit Gawande ]]></description> | |
<item> | |
<title><![CDATA[ ]]></title> | |
<link>https://blog.amitgawande.com/1534216293963</link> |