Pull in Viget posts
This commit is contained in:
@@ -108,6 +108,11 @@ code {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.image-set {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
@@ -117,11 +122,6 @@ code {
|
||||
figure {
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.references, .footnotes {
|
||||
@@ -135,3 +135,19 @@ code {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight, pre {
|
||||
overflow: auto;
|
||||
|
||||
code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #ddd;
|
||||
padding: 1ch 1ch;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
17
themes/v2/layouts/elsewhere/list.html
Normal file
17
themes/v2/layouts/elsewhere/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h3>Elsewhere</h3>
|
||||
|
||||
<ul>
|
||||
{{ range (where .Site.RegularPages "Type" "in" "elsewhere") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
{{ if .Params.needs_review }}<b>NEEDS REVIEW</b>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
14
themes/v2/layouts/elsewhere/single.html
Normal file
14
themes/v2/layouts/elsewhere/single.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
{{ $url := urls.Parse .Params.canonical_url }}
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<h3>
|
||||
Posted {{ .Date | time.Format "2006-01-02" }}
|
||||
on <a href="{{ .Params.canonical_url }}">{{ $url.Hostname }}</a>
|
||||
</h3>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user