add theme
This commit is contained in:
80
themes/academic/layouts/partials/widgets/about.html
Normal file
80
themes/academic/layouts/partials/widgets/about.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- About widget -->
|
||||
<div class="row" itemprop="author" itemscope itemtype="http://schema.org/Person" itemref="{{ if $.Site.Params.email }}person-email{{ end }}{{ if $.Site.Params.phone }} person-telephone{{ end }}{{ if $.Site.Params.address}} person-address{{ end }}">
|
||||
<div class="col-xs-12 col-md-4">
|
||||
<div id="profile">
|
||||
|
||||
{{ if $.Site.Params.gravatar }}
|
||||
<div class="portrait" style="background-image: url('https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200');"></div>
|
||||
<meta itemprop="image" content="https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200">
|
||||
{{ else if $.Site.Params.avatar }}
|
||||
<div class="portrait" style="background-image: url('{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}');"></div>
|
||||
<meta itemprop="image" content="{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}">
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
|
||||
<h3 itemprop="jobTitle">{{ $.Site.Params.role }}</h3>
|
||||
{{ if $.Site.Params.organization }}
|
||||
<h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
{{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url">{{ end }}
|
||||
<span itemprop="name">{{ $.Site.Params.organization }}</span>
|
||||
{{ if $.Site.Params.organization_url }}</a>{{ end }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<link itemprop="url" href="{{ $.Site.BaseURL }}">
|
||||
|
||||
<ul class="social-icon" aria-hidden="true">
|
||||
{{ range $.Site.Params.social }}
|
||||
{{ $pack := or .icon_pack "fa" }}
|
||||
<li>
|
||||
<a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank">
|
||||
<i class="{{ $pack }} {{ $pack }}-{{ .icon }} big-icon"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8" itemprop="description">
|
||||
|
||||
{{ $page.Content }}
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{ with $page.Params.interests }}
|
||||
<div class="col-sm-5">
|
||||
<h3>{{ i18n "interests" | markdownify }}</h3>
|
||||
<ul class="ul-interests">
|
||||
{{ range .interests }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.education }}
|
||||
<div class="col-sm-7">
|
||||
<h3>{{ i18n "education" | markdownify }}</h3>
|
||||
<ul class="ul-edu fa-ul">
|
||||
{{ range .courses }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-graduation-cap"></i>
|
||||
<div class="description">
|
||||
<p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
|
||||
<p class="institution">{{ .institution }}</p>
|
||||
</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
78
themes/academic/layouts/partials/widgets/contact.html
Normal file
78
themes/academic/layouts/partials/widgets/contact.html
Normal file
@@ -0,0 +1,78 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $autolink := default true $page.Params.autolink }}
|
||||
|
||||
<!-- Contact widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
<ul class="fa-ul" itemscope>
|
||||
|
||||
{{ with $.Site.Params.email }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-envelope fa-2x" aria-hidden="true"></i>
|
||||
<span id="person-email" itemprop="email">
|
||||
{{- if $autolink }}<a href="mailto:{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.keybase }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-lock fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
<a href="https://keybase.io/{{ . }}" target="_blank">@{{ . }}</a> on Keybase.
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.phone }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-phone fa-2x" aria-hidden="true"></i>
|
||||
<span id="person-telephone" itemprop="telephone">
|
||||
{{- if $autolink }}<a href="tel:{{ . }}">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.skype }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-skype fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="skype:{{ . }}?call">{{ . }}</a>{{ else }}{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.telegram }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-telegram fa-2x" aria-hidden="true"></i>
|
||||
<span>
|
||||
{{- if $autolink }}<a href="https://telegram.me/{{ . }}" target="_blank">@{{ . }}</a>{{ else }}@{{ . }}{{ end -}}
|
||||
</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.address }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-map-marker fa-2x" aria-hidden="true"></i>
|
||||
<span id="person-address" itemprop="address">{{ . }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Site.Params.office_hours }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-clock-o fa-2x" aria-hidden="true"></i>
|
||||
<span>{{ . }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
12
themes/academic/layouts/partials/widgets/custom.html
Normal file
12
themes/academic/layouts/partials/widgets/custom.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Custom widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ $page.Content }}
|
||||
</div>
|
||||
</div>
|
||||
38
themes/academic/layouts/partials/widgets/posts.html
Normal file
38
themes/academic/layouts/partials/widgets/posts.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $posts_len := len (where (where $.Data.Pages "Type" "post") ".Params.notonhomepage" nil) }}
|
||||
|
||||
<!-- Blog Posts widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if gt $posts_len $page.Params.count }}
|
||||
<p class="view-all">
|
||||
<a href="{{ "/post/" | relLangURL }}">
|
||||
{{ i18n "more_posts" | markdownify }}
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.tags }}
|
||||
{{ range first $page.Params.count (where (where (where $.Data.Pages "Type" "post") ".Params.tags" "intersect" $page.Params.tags) ".Params.notonhomepage" nil) }}
|
||||
{{ $params := dict "post" . "page" $page }}
|
||||
{{ partial "post_li" $params }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ range first $page.Params.count (where (where $.Data.Pages "Type" "post") ".Params.notonhomepage" nil) }}
|
||||
{{ $params := dict "post" . "page" $page }}
|
||||
{{ partial "post_li" $params }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
83
themes/academic/layouts/partials/widgets/projects.html
Normal file
83
themes/academic/layouts/partials/widgets/projects.html
Normal file
@@ -0,0 +1,83 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Projects widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
<div class="project-toolbar">
|
||||
<div id="filters">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
{{ range $page.Params.filter }}
|
||||
<a href="#" data-filter="{{ .tag }}" class="btn btn-primary btn-large{{ if eq .tag "*" }} active{{ end }}">{{ .name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ if eq $page.Params.view 0 }}
|
||||
|
||||
<div id="container-projects" class="isotope">
|
||||
<ul class="fa-ul" style="position: relative">
|
||||
|
||||
{{ range where $.Data.Pages "Type" "project" }}
|
||||
<li class="project-item isotope-item {{ delimit .Params.tags " " }}">
|
||||
<span class="project-title">
|
||||
{{ if .Content }}
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ else }}
|
||||
{{ with .Params.external_link }}<a href="{{ . }}" target="_blank">{{ end }}
|
||||
{{ end }}
|
||||
<i class="fa-li fa fa-files-o pub-icon" aria-hidden="true"></i>
|
||||
{{ .Title }}
|
||||
{{ if .Content }}</a>{{ else }}{{ with .Params.external_link }}</a>{{ end }}{{ end }}
|
||||
</span>
|
||||
{{ with .Params.summary }}<p class="project-summary">{{ . | markdownify }}</p>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div id="container-projects" class="row isotope">
|
||||
|
||||
{{ range $project := where $.Data.Pages "Type" "project" }}
|
||||
{{ $.Scratch.Set "project_url" $project.Permalink }}
|
||||
{{ $.Scratch.Set "target" "" }}
|
||||
{{ if $project.Params.external_link }}
|
||||
{{ $.Scratch.Set "project_url" $project.Params.external_link }}
|
||||
{{ $.Scratch.Set "target" "target=\"_blank\"" }}
|
||||
{{ end }}
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-6 project-item isotope-item {{ delimit .Params.tags " " }}">
|
||||
<div class="card">
|
||||
{{ with $project.Params.image_preview }}
|
||||
<a href="{{ $.Scratch.Get "project_url" }}" title="" class="card-image hover-overlay"
|
||||
{{ $.Scratch.Get "target" | safeHTMLAttr }}>
|
||||
<img src="{{ "/img/" | relURL }}{{ . }}" alt="" class="img-responsive">
|
||||
</a>
|
||||
{{ end }}
|
||||
<div class="card-text">
|
||||
<h4><a href="{{ $.Scratch.Get "project_url" }}" {{ $.Scratch.Get "target" | safeHTMLAttr }}>{{ .Title }}</a></h4>
|
||||
<div class="card-desription">
|
||||
{{ with $project.Params.summary }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
35
themes/academic/layouts/partials/widgets/publications.html
Normal file
35
themes/academic/layouts/partials/widgets/publications.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $pubs_len := len (where $.Data.Pages "Type" "publication") }}
|
||||
|
||||
<!-- Publications widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if gt $pubs_len $page.Params.count }}
|
||||
<p class="view-all">
|
||||
<a href="{{ "/publication/" | relLangURL }}">
|
||||
{{ i18n "more_publications" | markdownify }}
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "publication") }}
|
||||
{{ partial "publication_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "publication") }}
|
||||
{{ partial "publication_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Selected Publications widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
|
||||
{{ partial "publication_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
|
||||
{{ partial "publication_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
35
themes/academic/layouts/partials/widgets/talks.html
Normal file
35
themes/academic/layouts/partials/widgets/talks.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
{{ $talks_len := len (where $.Data.Pages "Type" "talk") }}
|
||||
|
||||
<!-- Talks widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if gt $talks_len $page.Params.count }}
|
||||
<p class="view-all">
|
||||
<a href="{{ "/talk/" | relLangURL }}">
|
||||
{{ i18n "more_talks" | markdownify }}
|
||||
<i class="fa fa-angle-double-right"></i>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "talk") }}
|
||||
{{ partial "talk_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range first $page.Params.count (where $.Data.Pages "Type" "talk") }}
|
||||
{{ partial "talk_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
26
themes/academic/layouts/partials/widgets/talks_selected.html
Normal file
26
themes/academic/layouts/partials/widgets/talks_selected.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ $ := .root }}
|
||||
{{ $page := .page }}
|
||||
|
||||
<!-- Selected Talks widget -->
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4 section-heading">
|
||||
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
|
||||
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
|
||||
{{ if $page.Params.detailed_list }}
|
||||
{{ range (where (where $.Data.Pages "Type" "talk") ".Params.selected" true) }}
|
||||
{{ partial "talk_li_detailed" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<ul class="fa-ul">
|
||||
{{ range (where (where $.Data.Pages "Type" "talk") ".Params.selected" true) }}
|
||||
{{ partial "talk_li_simple" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user