several updates to improve conformaty to json syntax
This commit is contained in:
parent
c4f225b68c
commit
7c06b3061c
3 changed files with 58 additions and 30 deletions
|
@ -79,4 +79,10 @@ a {
|
||||||
|
|
||||||
.three {
|
.three {
|
||||||
margin-left: 3rem;
|
margin-left: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact {
|
||||||
|
gap: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
|
@ -3,55 +3,62 @@
|
||||||
<main>
|
<main>
|
||||||
<div class="one">
|
<div class="one">
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
<span>title:</span>
|
<span>"title":</span>
|
||||||
<span class="highlight">'{{ .Site.Params.title }}'</span>
|
<span class="highlight">"{{ .Site.Params.title }}"</span>
|
||||||
,
|
,
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-row">
|
<div class="flex-row">
|
||||||
<span>body:</span>
|
<span>"body":</span>
|
||||||
<span> <span class="highlight">'{{ .Site.Params.body }}'</span>, </span>
|
<span> <span class="highlight">"{{ .Site.Params.body }}"</span>, </span>
|
||||||
</div>
|
</div>
|
||||||
<span class="flex-col"
|
<span class="flex-col"
|
||||||
>"Q & A": [ {{ range .Site.Params.faq }}
|
>"Q & A":[ {{ range $index, $element := .Site.Params.faq }} {{- if ne
|
||||||
|
$index 0 }}
|
||||||
|
<div class="two">},</div>
|
||||||
|
{{ end }}
|
||||||
<div class="two">
|
<div class="two">
|
||||||
{<br />
|
{
|
||||||
<div class="three">
|
<div class="three">
|
||||||
<span>Q:</span>
|
<div>
|
||||||
<span class="highlight">'{{ .question }}'</span>,<br />
|
<span>Q:</span
|
||||||
<span>A:</span>
|
><span class="highlight">"{{ $element.question }}"</span>,
|
||||||
<span class="highlight">'{{ .answer }}'</span>
|
</div>
|
||||||
|
<div>
|
||||||
|
<span>A:</span
|
||||||
|
><span class="highlight">"{{ $element.answer }}"</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }} ],</span
|
{{- end }} ]</span
|
||||||
>
|
>
|
||||||
<span class="flex-col"
|
<span class="flex-col">
|
||||||
>contact: {
|
"contact":[ {{ $length := len .Site.Params.contact }} {{ range $index,
|
||||||
|
$element := .Site.Params.contact }}
|
||||||
<div class="two">
|
<div class="two">
|
||||||
{{ range .Site.Params.contact }}
|
<div class="three contact">
|
||||||
<div class="three">
|
<span>"{{ $element.service }}"</span>:
|
||||||
<span>"{{ .service }}":</span>
|
<span class="highlight">"{{ $element.input }}"</span>
|
||||||
<span class="highlight">'{{ .input }}'</span><br />
|
{{ if ne $index (sub $length 1) }},{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
},
|
{{ end }} ],
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="one">
|
<footer class="one">
|
||||||
<span>
|
<span>
|
||||||
license:
|
"license":<a
|
||||||
<a class="highlight" href="https://creativecommons.org/licenses/by-sa/4.0"
|
class="highlight"
|
||||||
>'CC BY-SA 4.0'</a
|
href="https://creativecommons.org/licenses/by-sa/4.0"
|
||||||
|
>"CC BY-SA 4.0"</a
|
||||||
>,
|
>,
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
"source code": '<a
|
"source code":<a
|
||||||
class="highlight"
|
class="highlight"
|
||||||
href="https://git.myco.systems/mycosystems/hugo-maintenance"
|
href="https://git.myco.systems/mycosystems/hugo-maintenance"
|
||||||
>'https://git.myco.systems/mycosystems/hugo-maintenance'</a
|
>"https://git.myco.systems/mycosystems/hugo-maintenance"</a
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,8 +1,23 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<meta property="og:title" content="{{ .Site.Params.opengraph.title }}">
|
|
||||||
<meta property="og:image" content="{{ .Site.Params.opengraph.image }}">
|
<meta property="og:title" content="{{ .Site.Params.opengraph.title }}" />
|
||||||
<meta property="og:description" content="{{ .Site.Params.opengraph.description | html }}">
|
<meta property="og:image" content="{{ .Site.Params.opengraph.image }}" />
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="{{ .Site.Params.opengraph.description | html }}"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="{{ .Site.Params.opengraph.title }}" />
|
||||||
|
<meta
|
||||||
|
name="twitter:description"
|
||||||
|
content="{{ .Site.Params.opengraph.description | html }}"
|
||||||
|
/>
|
||||||
|
<meta name="twitter:image" content="{{ .Site.Params.opengraph.image }}" />
|
||||||
|
|
||||||
|
<title>{{ .Site.Params.opengraph.title }}</title>
|
||||||
|
|
||||||
<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
|
<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
|
||||||
{{ partialCached "head/css.html" . }}
|
{{ partialCached "head/css.html" . }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue