Add images to creations on index page
This commit is contained in:
parent
005a371dcb
commit
665811bb57
14
content/.obsidian/workspace.json
vendored
14
content/.obsidian/workspace.json
vendored
|
@ -55,12 +55,12 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Protovac Retro Terminal.md",
|
"file": "Garage Door Opener.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "Protovac Retro Terminal"
|
"title": "Garage Door Opener"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Protovac Retro Terminal.md",
|
"file": "Garage Door Opener.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
},
|
},
|
||||||
"icon": "links-coming-in",
|
"icon": "links-coming-in",
|
||||||
"title": "Backlinks for Protovac Retro Terminal"
|
"title": "Backlinks for Garage Door Opener"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -184,13 +184,13 @@
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Protovac Retro Terminal.md",
|
"file": "Garage Door Opener.md",
|
||||||
"followCursor": false,
|
"followCursor": false,
|
||||||
"showSearch": false,
|
"showSearch": false,
|
||||||
"searchQuery": ""
|
"searchQuery": ""
|
||||||
},
|
},
|
||||||
"icon": "lucide-list",
|
"icon": "lucide-list",
|
||||||
"title": "Outline of Protovac Retro Terminal"
|
"title": "Outline of Garage Door Opener"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -213,9 +213,9 @@
|
||||||
},
|
},
|
||||||
"active": "24a62ccdfd18a884",
|
"active": "24a62ccdfd18a884",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Protovac Retro Terminal.md",
|
||||||
"Spaceport.md",
|
"Spaceport.md",
|
||||||
"QotNews.md",
|
"QotNews.md",
|
||||||
"Protovac Retro Terminal.md",
|
|
||||||
"Fake Dog.md",
|
"Fake Dog.md",
|
||||||
"Bypassing Ports.md",
|
"Bypassing Ports.md",
|
||||||
"Backup Strategy.md",
|
"Backup Strategy.md",
|
||||||
|
|
|
@ -49,10 +49,17 @@
|
||||||
|
|
||||||
<p>Sometimes I create art or interactive tech.</p>
|
<p>Sometimes I create art or interactive tech.</p>
|
||||||
|
|
||||||
|
<div class="creations">
|
||||||
{% for article in articles_page.object_list if article.category.name == 'Creations' %}
|
{% for article in articles_page.object_list if article.category.name == 'Creations' %}
|
||||||
<h3><a href="{{ article.url }}">{{ article.title }}</a></h3>
|
<div class="creation">
|
||||||
|
<a href="{{ article.url }}">
|
||||||
|
<img src="media/{{ article.image }}" alt="{{ article.summary }}" />
|
||||||
|
{{ article.title }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<h2>Writing</h2>
|
<h2>Writing</h2>
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,33 @@
|
||||||
font: 1.1rem/1.5 serif;
|
font: 1.1rem/1.5 serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.index .creations {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.index .creations .creation a {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creation > a {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
margin: 1rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font: 1.1rem/1.5 serif;
|
||||||
|
|
||||||
|
width: 14rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creation img {
|
||||||
|
max-width: 14rem;
|
||||||
|
max-height: 14rem;
|
||||||
|
}
|
||||||
|
|
||||||
.source {
|
.source {
|
||||||
font: 0.9rem/1.5 serif;
|
font: 0.9rem/1.5 serif;
|
||||||
}
|
}
|
||||||
|
@ -108,7 +135,7 @@
|
||||||
font: 1.1rem/1.5 serif;
|
font: 1.1rem/1.5 serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content img:not(.floated) {
|
.content img:not(.floated, .creation img) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user