Files
Main/.stversions/7 People/Martin Albrecht~20250203-063557.md

87 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Martin Albrecht
created_date: 2024-01-31
updated_date: 2024-01-31
aliases:
- martin
tags: person
person:
first_name: Martin
last_name: Albrecht
birthday:
type: privat
hobbies:
- berge
- wandern
- finanzen
ref: person/martin_albrecht
---
# Martin Albrecht
- **🏷Tags** : #01-2024 #person
## 📝 Notes
-
## 🔗 Links
-
## Touchpoints
```dataviewjs
const pagesWithQuotes = await Promise.all(
dv
.pages("#person/martin_albrecht")
.map(pageWithQuote => new Promise(async (resolve, reject) => {
const content = await dv.io.load(pageWithQuote.file.path);
resolve({
link: pageWithQuote.file.link,
content
});
}))
);
// Create an array of pages containing quotes,
// where each page is:
// {
// quotes: [], // array of quotes
// link: { path: '' } // Link
// }
const quotesByPage = pagesWithQuotes.map(({
link,
content
}) => ({
link,
quotes: content
// Split into paragraphs
.split('- ')
// Get only paragraphs that have the #person/firstname_lastname tag
.filter(content => content.includes('#person/martin_albrecht'))
// Remove the "#person/firstname_lastname" tag from each quote string
.map(content => content.replace('#person/martin_albrecht', ''))
}));
quotesByPage.forEach(
page =>
page.quotes.forEach(
quote => dv.paragraph(`${quote} (${page.link})`)
)
);
```
## Merken
### Mag
### Mag nicht
### Aktuell Wichtige Themen
### Familie und Freunde
## Skills
## Netzwerk
## Geschenkideen
## Sammlung
### Zitate
### Erinnerungen
### Vergangene Themen
## Mentions