Add first article
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{{- $links := . -}}
|
||||
{{- $class := "" -}}
|
||||
{{- if reflect.IsMap . -}}
|
||||
{{- $links = .links -}}
|
||||
{{- $class = .class -}}
|
||||
{{- end -}}
|
||||
{{- with $links -}}
|
||||
<div class="post-meta pub-links{{ with $class }} {{ . }}{{ end }}" style="margin-top:0.35em;">
|
||||
{{ delimit . " <span class=\"more-meta\">·</span> " | safeHTML }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,24 @@
|
||||
<article class="post research-paper">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
{{- $author := or .Params.author .Params.authors -}}
|
||||
{{- with $author }}
|
||||
<div class="post-meta" style="text-align:center;">
|
||||
{{- if reflect.IsSlice . -}}
|
||||
{{ delimit . ", " }}
|
||||
{{- else -}}
|
||||
{{ . }}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- end }}
|
||||
<div class="post-meta" style="text-align:center;">
|
||||
{{- with .Params.venue }}<span class="post-time">{{ . }}</span>{{ end -}}
|
||||
{{- with .Params.year }}<span class="more-meta">{{ . }}</span>{{ end -}}
|
||||
{{- with or .Params.pubtype .Params.type }}<span class="more-meta">{{ . }}</span>{{ end -}}
|
||||
</div>
|
||||
{{ partial "research/paper-links.html" . }}
|
||||
</header>
|
||||
<div class="post-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,47 @@
|
||||
{{- $links := slice -}}
|
||||
{{- $page := . -}}
|
||||
|
||||
{{- $pdf := .Params.pdf -}}
|
||||
{{- if not $pdf }}
|
||||
{{- with .Resources.Match "paper/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $pdf = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with $pdf }}{{ $links = $links | append (printf "<a href=\"%s\">PDF</a>" .) }}{{ end -}}
|
||||
|
||||
{{- $poster := .Params.poster -}}
|
||||
{{- if not $poster }}
|
||||
{{- with .Resources.Match "poster/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $poster = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with $poster }}{{ $links = $links | append (printf "<a href=\"%s\">Poster</a>" .) }}{{ end -}}
|
||||
|
||||
{{- $talk := .Params.talk -}}
|
||||
{{- if not $talk }}
|
||||
{{- with .Resources.Match "talk/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $talk = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- with $talk }}{{ $links = $links | append (printf "<a href=\"%s\">Slides</a>" .) }}{{ end -}}
|
||||
|
||||
{{- with .Params.video }}{{ $links = $links | append (printf "<a href=\"%s\">Video</a>" .) }}{{ end -}}
|
||||
{{- with .Params.code }}{{ $links = $links | append (printf "<a href=\"%s\">Code</a>" .) }}{{ end -}}
|
||||
{{- with .Params.doi }}{{ $links = $links | append (printf "<a href=\"https://doi.org/%s\">DOI</a>" .) }}{{ end -}}
|
||||
|
||||
{{- $matlab := .GetPage "matlab" -}}
|
||||
{{- with $matlab }}{{ $links = $links | append (printf "<a href=\"%s\">Matlab</a>" .RelPermalink) }}{{ end -}}
|
||||
|
||||
{{- $python := .GetPage "python" -}}
|
||||
{{- with $python }}{{ $links = $links | append (printf "<a href=\"%s\">Python</a>" .RelPermalink) }}{{ end -}}
|
||||
|
||||
{{- $tikz := .GetPage "tikz" -}}
|
||||
{{- with $tikz }}{{ $links = $links | append (printf "<a href=\"%s\">TikZ Figures</a>" .RelPermalink) }}{{ end -}}
|
||||
|
||||
{{ partial "research/link-row.html" (dict "links" $links "class" "pub-links-centered") }}
|
||||
@@ -0,0 +1,75 @@
|
||||
{{- $p := .pub -}}
|
||||
{{- $prefix := .prefix -}}
|
||||
{{- $page := false -}}
|
||||
{{- with $p.page -}}
|
||||
{{- $page = site.GetPage (printf "/research/%s" .) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $links := slice -}}
|
||||
{{- with $page }}{{ $links = $links | append (printf "<a href=\"%s\">Page</a>" .RelPermalink) }}{{ end -}}
|
||||
|
||||
{{- $pdf := "" -}}
|
||||
{{- if $page }}
|
||||
{{- with $page.Resources.Match "paper/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $pdf = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- if not $pdf }}{{ $pdf = $p.pdf }}{{ end -}}
|
||||
{{- with $pdf }}{{ $links = $links | append (printf "<a href=\"%s\">PDF</a>" .) }}{{ end -}}
|
||||
|
||||
{{- $poster := "" -}}
|
||||
{{- if $page }}
|
||||
{{- with $page.Resources.Match "poster/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $poster = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- if not $poster }}{{ $poster = $p.poster }}{{ end -}}
|
||||
{{- with $poster }}{{ $links = $links | append (printf "<a href=\"%s\">Poster</a>" .) }}{{ end -}}
|
||||
|
||||
{{- $slides := "" -}}
|
||||
{{- if $page }}
|
||||
{{- with $page.Resources.Match "talk/*.pdf" }}
|
||||
{{- range first 1 . }}
|
||||
{{- $slides = .RelPermalink -}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- if not $slides }}{{ $slides = $p.slides }}{{ end -}}
|
||||
{{- with $slides }}{{ $links = $links | append (printf "<a href=\"%s\">Slides</a>" .) }}{{ end -}}
|
||||
|
||||
{{- with $p.code }}{{ $links = $links | append (printf "<a href=\"%s\">Code</a>" .) }}{{ end -}}
|
||||
{{- with $p.video }}{{ $links = $links | append (printf "<a href=\"%s\">Video</a>" .) }}{{ end -}}
|
||||
{{- with $p.doi }}{{ $links = $links | append (printf "<a href=\"https://doi.org/%s\">DOI</a>" .) }}{{ end -}}
|
||||
|
||||
<div class="pub-item">
|
||||
<div class="pub-header">
|
||||
<span class="pub-prefix">[{{ $prefix }}]</span>
|
||||
{{- with $page -}}
|
||||
<a href="{{ .RelPermalink }}" class="pub-title">{{ $p.title }}</a>
|
||||
{{- else -}}
|
||||
<strong class="pub-title">{{ $p.title }}</strong>
|
||||
{{- end -}}
|
||||
{{- with $p.note }}<span class="pub-note">{{ . }}</span>{{ end }}
|
||||
</div>
|
||||
<div class="pub-meta">
|
||||
{{- range $i, $a := $p.authors -}}
|
||||
{{- if $i }}, {{ end -}}
|
||||
{{- if eq $a "T. Dehaeze" -}}<strong>{{ $a }}</strong>{{ else }}{{ $a }}{{ end -}}
|
||||
{{- end -}}.
|
||||
{{- $vol := $p.volume -}}
|
||||
{{- $num := $p.number -}}
|
||||
{{- $pages := $p.pages -}}
|
||||
{{- $year := $p.year -}}
|
||||
{{- $hasDetail := or $vol $num $pages -}}
|
||||
{{- with $p.venue }} <em>{{ . }}</em>{{ end -}}
|
||||
{{- if and $p.venue $hasDetail }},{{ end -}}
|
||||
{{- if and $vol $num }} {{ $vol }}({{ $num }}){{ else if $vol }} {{ $vol }}{{ end -}}
|
||||
{{- if $pages }}{{ if or $vol $num }}:{{ else if $p.venue }} {{ end }}{{ $pages }}{{ end -}}
|
||||
{{- if $year }}{{ if $hasDetail }},{{ end }} {{ $year }}{{ end -}}.
|
||||
</div>
|
||||
{{ partial "research/link-row.html" $links }}
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<link rel="stylesheet" href="{{ "css/research.css" | relURL }}">
|
||||
@@ -0,0 +1,8 @@
|
||||
{{- if and .Site.Params.toc (ne .Params.toc false) -}}
|
||||
<div class="post-toc" id="post-toc">
|
||||
<h2 class="post-toc-title">{{ T "toc" }}</h2>
|
||||
<div class="post-toc-content always-active">
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user