Now server provides Source Sans Pro fonts

This commit is contained in:
Radhi Fadlillah 2019-08-06 08:45:39 +07:00
parent efa59d6d8b
commit 6eb8c749a5
14 changed files with 72 additions and 12 deletions

View file

@ -13,7 +13,7 @@
<link rel="icon" type="image/png" href="/res/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/x-icon" href="/res/favicon.ico">
<link href="/css/fontawesome.min.css" rel="stylesheet">
<link href="/css/source-sans-pro.min.css" rel="stylesheet">
<link href="/css/stylesheet.css" rel="stylesheet">
<link href="/css/custom-dialog.css" rel="stylesheet">
<link href="/css/bookmark-item.css" rel="stylesheet">

View file

@ -0,0 +1 @@
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(fonts/source-sans-pro-v13-latin-200.woff2) format('woff2'),url(fonts/source-sans-pro-v13-latin-200.woff) format('woff')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(fonts/source-sans-pro-v13-latin-regular.woff2) format('woff2'),url(fonts/source-sans-pro-v13-latin-regular.woff) format('woff')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(fonts/source-sans-pro-v13-latin-600.woff2) format('woff2'),url(fonts/source-sans-pro-v13-latin-600.woff) format('woff')}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(fonts/source-sans-pro-v13-latin-700.woff2) format('woff2'),url(fonts/source-sans-pro-v13-latin-700.woff) format('woff')}

View file

@ -13,6 +13,7 @@
<link rel="icon" type="image/png" href="/res/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/x-icon" href="/res/favicon.ico">
<link href="/css/source-sans-pro.min.css" rel="stylesheet">
<link href="/css/fontawesome.min.css" rel="stylesheet">
<link href="/css/stylesheet.css" rel="stylesheet">
<link href="/css/custom-dialog.css" rel="stylesheet">

View file

@ -13,6 +13,7 @@
<link rel="icon" type="image/png" href="/res/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/x-icon" href="/res/favicon.ico">
<link href="/css/source-sans-pro.min.css" rel="stylesheet">
<link href="/css/fontawesome.min.css" rel="stylesheet">
<link href="/css/stylesheet.css" rel="stylesheet">

File diff suppressed because one or more lines are too long

View file

@ -193,6 +193,7 @@ func (h *handler) serveBookmarkArchive(w http.ResponseWriter, r *http.Request, p
err = tpl.Execute(tplOutput, &bookmark)
checkError(err)
doc.Find("head").AppendHtml(`<link href="/css/source-sans-pro.min.css" rel="stylesheet">`)
doc.Find("head").AppendHtml(`<link href="/css/archive.css" rel="stylesheet">`)
doc.Find("body").PrependHtml(tplOutput.String())