mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 00:12:41 +00:00
Fixing fonts & icons paths
This commit is contained in:
parent
ae47bb989a
commit
876989cb2d
@ -16,7 +16,7 @@ def sed(filepath, pattern, value):
|
||||
|
||||
|
||||
# Generating CSS bundle
|
||||
short_hash = sha1(cat('static/css/main.css')).hexdigest()[:7]
|
||||
short_hash = sha1(cat('static/main.css')).hexdigest()[:7]
|
||||
sed('templates/base.html', '-SHORTSHA1-[a-z0-9]+.css', '-SHORTSHA1-{}.css'.format(short_hash))
|
||||
for DISABLE_SEARCH in range(2):
|
||||
bundle = b''
|
||||
@ -25,7 +25,7 @@ for DISABLE_SEARCH in range(2):
|
||||
bundle += cat('static/csslibs/uikit-2.27.4-search.min.css')
|
||||
bundle += cat('static/csslibs/tipuesearch.css')
|
||||
bundle += cat('static/csslibs/solarized-highlight.css')
|
||||
bundle += cat('static/css/main.css')
|
||||
bundle += cat('static/main.css')
|
||||
bundle_filename = 'bundle-DISABLE_SEARCH-{}-SHORTSHA1-{}.css'.format(DISABLE_SEARCH, short_hash)
|
||||
with open('static/' + bundle_filename, 'wb') as bundle_file:
|
||||
bundle_file.write(bundle)
|
||||
|
2
static/csslibs/uikit-2.27.4.min.css
vendored
2
static/csslibs/uikit-2.27.4.min.css
vendored
File diff suppressed because one or more lines are too long
@ -2,13 +2,13 @@
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 800;
|
||||
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), url(../fonts/PRmiXeptR36kaC0GEAetxlDMrAYtoOisqqMDW9M_Mqc.ttf) format('truetype');
|
||||
src: local('Open Sans ExtraBold Italic'), local('OpenSans-ExtraBoldItalic'), url(fonts/PRmiXeptR36kaC0GEAetxlDMrAYtoOisqqMDW9M_Mqc.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Oswald';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Oswald Regular'), local('Oswald-Regular'), url(../fonts/Y_TKV6o8WovbUd3m_X9aAA.ttf) format('truetype');
|
||||
src: local('Oswald Regular'), local('Oswald-Regular'), url(fonts/Y_TKV6o8WovbUd3m_X9aAA.ttf) format('truetype');
|
||||
}
|
||||
|
||||
html, h1, h2, h3 {
|
||||
@ -232,7 +232,7 @@ a {
|
||||
display: inline-block;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
background-image: url(../shaarli-icon.png);
|
||||
background-image: url(shaarli-icon.png);
|
||||
background-size: contain;
|
||||
vertical-align: middle; }
|
||||
.uk-icon-stackoverflow:before {
|
||||
@ -240,7 +240,7 @@ a {
|
||||
display: inline-block;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
background-image: url(../stackoverflow-icon.png);
|
||||
background-image: url(stackoverflow-icon.png);
|
||||
background-size: contain;
|
||||
vertical-align: middle; }
|
||||
.uk-icon-travis-ci:before {
|
||||
@ -248,7 +248,7 @@ a {
|
||||
display: inline-block;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
background-image: url(../travis-ci-icon.png);
|
||||
background-image: url(travis-ci-icon.png);
|
||||
background-size: contain;
|
||||
vertical-align: middle; }
|
||||
|
Loading…
Reference in New Issue
Block a user