website: add LGC font, exclude pages from sitemap

This commit is contained in:
Pavel Korytov 2024-04-13 18:07:40 +03:00
parent a85d4d9550
commit 493fc0318a
4 changed files with 35 additions and 1 deletions

View file

@ -8,7 +8,14 @@ $black: {{ .Param "style.colorBlack" | default "#222222" }};
$red: {{ .Param "style.colorRed" | default "#dc3545" }};
// Font
$font-family: {{ .Param "style.fontFamily" | default "Inconsolata" }};
// $font-family: {{ .Param "style.fontFamily" | default "Inconsolata" }};
@font-face {
font-family: "Inconsolata LGC";
font-style: normal;
font-weight: 400;
src: local(""), url("fonts/inconsolatalgc-scaled-down.woff2") format('woff2');
}
$font-family: "Inconsolata", "Inconsolata LGC";
// Margins
$y-small: 0.6rem;
@ -230,6 +237,14 @@ $toc-left-width: $toc-width + $max-width + 25px;
background-color: #f8f8f8;
}
}
.table-no-header {
th {
font-weight: normal;
}
table {
margin: 0rem 0rem 0.5rem 0rem;
}
}
blockquote {
border-left: 4px solid;
font-style: italic;
@ -271,6 +286,9 @@ $toc-left-width: $toc-width + $max-width + 25px;
font-weight: bold;
}
}
span.underline {
text-decoration: underline;
}
}
#footer {
a {

16
layouts/sitemap.xml Normal file
View file

@ -0,0 +1,16 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
{{ if not .Params.private }}
<url>
<loc>{{ .Permalink }}</loc>
<lastmod>{{ .Date.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>
{{ end }}
{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>
{{ end }}
</url>
{{ end }}
{{ end }}
</urlset>

Binary file not shown.

Binary file not shown.