e6fc2cad712a41344a58644c144d9066cf803097 — Andrew Zah 4 months ago f30a932
add friends page, make posts show date
4 files changed, 36 insertions(+), 26 deletions(-)

M Makefile
A content/pages/friends.md
M sass/_section.scss
M templates/macros.html
M Makefile => Makefile +2 -1
@@ 55,7 55,8 @@   push:
  	git push origin master
- 	git push srht master
+ 	git push github master
+ 	git push self master
  
  deploy:
  	git submodule update --recursive --remote

A content/pages/friends.md => content/pages/friends.md +14 -0
@@ 0,0 1,14 @@
+ +++
+ title = "Friends"
+ path = "friends"
+ template = "projects.html"
+ date = 2019-05-28
+ +++
+ 
+ ## Friendly sites
+ 
+ Links to sites operated by friends, colleagues, and acquaintances that write about interesting things. 
+ 
+ * [Charles Daniels](http://cdaniels.net)
+ * [honeymouse](https://github.com/honeymouse/)
+ 

M sass/_section.scss => sass/_section.scss +3 -15
@@ 21,29 21,17 @@ font-size: 1.6em;
      margin-bottom: 0px;
    }
-   
+ 
    p {
      margin-bottom: 1rem;
    }
  
    .post-title {
+     @include anchor-style;
+ 
      text-decoration: none;
      a {
-       @media (max-size: $mobile-screen) {
-         font-size: 2rem;
-       }
        text-decoration: none;
      }
    }
- 
-   span {
-     font-size: 1.5em;
-     display: block;
-     text-align: center;
-     color: $primary;
-     padding-top: 0px;
-     padding-bottom: .8em;
-   }
- 
-   margin-bottom: 0px !important;
  }

M templates/macros.html => templates/macros.html +17 -10
@@ 1,15 1,21 @@ {% macro post_link(page, section) %}
-   {% if page.draft %}
-   {% else %}
-     <h2 class="post-title">
-       <a href="/{{section.components[0]}}/{{page.slug | safe}}/">
-         * {{ page.title }}
-       </a>
-     </h2>
-     {% if page.extra.show_summary %}
-       {{ page.extra.summary | safe }}
+   <div class="row">
+     <tr>
+     {% if page.draft %}
+     {% else %}
+       <td> {{ page.date }} </td> 
+       ×
+       <span class="post-title">
+         <a href="/{{section.components[0]}}/{{page.slug | safe}}/">
+           <td>{{ page.title }}</td>
+         </a>
+       </span>
+       {% if page.extra.show_summary %}
+         <td> <br>{{ page.extra.summary | safe }} </td>
+       {% endif %}
      {% endif %}
-   {% endif %}
+     </tr>
+   </div>
  {% endmacro post_link %}
  
  {% macro render_taxonomies(taxonomies) %}


@@ 113,6 119,7 @@ <li {% if path == 'posts' %}class="active"{% endif %}><a href="/posts/">Posts</a></li>
          <li {% if path == 'proje' %}class="active"{% endif %}><a href="/projects/">Projects</a></li>
          <li {% if path == 'talks' %}class="active"{% endif %}><a href="/talks/">Talks</a></li>
+         <li {% if path == 'frien' %}class="active"{% endif %}><a href="/friends/">Friends</a></li>
          <li {% if path == 'conta' %}class="active"{% endif %}><a href="/contact/">Contact</a></li>
          <li {% if path == 'quote' %}class="active"{% endif %}><a href="/quotes/">Quotes</a></li>
          <li><a href="/rss.xml">RSS</a></li>