vault backup: 2025-12-06 16:57:57
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m44s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m44s
This commit is contained in:
@@ -6,3 +6,12 @@ tags:
|
|||||||
föreläsare: Ingela Parmryd
|
föreläsare: Ingela Parmryd
|
||||||
date: 2025-12-05
|
date: 2025-12-05
|
||||||
---
|
---
|
||||||
|
|
||||||
|
```dataviewjs
|
||||||
|
for (const path of dv.pagePaths("#provfråga and #elektrontransportkedjan")) {
|
||||||
|
dv.span(" \n[[" + path + "]]\n")
|
||||||
|
const content = await dv.io.load(path)
|
||||||
|
dv.span(content)
|
||||||
|
dv.span(" \n \n-----\n\n\n")
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -41,6 +41,13 @@ env.filters["markdown"] = m.convert
|
|||||||
output = root_dir / "test.html"
|
output = root_dir / "test.html"
|
||||||
template = env.get_template("base.html")
|
template = env.get_template("base.html")
|
||||||
|
|
||||||
|
def out_content(self):
|
||||||
|
content = note.content
|
||||||
|
if content.startswith("---\n"):
|
||||||
|
content = content.split("---\n", 2)[2]
|
||||||
|
return content
|
||||||
|
|
||||||
|
note.__class__.our_content = property(out_content)
|
||||||
with output.open("w", encoding="utf-8") as f:
|
with output.open("w", encoding="utf-8") as f:
|
||||||
data = template.render(note=note, vault=vault)
|
data = template.render(note=note, vault=vault)
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|||||||
@@ -2,14 +2,119 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<style>
|
<style>
|
||||||
p {
|
/* Root scales + light/dark system colors */
|
||||||
white-space: pre-wrap;
|
:root {
|
||||||
}
|
color-scheme: light dark;
|
||||||
|
--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||||
|
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
||||||
|
--max-width: 70ch;
|
||||||
|
--line-height: 1.6;
|
||||||
|
--space: 1.25rem;
|
||||||
|
--radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: var(--max-width);
|
||||||
|
padding: calc(var(--space) * 1.2);
|
||||||
|
font-family: var(--font-body);
|
||||||
|
line-height: var(--line-height);
|
||||||
|
font-size: 1rem;
|
||||||
|
word-wrap: break-word;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Color auto-adjusts with system theme */
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
body { background: #fafafa; color: #222; }
|
||||||
|
a { color: #0645ad; }
|
||||||
|
code, pre { background: #f0f0f0; }
|
||||||
|
hr { border-color: #ddd; }
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body { background: #111; color: #ddd; }
|
||||||
|
a { color: #7bbaff; }
|
||||||
|
code, pre { background: #222; }
|
||||||
|
hr { border-color: #333; }
|
||||||
|
}
|
||||||
|
|
||||||
|
p, ul, ol, blockquote, pre, table {
|
||||||
|
margin: var(--space) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Headings: predictable rhythm, not oversized */
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
line-height: 1.25;
|
||||||
|
margin: calc(var(--space) * 1.6) 0 var(--space);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
h1 { font-size: 1.8rem; }
|
||||||
|
h2 { font-size: 1.45rem; }
|
||||||
|
h3 { font-size: 1.25rem; }
|
||||||
|
h4 { font-size: 1.1rem; }
|
||||||
|
h5, h6 { font-size: 1rem; }
|
||||||
|
|
||||||
|
/* Lists */
|
||||||
|
ul, ol {
|
||||||
|
padding-inline-start: 1.4rem;
|
||||||
|
margin-block-start: var(--space);
|
||||||
|
}
|
||||||
|
li { margin: 0.3rem 0; }
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
code, pre {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
th, td {
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
border: 1px solid currentcolor;
|
||||||
|
border-opacity: 0.2;
|
||||||
|
}
|
||||||
|
th { font-weight: 600; }
|
||||||
|
|
||||||
|
/* Blockquotes */
|
||||||
|
blockquote {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border-inline-start: 4px solid currentcolor;
|
||||||
|
border-opacity: 0.4;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Images & media */
|
||||||
|
img, video {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
margin: var(--space) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Horizontal rule */
|
||||||
|
hr {
|
||||||
|
margin: calc(var(--space) * 2) 0;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid;
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<title>{{note.title}}</title>
|
<title>{{note.title}}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>{{note.title}}</h1>
|
<h1>{{note.title}}</h1>
|
||||||
{{note.content | markdown}}
|
{{note.frontmatter}}
|
||||||
|
{{note.our_content | markdown}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
116
wip/test.html
116
wip/test.html
@@ -2,22 +2,113 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<style>
|
<style>
|
||||||
p {
|
/* Root scales + light/dark system colors */
|
||||||
white-space: pre-wrap;
|
:root {
|
||||||
}
|
color-scheme: light dark;
|
||||||
</style>
|
--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||||
|
--font-mono: ui-monospace, "SF Mono", Menlo, monospace;
|
||||||
|
--max-width: 70ch;
|
||||||
|
--line-height: 1.6;
|
||||||
|
--space: 1.25rem;
|
||||||
|
--radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: var(--max-width);
|
||||||
|
padding: calc(var(--space) * 1.2);
|
||||||
|
font-family: var(--font-body);
|
||||||
|
line-height: var(--line-height);
|
||||||
|
font-size: 1rem;
|
||||||
|
word-wrap: break-word;
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Color auto-adjusts with system theme */
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
body { background: #fafafa; color: #222; }
|
||||||
|
a { color: #0645ad; }
|
||||||
|
code, pre { background: #f0f0f0; }
|
||||||
|
hr { border-color: #ddd; }
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body { background: #111; color: #ddd; }
|
||||||
|
a { color: #7bbaff; }
|
||||||
|
code, pre { background: #222; }
|
||||||
|
hr { border-color: #333; }
|
||||||
|
}
|
||||||
|
|
||||||
|
p, ul, ol, blockquote, pre, table {
|
||||||
|
margin: var(--space) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Headings: predictable rhythm, not oversized */
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
line-height: 1.25;
|
||||||
|
margin: calc(var(--space) * 1.6) 0 var(--space);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
h1 { font-size: 1.8rem; }
|
||||||
|
h2 { font-size: 1.45rem; }
|
||||||
|
h3 { font-size: 1.25rem; }
|
||||||
|
h4 { font-size: 1.1rem; }
|
||||||
|
h5, h6 { font-size: 1rem; }
|
||||||
|
|
||||||
|
/* Lists */
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
code, pre {
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
th, td {
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
border: 1px solid currentcolor;
|
||||||
|
border-opacity: 0.2;
|
||||||
|
}
|
||||||
|
th { font-weight: 600; }
|
||||||
|
|
||||||
|
/* Blockquotes */
|
||||||
|
blockquote {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border-inline-start: 4px solid currentcolor;
|
||||||
|
border-opacity: 0.4;
|
||||||
|
opacity: 0.9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Images & media */
|
||||||
|
img, video {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
margin: var(--space) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Horizontal rule */
|
||||||
|
hr {
|
||||||
|
margin: calc(var(--space) * 2) 0;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid;
|
||||||
|
opacity: 0.2;
|
||||||
|
} </style>
|
||||||
<title>Anteckningar</title>
|
<title>Anteckningar</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Anteckningar</h1>
|
<h1>Anteckningar</h1>
|
||||||
<hr />
|
{'föreläsare': 'Ingela Parmryd', 'tags': ['biokemi', 'anteckningar', 'transport-över-cellmembran'], 'date': datetime.date(2025, 11, 25)}
|
||||||
<p>föreläsare: Ingela Parmryd
|
|
||||||
tags:
|
|
||||||
- biokemi
|
|
||||||
- anteckningar
|
|
||||||
- transport-över-cellmembran
|
|
||||||
date: 2025-11-25</p>
|
|
||||||
<hr />
|
|
||||||
<p>Diffusion är något INTE behöver hjälp
|
<p>Diffusion är något INTE behöver hjälp
|
||||||
Passiv vs Aktiv transport
|
Passiv vs Aktiv transport
|
||||||
Faciliterad diffusion</p>
|
Faciliterad diffusion</p>
|
||||||
@@ -282,6 +373,5 @@ kanalfogar binder ihop små celler, t.ex. näring i benceller
|
|||||||
Jongradienter Na/Kalium mkt inne/ut på av ATPaset-pump
|
Jongradienter Na/Kalium mkt inne/ut på av ATPaset-pump
|
||||||
ABC kräver 2 ATP fosfo+defosfo
|
ABC kräver 2 ATP fosfo+defosfo
|
||||||
MDR inblandat i pumpar</p>
|
MDR inblandat i pumpar</p>
|
||||||
<p><img src='../content/attachments/Pasted image 20251125132516.png' style='width:100;'/></p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user