this repo has no description
0
fork

Configure Feed

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

split up layouts and only load mathtex when required

Altagos 9adfc5c0 695cfe06

+57 -31
+1 -2
content/index.smd
··· 2 2 .title = "Work in Progress", 3 3 .author = "Jakob Speer", 4 4 .date = @date("2025-07-20"), 5 - .layout = "root.shtml", 5 + .layout = "home.shtml", 6 6 .draft = false, 7 7 .description = "Work in Progress" 8 8 --- 9 -
+6 -3
content/notes/markdown-overview.smd
··· 2 2 .title = "Markdown Overview", 3 3 .author = "Jakob Speer", 4 4 .date = @date("2025-07-22"), 5 - .layout = "root.shtml", 6 - .draft = false, 7 - .description = "An overview over the supported Markdown features" 5 + .layout = "note.shtml", 6 + .draft = true, 7 + .description = "An overview over the supported Markdown features", 8 + .custom = { 9 + .latex = true, 10 + } 8 11 --- 9 12 10 13 Learn how to apply basic formatting to your notes, using [Markdown](https://daringfireball.net/projects/markdown/). For more advanced formatting syntax, refer to [Advanced formatting syntax](https://help.obsidian.md/advanced-syntax).
+8
layouts/home.shtml
··· 1 + <extend template="root.shtml"> 2 + 3 + <title id="title" :text="$page.title.suffix(' | ', $site.title)"></title> 4 + 5 + <main id="main"> 6 + <h1 :text="$page.title"></h1> 7 + <div :html="$page.content()"></div> 8 + </main>
+27
layouts/note.shtml
··· 1 + <extend template="root.shtml"> 2 + 3 + <title id="title" :text="$page.title.suffix(' | ', $site.title)"></title> 4 + 5 + <main id="main"> 6 + <h1 :text="$page.title"></h1> 7 + <h5> 8 + Created on: 9 + <span :text="$page.date.format('2006-01-02')"> 10 + </span> 11 + </h5> 12 + <div :html="$page.content()"></div> 13 + <ctx :if="$page.footnotes?()"> 14 + <div class="footnotes"> 15 + <ol :loop="$if"> 16 + <li id="$loop.it.def_id"> 17 + <div class="footnote"><ctx :html="$loop.it.html()"></ctx></div> 18 + <ctx :loop="$loop.it.ref_ids"> 19 + <div class="back"> 20 + <a href="$loop.it.prefix('#')"><i class="ph-bold ph-arrow-up"></i>Back</a> 21 + </div> 22 + </ctx> 23 + </li> 24 + </ol> 25 + </div> 26 + </ctx> 27 + </main>
+14 -25
layouts/root.shtml layouts/templates/root.shtml
··· 2 2 <html lang="en"> 3 3 <head> 4 4 <meta charset="UTF-8"> 5 - <title :text="$page.title.suffix(' | ', $site.title)"></title> 5 + <title id="title"><super></title> 6 6 <link rel="stylesheet" href="$build.asset('altagos.css').link()"> 7 7 <!-- Meta --> 8 8 <meta name="viewport" content="width=device-width, initial-scale=1"> ··· 16 16 <link rel="manifest" href="$site.asset('favicon/site.webmanifest').link()"> 17 17 <!-- Phsophor Icons --> 18 18 <link rel="stylesheet" href="$site.asset('phosphor-icons/bold.css').link()"> 19 - <!-- mathtex --> 20 - <link rel="stylesheet" href="$site.asset('math/Temml-Local.css').link()"> 21 19 </head> 22 20 <body> 23 21 <header></header> 24 - <div class="content"> 25 - <main> 26 - <h1 :text="$page.title"></h1> 27 - <div :html="$page.content()"></div> 28 - <ctx :if="$page.footnotes?()"> 29 - <div class="footnotes"> 30 - <ol :loop="$if"> 31 - <li id="$loop.it.def_id"> 32 - <div class="footnote"><ctx :html="$loop.it.html()"></ctx></div> 33 - <ctx :loop="$loop.it.ref_ids"> 34 - <div class="back"> 35 - <a href="$loop.it.prefix('#')"><i class="ph-bold ph-arrow-up"></i>Back</a> 36 - </div> 37 - </ctx> 38 - </li> 39 - </ol> 40 - </div> 41 - </ctx> 22 + <content> 23 + <main id="main"> 24 + <super> 42 25 </main> 43 26 <footer> 44 27 <div> ··· 65 48 <p>&copy; 2025 Jakob Speer</p> 66 49 </div> 67 50 </footer> 68 - </div> 69 - <script defer src="$site.asset('math/temml.min.js').link()"></script> 70 - <script defer src="$site.asset('math/render-mathtex.js').link()"></script> 51 + </content> 52 + <ctx :if="$page.custom.get?('latex')"> 53 + <!-- mathtex --> 54 + <div :if="$if"> 55 + <link rel="stylesheet" href="$site.asset('math/Temml-Local.css').link()"> 56 + <script defer src="$site.asset('math/temml.min.js').link()"></script> 57 + <script defer src="$site.asset('math/render-mathtex.js').link()"></script> 58 + </div> 59 + </ctx> 71 60 </body> 72 - </html> 61 + </html>
+1 -1
style/base/layout.scss
··· 18 18 background-color: var(--palette10); 19 19 } 20 20 21 - .content { 21 + content { 22 22 margin: auto; 23 23 max-width: var(--content-max-width); 24 24 height: var(--content-height);