Browse Source

capture production of dev for working locally or on a server

blog
Nathan Bergey 6 years ago
parent
commit
64b106da71
  1. 3
      Makefile
  2. 6
      _layouts/base.html
  3. 14
      assets/style.sass

3
Makefile

@ -1,4 +1,7 @@
all: favicon.ico
JEKYLL_ENV=production jekyll build
dev:
jekyll build
favicon.ico: favicon.svg

6
_layouts/base.html

@ -4,8 +4,10 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="natronics.org">
<link rel="shortcut icon" href="/favicon.{{ site.time | date: '%s' }}.ico">
<link rel="stylesheet" href="/assets/style.{{ site.time | date: '%s' }}.css">
{% capture caching %}{% if jekyll.environment == "production" %}.{{ site.time | date: '%s' }}{% else %}{% endif %}{% endcapture %}
<link rel="shortcut icon" href="/favicon{{ caching }}.ico">
<link rel="stylesheet" href="/assets/style{{ caching }}.css">
<title>{{ page.title }}</title>
</head>
<body>

14
assets/style.sass

@ -1,6 +1,8 @@
---
---
{% capture caching %}{% if jekyll.environment == "production" %}.{{ site.time | date: '%s' }}{% else %}{% endif %}{% endcapture %}
$linkcolor: #3765D4
$primary: #F18BD1
@ -8,22 +10,22 @@ $primary: #F18BD1
@font-face
font-family: 'League Spartan'
src: url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.eot')
src: url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.eot?#iefix') format('embedded-opentype'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.woff2') format('woff2'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.woff') format('woff'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.ttf') format('truetype'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold.{{ site.time | date: '%s' }}.svg#league_spartanbold') format('svg')
src: url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.eot')
src: url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.eot?#iefix') format('embedded-opentype'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.woff2') format('woff2'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.woff') format('woff'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.ttf') format('truetype'), url('/assets/fonts/league-spartan/_webfonts/leaguespartan-bold{{ caching }}.svg#league_spartanbold') format('svg')
font-weight: bold
font-style: normal
@font-face
font-family: 'Sorts Mill Goudy'
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont.{{ site.time | date: '%s' }}.eot')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont.{{ site.time | date: '%s' }}.woff') format('woff'), url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont.{{ site.time | date: '%s' }}.ttf') format('truetype'), url('/assets/fonts/sorts-mill-goudy/webfontsGoudyStM-webfont.{{ site.time | date: '%s' }}.svg') format('svg')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont{{ caching }}.eot')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont{{ caching }}.woff') format('woff'), url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-webfont{{ caching }}.ttf') format('truetype'), url('/assets/fonts/sorts-mill-goudy/webfontsGoudyStM-webfont{{ caching }}.svg') format('svg')
font-weight: 400
font-style: normal
@font-face
font-family: 'Sorts Mill Goudy'
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont.{{ site.time | date: '%s' }}.eot')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont.{{ site.time | date: '%s' }}.woff') format('woff'), url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont.{{ site.time | date: '%s' }}.ttf') format('truetype'), url('/assets/fonts/sorts-mill-goudy/webfontsGoudyStM-Italic-webfont.{{ site.time | date: '%s' }}.svg') format('svg')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont{{ caching }}.eot')
src: url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont{{ caching }}.woff') format('woff'), url('/assets/fonts/sorts-mill-goudy/webfonts/GoudyStM-Italic-webfont{{ caching }}.ttf') format('truetype'), url('/assets/fonts/sorts-mill-goudy/webfontsGoudyStM-Italic-webfont{{ caching }}.svg') format('svg')
font-weight: 400
font-style: italic

Loading…
Cancel
Save