Monorepo for Tangled tangled.org
6

Configure Feed

Select the types of activity you want to include in your feed.

1{{ define "layouts/base" }} 2 <!doctype html> 3 <html lang="en" class="dark:bg-gray-900"> 4 <head> 5 <meta charset="UTF-8" /> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"/> 7 <meta name="description" content="The next-generation social coding platform."/> 8 <meta name="htmx-config" content='{"includeIndicatorStyles": false}'> 9 10 <!-- Open Graph defaults --> 11 <meta property="og:site_name" content="Tangled" /> 12 <meta property="og:type" content="website" /> 13 <meta property="og:locale" content="en_US" /> 14 15 16 <!-- Keywords --> 17 <meta name="keywords" content="git, code collaboration, AT Protocol, open source, version control, social coding, code hosting" /> 18 19 <!-- Author and copyright --> 20 <meta name="author" content="Tangled" /> 21 <meta name="robots" content="index, follow" /> 22 23 <script defer src="/static/htmx.min.js"></script> 24 <script defer src="/static/htmx-ext-ws.min.js"></script> 25 <script defer src="/static/actor-typeahead.js" type="module"></script> 26 <script defer src="/static/topbar-search.js"></script> 27 28 <link rel="icon" href="/static/logos/dolly.ico" sizes="48x48"/> 29 <link rel="icon" href="/static/logos/dolly.svg" sizes="any" type="image/svg+xml"/> 30 <link rel="apple-touch-icon" href="/static/logos/dolly.png"/> 31 32 <!-- preconnect to image cdn --> 33 <link rel="preconnect" href="https://avatar.tangled.sh" /> 34 <link rel="preconnect" href="https://camo.tangled.sh" /> 35 36 <!-- pwa manifest --> 37 <link rel="manifest" href="/pwa-manifest.json" /> 38 39 <!-- preload main font --> 40 <link rel="preload" href="/static/fonts/InterVariable.woff2" as="font" type="font/woff2" crossorigin /> 41 42 <link rel="stylesheet" href="/static/tw.css?{{ cssContentHash }}" type="text/css" /> 43 44 <script> 45 document.addEventListener('DOMContentLoaded', () => { 46 const nodes = document.querySelectorAll('pre.mermaid'); 47 if (!nodes.length) return; 48 const script = document.createElement('script'); 49 script.src = '/static/mermaid.min.js'; 50 script.onload = async () => { 51 mermaid.initialize({ 52 startOnLoad: true, 53 theme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default', 54 }); 55 await mermaid.run({ nodes }); 56 }; 57 document.head.appendChild(script); 58 }); 59 </script> 60 <script> 61 window.addEventListener('scroll', function() { 62 document.querySelectorAll('[data-profile-popover]:not(.hidden)').forEach(function(p) { 63 p.classList.add('hidden'); 64 }); 65 }, { passive: true }); 66 </script> 67 <title>{{ block "title" . }}{{ end }}</title> 68 {{ block "extrameta" . }}{{ end }} 69 </head> 70 <body class="min-h-screen flex flex-col gap-4 bg-slate-100 dark:bg-gray-900 dark:text-white transition-colors duration-200 {{ block "bodyClasses" . }} {{ end }}"> 71 {{ block "topbarLayout" . }} 72 <header class="w-full col-span-full md:col-span-1 md:col-start-2 shadow-sm dark:text-white bg-white dark:bg-gray-800 pt-[env(safe-area-inset-top)]" style="z-index: 20;"> 73 74 {{ if .LoggedInUser }} 75 <div id="upgrade-banner" 76 hx-get="/upgradeBanner" 77 hx-trigger="load" 78 hx-swap="innerHTML"> 79 </div> 80 {{ end }} 81 {{ template "layouts/fragments/topbar" . }} 82 </header> 83 {{ end }} 84 85 {{ block "mainLayout" . }} 86 <div class="flex-grow"> 87 <div class="max-w-screen-lg mx-auto flex flex-col gap-4"> 88 {{ block "contentLayout" . }} 89 <main> 90 {{ block "content" . }}{{ end }} 91 </main> 92 {{ end }} 93 94 {{ block "contentAfterLayout" . }} 95 <main> 96 {{ block "contentAfter" . }}{{ end }} 97 </main> 98 {{ end }} 99 </div> 100 </div> 101 {{ end }} 102 103 {{ block "footerLayout" . }} 104 <footer class="mt-12 pb-[env(safe-area-inset-bottom)]"> 105 {{ template "layouts/fragments/footer" . }} 106 </footer> 107 {{ end }} 108 109 {{ template "focus/pill" .FocusParams }} 110 </body> 111 </html> 112{{ end }}