lots of fixes and customisations
This commit is contained in:
		
							parent
							
								
									a866f96482
								
							
						
					
					
						commit
						e969976249
					
				
					 31 changed files with 751 additions and 832 deletions
				
			
		| 
						 | 
				
			
			@ -1,122 +1,144 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
  <head>
 | 
			
		||||
    <meta charset="utf-8">
 | 
			
		||||
<head>
 | 
			
		||||
  <meta charset="utf-8">
 | 
			
		||||
 | 
			
		||||
    {{ partial "meta.html" . }}
 | 
			
		||||
  {{ partial "meta.html" . }}
 | 
			
		||||
 | 
			
		||||
    <base href="{{ .Site.BaseURL }}">
 | 
			
		||||
    <title>{{ .Site.Title }}</title>
 | 
			
		||||
    <link rel="canonical" href="{{ .Permalink }}">
 | 
			
		||||
    <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
 | 
			
		||||
  <base href="{{ .Site.BaseURL }}">
 | 
			
		||||
  <title>{{ .Site.Title }}</title>
 | 
			
		||||
  <link rel="canonical" href="{{ .Permalink }}">
 | 
			
		||||
  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
 | 
			
		||||
 | 
			
		||||
    {{ partial "head_includes.html" . }}
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    <div id="topbar">
 | 
			
		||||
      <div class="wrapper">
 | 
			
		||||
        <header>
 | 
			
		||||
          {{ partial "sidebar.html" . }}  
 | 
			
		||||
        </header>
 | 
			
		||||
  {{ partial "head_includes.html" . }}
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
  <div id="topbar">
 | 
			
		||||
    <div class="wrapper">
 | 
			
		||||
      <header>
 | 
			
		||||
        {{ partial "sidebar.html" . }}  
 | 
			
		||||
      </header>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
  <div class="wrapper">		
 | 
			
		||||
    <div class="units-row">
 | 
			
		||||
      <div class="unit-66">
 | 
			
		||||
        <div class="units-row-end">
 | 
			
		||||
          <div class="unit-33 dateblock">
 | 
			
		||||
             
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="unit-66">
 | 
			
		||||
           <p></p>
 | 
			
		||||
         </div>
 | 
			
		||||
       </div>
 | 
			
		||||
       {{ range first 2 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
 | 
			
		||||
       <div class="units-row-end">
 | 
			
		||||
        <div class="unit-33 dateblock">
 | 
			
		||||
          <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
 | 
			
		||||
          <h4>{{ .Date.Format "2 January 2006" }}</h4>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="unit-66">
 | 
			
		||||
          {{ if .Truncated }}
 | 
			
		||||
          {{ .Summary }}
 | 
			
		||||
          <p class="text-right"><a href="{{ .RelPermalink }}">Read More…</a></p>
 | 
			
		||||
          {{ else }}
 | 
			
		||||
          {{ .Content }}
 | 
			
		||||
          {{ end }}	
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      {{ end }}
 | 
			
		||||
 | 
			
		||||
      <hr>
 | 
			
		||||
 | 
			
		||||
      <div class="units-row-end">
 | 
			
		||||
        <div class="unit-33 dateblock"> </div>
 | 
			
		||||
      </div>	
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="wrapper">		
 | 
			
		||||
      <div class="units-row">
 | 
			
		||||
        <div class="unit-66">
 | 
			
		||||
          <div class="units-row-end">
 | 
			
		||||
            <div class="unit-33 dateblock">
 | 
			
		||||
               
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="unit-66">
 | 
			
		||||
	      <p></p>
 | 
			
		||||
	    </div>
 | 
			
		||||
          </div>
 | 
			
		||||
          {{ range first 2 ((where .Data.Pages.ByDate "Section" "blog").Reverse) }}
 | 
			
		||||
          <div class="units-row-end">
 | 
			
		||||
            <div class="unit-33 dateblock">
 | 
			
		||||
              <h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
 | 
			
		||||
              <h4>{{ .Date.Format "2 January 2006" }}</h4>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="unit-66">
 | 
			
		||||
              {{ if .Truncated }}
 | 
			
		||||
              {{ .Summary }}
 | 
			
		||||
              <p class="text-right"><a href="{{ .RelPermalink }}">Read More…</a></p>
 | 
			
		||||
              {{ else }}
 | 
			
		||||
              {{ .Content }}
 | 
			
		||||
              {{ end }}	
 | 
			
		||||
            </div>
 | 
			
		||||
          </div>
 | 
			
		||||
    <div class="unit-33">
 | 
			
		||||
 | 
			
		||||
          {{ end }}
 | 
			
		||||
      <h3>Recent Papers</h3>
 | 
			
		||||
      <ul class="compact fa-ul">
 | 
			
		||||
        {{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }}
 | 
			
		||||
        <li><i class="fa-li fa  {{ if eq .Type "unpublished" }}fa-file-o {{ else if eq .Params.kind "book" }}fa-book {{ else }}fa-file {{ end }} fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i> {{ .Params.citation | safeHTML }} 
 | 
			
		||||
          <a href="{{ .Permalink }}" class="badge badge-small">Abstract</a>
 | 
			
		||||
          {{ if isset .Params "file" }}<a href="{{.Site.BaseURL}}files/papers/{{ .Params.file }}" class="badge badge-small"><i class="fa fa-file-pdf-o"></i> pdf</a>{{ end }}
 | 
			
		||||
        </li>
 | 
			
		||||
        {{ end }}
 | 
			
		||||
      </ul>
 | 
			
		||||
 | 
			
		||||
          <hr>
 | 
			
		||||
      <footer class="group">	
 | 
			
		||||
        <nav class="navbar navbar-right"><a href="/publications">→ More Papers</a></nav> 
 | 
			
		||||
      </footer>
 | 
			
		||||
 | 
			
		||||
          <div class="units-row-end">
 | 
			
		||||
            <div class="unit-33 dateblock"> </div>
 | 
			
		||||
          </div>	
 | 
			
		||||
        </div>
 | 
			
		||||
      <h3>Recent & Upcoming Presentations</h3>
 | 
			
		||||
      <ul class="compact fa-ul">
 | 
			
		||||
        {{ range (where .Data.Pages.ByDate "Section" "presentation").Reverse }}
 | 
			
		||||
        {{ if (ge .Date.Unix .Now.Unix) }}
 | 
			
		||||
        {{ if (le .Date.Unix (add .Now.Unix 10368000)) }}
 | 
			
		||||
        <li><i class="fa-li fa fa-comment-o fa-fw" style="color:#b00;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><em>{{ .Title | safeHTML }}</em></a>, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). {{ partial "comingsoon.html" . }}
 | 
			
		||||
        </li>   
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ if (ge .Now.Unix .Date.Unix ) }}
 | 
			
		||||
        {{ if (le .Now.Unix (add .Date.Unix 12368000)) }}
 | 
			
		||||
        <li><i class="fa-li fa fa-comment-o fa-fw" style="color:#e88;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><em>{{ .Title | safeHTML }}</em></a>, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}).
 | 
			
		||||
        </li>   
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
      </ul>
 | 
			
		||||
 | 
			
		||||
        <div class="unit-33">
 | 
			
		||||
 | 
			
		||||
          <h3>Recent Papers</h3>
 | 
			
		||||
          <ul class="compact fa-ul">
 | 
			
		||||
            {{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }}
 | 
			
		||||
            <li><i class="fa-li fa  {{ if eq .Type "unpublished" }}fa-file-o {{ else if eq .Params.kind "book" }}fa-book {{ else }}fa-file {{ end }} fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i> {{ .Params.citation | safeHTML }} 
 | 
			
		||||
              <a href="{{ .Permalink }}" class="badge badge-small">Abstract</a>
 | 
			
		||||
              {{ if isset .Params "file" }}<a href="{{.Site.BaseURL}}files/papers/{{ .Params.file }}" class="badge badge-small"><i class="fa fa-file-pdf-o"></i> pdf</a>{{ end }}
 | 
			
		||||
            </li>
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
          </ul>
 | 
			
		||||
	  
 | 
			
		||||
          <footer class="group">	
 | 
			
		||||
            <nav class="navbar navbar-right"><a href="/publications">→ More Papers</a></nav> 
 | 
			
		||||
          </footer>
 | 
			
		||||
	  
 | 
			
		||||
          <h3>Current Teaching</h3>			
 | 
			
		||||
	  <ul class="compact fa-ul">
 | 
			
		||||
            {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
	    {{ if (ge .Date.Unix now.Unix) }}
 | 
			
		||||
	    {{ if (le .Date.Unix (add now.Unix 7776000)) }}
 | 
			
		||||
            <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}.  {{ partial "comingsoon.html" . }}
 | 
			
		||||
            </li>		
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
 | 
			
		||||
            {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
	    {{ if (le .Date.Unix now.Unix) }}
 | 
			
		||||
	    {{ if (le now.Unix (add .Date.Unix .Params.duration)) }}
 | 
			
		||||
            <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "nowon.html" . }}
 | 
			
		||||
            </li>		
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
            {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
	    {{ $classend := (add .Date.Unix .Params.duration) }}
 | 
			
		||||
	    {{ if (ge now.Unix $classend ) }}
 | 
			
		||||
	    {{ if (le now.Unix (add $classend 10368000)) }}
 | 
			
		||||
 | 
			
		||||
            <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. <span class="badge badge-small">completed</span>
 | 
			
		||||
            </li>		
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
	    {{ end }}
 | 
			
		||||
          </ul>
 | 
			
		||||
      <footer class="group">  
 | 
			
		||||
        <nav class="navbar navbar-right"><a href="/presentations">→ More Presentations</a></nav> 
 | 
			
		||||
      </footer>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
          <footer class="group">	
 | 
			
		||||
            <nav class="navbar navbar-right"><br /><a href="teaching">→ Other Classes</a></nav> 
 | 
			
		||||
          </footer>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>	
 | 
			
		||||
      <h3>Current Teaching</h3>			
 | 
			
		||||
      <ul class="compact fa-ul">
 | 
			
		||||
        {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
        {{ if (ge .Date.Unix now.Unix) }}
 | 
			
		||||
        {{ if (le .Date.Unix (add now.Unix 7776000)) }}
 | 
			
		||||
        <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}.  {{ partial "comingsoon.html" . }}
 | 
			
		||||
        </li>		
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
 | 
			
		||||
    </div><!-- /end .wrapper -->
 | 
			
		||||
        {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
        {{ if (le .Date.Unix now.Unix) }}
 | 
			
		||||
        {{ if (le now.Unix (add .Date.Unix .Params.duration)) }}
 | 
			
		||||
        <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "nowon.html" . }}
 | 
			
		||||
        </li>		
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ range (where .Data.Pages.ByDate "Section" "teaching").Reverse }}
 | 
			
		||||
        {{ $classend := (add .Date.Unix .Params.duration) }}
 | 
			
		||||
        {{ if (ge now.Unix $classend ) }}
 | 
			
		||||
        {{ if (le now.Unix (add $classend 10368000)) }}
 | 
			
		||||
 | 
			
		||||
    <hr class="separator">
 | 
			
		||||
        <li><i class="fa-li fa fa-mortar-board fa-fw" style="color:#03396c;font-size:80%;padding-top:6px;"></i><a href="{{ .Permalink }}"><span class="caps">{{ .Title }}</span></a>, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. <span class="badge badge-small">completed</span>
 | 
			
		||||
        </li>		
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
        {{ end }}
 | 
			
		||||
      </ul>
 | 
			
		||||
 | 
			
		||||
    {{ partial "whatisthis.html" . }}
 | 
			
		||||
      <footer class="group">	
 | 
			
		||||
        <nav class="navbar navbar-right"><br /><a href="/teaching">→ Other Classes</a></nav> 
 | 
			
		||||
      </footer>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>	
 | 
			
		||||
 | 
			
		||||
    {{ partial "foot.html" . }}
 | 
			
		||||
  </body>
 | 
			
		||||
</div><!-- /end .wrapper -->
 | 
			
		||||
 | 
			
		||||
<hr class="separator">
 | 
			
		||||
 | 
			
		||||
{{ partial "whatisthis.html" . }}
 | 
			
		||||
 | 
			
		||||
{{ partial "foot.html" . }}
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue