mirror of
https://github.com/go-shiori/shiori.git
synced 2025-02-21 22:43:22 +08:00
Now server provides Source Sans Pro fonts
This commit is contained in:
parent
efa59d6d8b
commit
6eb8c749a5
14 changed files with 72 additions and 12 deletions
|
@ -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">
|
||||
|
|
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-200.woff
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-200.woff
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-200.woff2
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-200.woff2
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-600.woff
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-600.woff
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-600.woff2
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-600.woff2
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-700.woff
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-700.woff
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-700.woff2
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-700.woff2
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-regular.woff
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-regular.woff
Normal file
Binary file not shown.
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-regular.woff2
Normal file
BIN
internal/view/css/fonts/source-sans-pro-v13-latin-regular.woff2
Normal file
Binary file not shown.
1
internal/view/css/source-sans-pro.min.css
vendored
Normal file
1
internal/view/css/source-sans-pro.min.css
vendored
Normal 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')}
|
|
@ -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">
|
||||
|
|
|
@ -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
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in a new issue