smallcaps..

master
Marcell Mars 3 years ago
parent 202191b97d
commit 7a1875904c

@ -349,7 +349,61 @@ template {
display: none;
}
/* vollkorn-sc-regular - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-style: normal;
font-weight: 400;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-regular.svg#VollkornSC') format('svg'); /* Legacy iOS */
}
/* vollkorn-sc-600 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-style: normal;
font-weight: 600;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-600.svg#VollkornSC') format('svg'); /* Legacy iOS */
}
/* vollkorn-sc-700 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-style: normal;
font-weight: 700;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-700.svg#VollkornSC') format('svg'); /* Legacy iOS */
}
/* vollkorn-sc-900 - latin-ext_latin */
@font-face {
font-family: 'Vollkorn SC';
font-style: normal;
font-weight: 900;
src: url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot'); /* IE9 Compat Modes */
src: local(''),
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff2') format('woff2'), /* Super Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.woff') format('woff'), /* Modern Browsers */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
url('../fonts/vollkorn-sc-v4-latin-ext_latin-900.svg#VollkornSC') format('svg'); /* Legacy iOS */
}
/* vollkorn-500italic - latin-ext_latin */
@font-face {
@ -764,6 +818,11 @@ h2 + p:first-letter {
margin-top: -0.4em;
}
.smallcaps {
font-family: 'Vollkorn SC', serif;
font-weight: 400;
}
body {counter-reset: h2}
h2 {counter-reset: h3}
h3 {counter-reset: h4}

File diff suppressed because one or more lines are too long

@ -1,2 +1,13 @@
{{ .Page.Scratch.Add "urls" (slice .Destination) }}
{{ $t := .Text }}
{{- if and (strings.HasPrefix .Destination "{") (.Destination | strings.Count "}") -}}
{{- range first 1 (split .Destination "}") -}}
{{- range $frmt := (split (substr . 1) ",") -}}
{{- if eq $frmt "sc" -}}
<span class="smallcaps">{{- $t -}}</span>
{{- end -}}
{{- end -}}
{{- end -}}
{{- else -}}
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}><span class="sup">www</span><i>{{ .Text | safeHTML }}</i></a>
{{ end }}

Loading…
Cancel
Save