Przeglądaj źródła

updated template and css to begin assuming cdn

Casey DeLorme 10 lat temu
rodzic
commit
546e52789f
2 zmienionych plików z 66 dodań i 66 usunięć
  1. 65 66
      public/css/main.css
  2. 1 0
      template.tmpl

+ 65 - 66
public/css/main.css

@@ -51,111 +51,111 @@ table {
 /* fonts */
 @font-face {
     font-family: 'fertigo_proregular';
-    src: url('/fonts/fertigo_pro_regular-webfont.eot');
-    src: url('/fonts/fertigo_pro_regular-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/fertigo_pro_regular-webfont.woff2') format('woff2'),
-         url('/fonts/fertigo_pro_regular-webfont.woff') format('woff'),
-         url('/fonts/fertigo_pro_regular-webfont.ttf') format('truetype'),
-         url('/fonts/fertigo_pro_regular-webfont.svg#fertigo_proregular') format('svg');
+    src: url('/cdn/fonts/fertigo_pro_regular-webfont.eot');
+    src: url('/cdn/fonts/fertigo_pro_regular-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/fertigo_pro_regular-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/fertigo_pro_regular-webfont.woff') format('woff'),
+         url('/cdn/fonts/fertigo_pro_regular-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/fertigo_pro_regular-webfont.svg#fertigo_proregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'allerbold';
-    src: url('/fonts/aller_bd-webfont.eot');
-    src: url('/fonts/aller_bd-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_bd-webfont.woff2') format('woff2'),
-         url('/fonts/aller_bd-webfont.woff') format('woff'),
-         url('/fonts/aller_bd-webfont.ttf') format('truetype'),
-         url('/fonts/aller_bd-webfont.svg#allerbold') format('svg');
+    src: url('/cdn/fonts/aller_bd-webfont.eot');
+    src: url('/cdn/fonts/aller_bd-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_bd-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_bd-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_bd-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_bd-webfont.svg#allerbold') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'allerbold_italic';
-    src: url('/fonts/aller_bdit-webfont.eot');
-    src: url('/fonts/aller_bdit-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_bdit-webfont.woff2') format('woff2'),
-         url('/fonts/aller_bdit-webfont.woff') format('woff'),
-         url('/fonts/aller_bdit-webfont.ttf') format('truetype'),
-         url('/fonts/aller_bdit-webfont.svg#allerbold_italic') format('svg');
+    src: url('/cdn/fonts/aller_bdit-webfont.eot');
+    src: url('/cdn/fonts/aller_bdit-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_bdit-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_bdit-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_bdit-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_bdit-webfont.svg#allerbold_italic') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'aller_lightitalic';
-    src: url('/fonts/aller_ltit-webfont.eot');
-    src: url('/fonts/aller_ltit-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_ltit-webfont.woff2') format('woff2'),
-         url('/fonts/aller_ltit-webfont.woff') format('woff'),
-         url('/fonts/aller_ltit-webfont.ttf') format('truetype'),
-         url('/fonts/aller_ltit-webfont.svg#aller_lightitalic') format('svg');
+    src: url('/cdn/fonts/aller_ltit-webfont.eot');
+    src: url('/cdn/fonts/aller_ltit-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_ltit-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_ltit-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_ltit-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_ltit-webfont.svg#aller_lightitalic') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'alleritalic';
-    src: url('/fonts/aller_it-webfont.eot');
-    src: url('/fonts/aller_it-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_it-webfont.woff2') format('woff2'),
-         url('/fonts/aller_it-webfont.woff') format('woff'),
-         url('/fonts/aller_it-webfont.ttf') format('truetype'),
-         url('/fonts/aller_it-webfont.svg#alleritalic') format('svg');
+    src: url('/cdn/fonts/aller_it-webfont.eot');
+    src: url('/cdn/fonts/aller_it-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_it-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_it-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_it-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_it-webfont.svg#alleritalic') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'aller_displayregular';
-    src: url('/fonts/allerdisplay-webfont.eot');
-    src: url('/fonts/allerdisplay-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/allerdisplay-webfont.woff2') format('woff2'),
-         url('/fonts/allerdisplay-webfont.woff') format('woff'),
-         url('/fonts/allerdisplay-webfont.ttf') format('truetype'),
-         url('/fonts/allerdisplay-webfont.svg#aller_displayregular') format('svg');
+    src: url('/cdn/fonts/allerdisplay-webfont.eot');
+    src: url('/cdn/fonts/allerdisplay-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/allerdisplay-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/allerdisplay-webfont.woff') format('woff'),
+         url('/cdn/fonts/allerdisplay-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/allerdisplay-webfont.svg#aller_displayregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'aller_lightregular';
-    src: url('/fonts/aller_lt-webfont.eot');
-    src: url('/fonts/aller_lt-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_lt-webfont.woff2') format('woff2'),
-         url('/fonts/aller_lt-webfont.woff') format('woff'),
-         url('/fonts/aller_lt-webfont.ttf') format('truetype'),
-         url('/fonts/aller_lt-webfont.svg#aller_lightregular') format('svg');
+    src: url('/cdn/fonts/aller_lt-webfont.eot');
+    src: url('/cdn/fonts/aller_lt-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_lt-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_lt-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_lt-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_lt-webfont.svg#aller_lightregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'allerregular';
-    src: url('/fonts/aller_rg-webfont.eot');
-    src: url('/fonts/aller_rg-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/aller_rg-webfont.woff2') format('woff2'),
-         url('/fonts/aller_rg-webfont.woff') format('woff'),
-         url('/fonts/aller_rg-webfont.ttf') format('truetype'),
-         url('/fonts/aller_rg-webfont.svg#allerregular') format('svg');
+    src: url('/cdn/fonts/aller_rg-webfont.eot');
+    src: url('/cdn/fonts/aller_rg-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/aller_rg-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/aller_rg-webfont.woff') format('woff'),
+         url('/cdn/fonts/aller_rg-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/aller_rg-webfont.svg#allerregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'droid_sansbold';
-    src: url('/fonts/droidsans-bold-webfont.eot');
-    src: url('/fonts/droidsans-bold-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/droidsans-bold-webfont.woff2') format('woff2'),
-         url('/fonts/droidsans-bold-webfont.woff') format('woff'),
-         url('/fonts/droidsans-bold-webfont.ttf') format('truetype'),
-         url('/fonts/droidsans-bold-webfont.svg#aller_lightregular') format('svg');
+    src: url('/cdn/fonts/droidsans-bold-webfont.eot');
+    src: url('/cdn/fonts/droidsans-bold-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/droidsans-bold-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/droidsans-bold-webfont.woff') format('woff'),
+         url('/cdn/fonts/droidsans-bold-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/droidsans-bold-webfont.svg#aller_lightregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
 @font-face {
     font-family: 'droid_sansregular';
-    src: url('/fonts/droidsans-webfont.eot');
-    src: url('/fonts/droidsans-webfont.eot?#iefix') format('embedded-opentype'),
-         url('/fonts/droidsans-webfont.woff2') format('woff2'),
-         url('/fonts/droidsans-webfont.woff') format('woff'),
-         url('/fonts/droidsans-webfont.ttf') format('truetype'),
-         url('/fonts/droidsans-webfont.svg#allerregular') format('svg');
+    src: url('/cdn/fonts/droidsans-webfont.eot');
+    src: url('/cdn/fonts/droidsans-webfont.eot?#iefix') format('embedded-opentype'),
+         url('/cdn/fonts/droidsans-webfont.woff2') format('woff2'),
+         url('/cdn/fonts/droidsans-webfont.woff') format('woff'),
+         url('/cdn/fonts/droidsans-webfont.ttf') format('truetype'),
+         url('/cdn/fonts/droidsans-webfont.svg#allerregular') format('svg');
     font-weight: normal;
     font-style: normal;
 }
@@ -228,24 +228,23 @@ footer .link {
     background-repeat: no-repeat;
 }
 footer .facebook {
-    background-image: url('/images/facebook.png');
+    background-image: url('/cdn/images/facebook.png');
 }
 footer .linkedin {
-    background-image: url('/images/linkedin2.png');
+    background-image: url('/cdn/images/linkedin.png');
     width: 34px;
 }
 footer .youtube {
-    background-image: url('/images/youtube2.png');
+    background-image: url('/cdn/images/youtube.png');
     width: 41px;
 }
 footer .github {
-    background-image: url('/images/github.png');
+    background-image: url('/cdn/images/github.png');
 }
 footer .skype {
-    background-image: url('/images/skype.png');
+    background-image: url('/cdn/images/skype.png');
 }
 
-
 /* Sunburst-like style (c) Vasily Polovnyov <vast@whiteants.net> */
 
 .hljs {

+ 1 - 0
template.tmpl

@@ -3,6 +3,7 @@
     <head>{{/* depth stored for access inside navigation loop */}}{{$depth := .Depth}}
         <meta charset="utf-8">
         <title>{{if .Name}}{{.Name}} | {{end}}Casey DeLorme's Portfolio / caseydelorme.com</title>
+        <link rel="icon" type="image/x-icon" href="https://www.caseydelorme.com/cdn/favicon.ico" />
         <link rel="stylesheet" type="text/css" href="{{$depth}}/css/main.css#{{.Version}}">
     </head>
     <body>