Explorar el Código

Redesign.

dev
Chris Smith hace 7 años
padre
commit
818f189395

+ 4
- 0
site/content/index/index.md Ver fichero

@@ -0,0 +1,4 @@
1
+---
2
+title: Content listing
3
+url: /index/
4
+---

+ 3
- 0
site/layouts/index/single.html Ver fichero

@@ -0,0 +1,3 @@
1
+{{ partial "head.html" . }}
2
+{{ partial "index.html" . }}
3
+{{ partial "foot.html" . }}

+ 0
- 1
site/layouts/partials/article.html Ver fichero

@@ -2,7 +2,6 @@
2 2
   <header>
3 3
     <div class="title">
4 4
       <h2>{{ .Title }}</h2>
5
-      <p>{{ .Params.strapline }}</p>
6 5
       <p>{{ .Date.Format "Jan 2, 2006" }}</p>
7 6
     </div>
8 7
   </header>

+ 8
- 59
site/layouts/partials/foot.html Ver fichero

@@ -1,60 +1,9 @@
1
-</div>
2
-
3
-<section id="sidebar">
4
-  <header>
5
-    <h1><a href="/">Chameth.com</a></h1>
6
-    <p>Personal website of Chris Smith</p>
7
-  </header>
8
-
9
-  <section id="links">
10
-    <h2>Identities</h2>
11
-    <ul class="fa-ul">
12
-      <li id="pgp">
13
-        <i class="fa-li fa-lg fa fa-key" aria-hidden="true"></i>
14
-        <a href="/pgp/" title="My PGP key">
15
-          460E 2723 CDB6 701A D929<br>
16
-          89D1 F843 D93A 1640 2FE2
17
-        </a>
18
-      </li>
19
-      <li id="twitter">
20
-        <i class="fa-li fa-lg fa fa-twitter" aria-hidden="true"></i>
21
-        <a href="https://twitter.com/MD87_" title="My twitter account">MD87_</a>
22
-      </li>
23
-      <li id="github">
24
-        <i class="fa-li fa-lg fa fa-github" aria-hidden="true"></i>
25
-        <a href="https://github.com/csmith" title="My GitHub account">csmith</a>
26
-      </li>
27
-    </ul>
28
-  </section>
29
-
30
-  <section id="posts">
31
-    <h2>Latest posts</h2>
32
-    {{ range first 3 (where .Site.Pages "Type" "post") }}
33
-      <article class="mini-post">
34
-        <header>
35
-          <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
36
-        </header>
37
-        <a href="{{ .Permalink }}" class="image"><img src="{{ .Params.thumbnail }}" alt="{{ .Title }}"></a>
38
-      </article>
39
-    {{ end }}
40
-  </section>
41
-
42
-  <section id="photos">
43
-    <h2>Recent albums</h2>
44
-
45
-    {{ range first 3 (where .Site.Pages "Type" "photos") }}
46
-      <article class="mini-post">
47
-        <header>
48
-          <h3><a href="{{ .Permalink }}">{{ .Params.album_title }}</a></h3>
49
-          <time class="published" datetime="{{ .Date }}">{{ .Params.album_date }}</time>
50
-        </header>
51
-        <a href="{{ .Permalink }}" class="image"><img src="{{ .URL }}{{ (index .Params.photos 0).file }}" alt="{{ (index .Params.photos 0).alt }}"></a>
52
-      </article>
53
-    {{ end }}
54
-
55
-  </section>
56
-</section>
57
-</div>
58
-<script src="/res/js/lightbox-plus-jquery.min.js"></script>
59
-</body>
1
+   </div>
2
+
3
+    <footer id="footer">
4
+      <div class="inner">
5
+        
6
+      </div>
7
+    </footer>
8
+  </body>
60 9
 </html>

+ 47
- 5
site/layouts/partials/head.html Ver fichero

@@ -15,14 +15,56 @@
15 15
       {{ end }}
16 16
     </title>
17 17
     <meta charset="utf-8">
18
+    <meta name="viewport" content="width=device-width, initial-scale=1" />
18 19
     <link rel="stylesheet" href="/res/css/style.css">
19 20
     <link rel="stylesheet" href="/res/css/monokai.css">
20 21
     <link rel="stylesheet" href="/res/css/font-awesome.min.css">
21 22
     <link rel="stylesheet" href="/res/css/lightbox.min.css">
22
-    {{ if .RSSlink }}
23
-      <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
23
+    {{ if .RSSLink }}
24
+      <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
24 25
     {{ end }}
25 26
   </head>
26
-  <body>
27
-    <div id="wrapper">
28
-      <div id="main">
27
+  <body id="top">
28
+
29
+    <header id="header">
30
+      <div class="inner">
31
+        <h1><a href="/">Chameth.com</a></h1>
32
+        <p>Personal website of Chris Smith</p>
33
+
34
+        <section id="posts">
35
+          <ul>
36
+            {{ range first 3 (where .Site.Pages "Type" "post") }}
37
+              <li class="recent">
38
+                <a href="{{ .Permalink }}">{{ .Title }}</a>
39
+                <p>{{ .Date.Format "Jan 2, 2006" }}</p>
40
+              </li>
41
+            {{ end }}
42
+            <li>
43
+              <a href="/index">All articles</a>
44
+            </li>
45
+          </ul>
46
+        </section>
47
+
48
+        <section id="identities">
49
+          <ul class="fa-ul">
50
+            <li id="pgp">
51
+              <i class="fa-li fa-lg fa fa-key" aria-hidden="true"></i>
52
+              <a href="/pgp/" title="My PGP key">
53
+                460E 2723 CDB6 701A D929<br>
54
+                89D1 F843 D93A 1640 2FE2
55
+              </a>
56
+            </li>
57
+            <li id="twitter">
58
+              <i class="fa-li fa-lg fa fa-twitter" aria-hidden="true"></i>
59
+              <a href="https://twitter.com/MD87_" title="My twitter account">MD87_</a>
60
+            </li>
61
+            <li id="github">
62
+              <i class="fa-li fa-lg fa fa-github" aria-hidden="true"></i>
63
+              <a href="https://github.com/csmith" title="My GitHub account">csmith</a>
64
+            </li>
65
+          </ul>
66
+        </section>
67
+      </div>
68
+    </header>
69
+
70
+    <div id="main">

+ 16
- 0
site/layouts/partials/index.html Ver fichero

@@ -0,0 +1,16 @@
1
+<article class="index">
2
+  <header>
3
+    <div class="title">
4
+      <h2>Content listing</h2>
5
+    </div>
6
+  </header>
7
+  <ul>
8
+  {{ range where .Site.Pages "Type" "post" }}
9
+    <li>
10
+      <a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "Jan 2, 2006" }}
11
+    </li>
12
+  {{ end }}
13
+  </ul>
14
+</article>
15
+
16
+

+ 2
- 4
site/layouts/partials/list.html Ver fichero

@@ -4,14 +4,12 @@
4 4
   <header>
5 5
     <div class="title">
6 6
       <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
7
-      <p>{{ .Params.strapline }}</p>
7
+      <p>Published on {{ .Date.Format "Jan 2, 2006" }}</p>
8 8
     </div>
9 9
   </header>
10 10
   {{ .Summary }}
11 11
   <footer>
12
-    <ul>
13
-      <li><a href="{{ .Permalink }}">Read more</a></li>
14
-    </ul>
12
+    <a href="{{ .Permalink }}">Read more &raquo;</a>
15 13
   </footer>
16 14
 </article>
17 15
 

+ 3158
- 761
site/static/res/css/style.css
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


BIN
site/static/res/images/https/https-everywhere.jpg Ver fichero


BIN
site/static/res/images/overlay.png Ver fichero


BIN
site/static/res/images/sense/sense.jpg Ver fichero


+ 0
- 38
site/static/res/js/lightbox-plus-jquery.min.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 0
- 13
site/static/res/js/lightbox.min.js
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Loading…
Cancelar
Guardar