add images from memos
This commit is contained in:
@@ -42,6 +42,16 @@
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.images {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
.images img {
|
||||
max-width: 100%;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.tags {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
@@ -60,6 +70,13 @@
|
||||
font-size: 0.8rem;
|
||||
color: #aaa;
|
||||
}
|
||||
.meta a {
|
||||
color: #aaa;
|
||||
text-decoration: none;
|
||||
}
|
||||
.meta a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -70,13 +87,21 @@
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="content">{{.Content}}</div>
|
||||
{{if .Images}}
|
||||
<div class="images">
|
||||
{{range .Images}}<img src="{{.URL}}" alt="{{.Alt}}" loading="lazy">{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{if .Tags}}
|
||||
<div class="tags">
|
||||
{{range .Tags}}<span class="tag">#{{.}}</span>{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="meta">Tier {{.Tier}} · показов: {{.ShowCount}}</div>
|
||||
<div class="meta">
|
||||
Tier {{.Tier}} · показов: {{.ShowCount}}
|
||||
{{if .MemoURL}} · <a href="{{.MemoURL}}" target="_blank" rel="noopener">оригинал</a>{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user