Browse Source

Unfinished work to get site working with fed.brid.gy

Ryan Rix 9 months ago
parent
commit
850dcbdb56
7 changed files with 57 additions and 30 deletions
  1. 3 0
      htaccess
  2. 5 1
      template.html
  3. 32 28
      templates/default.html
  4. 4 0
      templates/index.html
  5. 4 0
      templates/note.html
  6. 4 0
      templates/reply.html
  7. 5 1
      templates/review.html

+ 3 - 0
htaccess

@@ -0,0 +1,3 @@
+RewriteEngine on
+  RewriteBase /
+  RewriteRule ^.well-known/(host-meta|webfinger).* https://fed.brid.gy/$0  [redirect=302,last]

+ 5 - 1
template.html

@@ -8,12 +8,15 @@
         <title>{{title}}</title>
         <meta  name="generator" content="Org-mode" />
         <meta  name="author" content="Ryan Rix" />
+        <link rel="alternate" type="application/atom+xml"
+              href="https://granary.io/url?url=http://notes.whatthefuck.computer/&input=html&output=atom&hub=https://switchboard.p3k.io/"
+        <link rel="hub" href="https://switchboard.p3k.io/">
         <style type="text/css">
          <!--/*--><![CDATA[/*><!--*/
 ul.webmentions li { display: flex; align-items: center; }
 ul.webmentions li img { border-radius: 50%; }
 ul.webmentions li div { flex: auto; }
-ul.webmentions li > a {   width: 350px; 
+ul.webmentions li > a {   width: 350px;
   height: 75px;
   width: 75px;
   background: url("/go.png");
@@ -181,6 +184,7 @@ ul.webmentions li > a {   width: 350px;
         </div>
         <a href="https://brid.gy/publish/facebook"></a>
         <a href="https://brid.gy/publish/twitter"></a>
+        <a href="https://fed.brid.gy"></a>
         <script src="/webmention.js"></script>
     </body>
 </html>

File diff suppressed because it is too large
+ 32 - 28
templates/default.html


+ 4 - 0
templates/index.html

@@ -11,6 +11,9 @@
         <link rel="stylesheet" href="/css/arcology-icons.css" />
         <link rel="pingback" href="https://webmention.io/notes.whatthefuck.computer/xmlrpc" />
         <link rel="webmention" href="https://webmention.io/notes.whatthefuck.computer/webmention" />
+        <link rel="alternate" type="application/atom+xml"
+              href="https://granary.io/url?url=http://notes.whatthefuck.computer/&input=html&output=atom&hub=https://switchboard.p3k.io/"
+        <link rel="hub" href="https://switchboard.p3k.io/">
         <script type="text/javascript">
          /* @licstart The following is the entire license notice for the JavaScript code in this
             tag.
@@ -104,6 +107,7 @@
         </div>
         <a href="https://brid.gy/publish/facebook"></a>
         <a href="https://brid.gy/publish/twitter"></a>
+        <a href="https://fed.brid.gy"></a>
         <script src="/webmention.js"></script>
     </body>
 </html>

+ 4 - 0
templates/note.html

@@ -12,6 +12,9 @@
         <link rel="stylesheet" href="/css/arcology-icons.css" />
         <link rel="pingback" href="https://webmention.io/notes.whatthefuck.computer/xmlrpc" />
         <link rel="webmention" href="https://webmention.io/notes.whatthefuck.computer/webmention" />
+        <link rel="alternate" type="application/atom+xml"
+              href="https://granary.io/url?url=http://notes.whatthefuck.computer/&input=html&output=atom&hub=https://switchboard.p3k.io/"
+        <link rel="hub" href="https://switchboard.p3k.io/">
         <script type="text/javascript">
          /*
             @licstart  The following is the entire license notice for the
@@ -106,6 +109,7 @@
             </div>
             <a href="https://brid.gy/publish/facebook"></a>
             <a href="https://brid.gy/publish/twitter"></a>
+            <a href="https://fed.brid.gy"></a>
             <script src="/webmention.js"></script>
         </div>
     </body>

+ 4 - 0
templates/reply.html

@@ -12,6 +12,9 @@
         <link rel="stylesheet" href="/css/arcology-icons.css" />
         <link rel="pingback" href="https://webmention.io/notes.whatthefuck.computer/xmlrpc" />
         <link rel="webmention" href="https://webmention.io/notes.whatthefuck.computer/webmention" />
+        <link rel="alternate" type="application/atom+xml"
+              href="https://granary.io/url?url=http://notes.whatthefuck.computer/&input=html&output=atom&hub=https://switchboard.p3k.io/"
+        <link rel="hub" href="https://switchboard.p3k.io/">
         <script type="text/javascript">
          /*
             @licstart  The following is the entire license notice for the
@@ -106,6 +109,7 @@
             </div>
             <a href="https://brid.gy/publish/facebook"></a>
             <a href="https://brid.gy/publish/twitter"></a>
+            <a href="https://fed.brid.gy"></a>
             <script src="/webmention.js"></script>
         </div>
     </body>

+ 5 - 1
templates/review.html

@@ -12,6 +12,9 @@
         <link rel="stylesheet" href="/css/arcology-icons.css" />
         <link rel="pingback" href="https://webmention.io/notes.whatthefuck.computer/xmlrpc" />
         <link rel="webmention" href="https://webmention.io/notes.whatthefuck.computer/webmention" />
+        <link rel="alternate" type="application/atom+xml"
+              href="https://granary.io/url?url=http://notes.whatthefuck.computer/&input=html&output=atom&hub=https://switchboard.p3k.io/"
+        <link rel="hub" href="https://switchboard.p3k.io/">
         <script type="text/javascript">
          /*
             @licstart  The following is the entire license notice for the
@@ -106,9 +109,10 @@
                     </div>
                 </div>
             </div>
-            
+
             <a href="https://brid.gy/publish/facebook"></a>
             <a href="https://brid.gy/publish/twitter"></a>
+            <a href="https://fed.brid.gy"></a>
             <script src="/webmention.js"></script>
         </div>
     </body>