add theme
This commit is contained in:
0
themes/academic/layouts/section/home.html
Normal file
0
themes/academic/layouts/section/home.html
Normal file
40
themes/academic/layouts/section/post.html
Normal file
40
themes/academic/layouts/section/post.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ partial "header_image.html" . }}
|
||||
|
||||
<div class="universal-wrapper">
|
||||
|
||||
<h1>{{ .Title | default (i18n "posts") }}</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div>
|
||||
{{ if .Params.image }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner">
|
||||
</a>
|
||||
{{end}}
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 1) }}
|
||||
<div class="article-style"><p>
|
||||
{{ if .Params.summary }}
|
||||
{{ printf "%s" .Params.summary | markdownify }}
|
||||
{{ else if .Truncated }}
|
||||
{{ printf "%s" .Summary | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</p></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
0
themes/academic/layouts/section/project.html
Normal file
0
themes/academic/layouts/section/project.html
Normal file
49
themes/academic/layouts/section/publication.html
Normal file
49
themes/academic/layouts/section/publication.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ partial "header_image.html" . }}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>{{ .Title | default (i18n "publications") }}</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
<p>
|
||||
{{ i18n "filter_by_type" }}:
|
||||
<select class="pub-filters-select">
|
||||
<option value="*">{{ i18n "filter_all" }}</option>
|
||||
{{ range $index, $taxonomy := .Site.Taxonomies.publication_types }}
|
||||
<option value=".pubtype-{{ (int $index) }}">
|
||||
{{ index $.Site.Params.publication_types (int $index) }}
|
||||
</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<div id="container-publications">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
|
||||
{{ if .Params.publication_types }}
|
||||
{{ $.Scratch.Set "pubtype" (index .Params.publication_types 0) }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "pubtype" 0 }}
|
||||
{{ end }}
|
||||
|
||||
<div class="grid-sizer col-md-12 isotope-item pubtype-{{ $.Scratch.Get "pubtype" }}">
|
||||
<i class="fa fa-file-text-o" aria-hidden="true"
|
||||
style="color:#03396c;font-size:80%;padding-top:6px; padding-right: 10px;"></i>{{ .Title }}
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
42
themes/academic/layouts/section/talk.html
Normal file
42
themes/academic/layouts/section/talk.html
Normal file
@@ -0,0 +1,42 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ partial "header_image.html" . }}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>{{ .Title | default (i18n "talks") }}</h1>
|
||||
|
||||
{{ with .Content }}
|
||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="row" id="talk_list">
|
||||
<div class="col-md-2">
|
||||
<h3>{{ .Key }}</h3>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<ul class="compact fa-ul">
|
||||
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-comment-o" aria-hidden="true"
|
||||
style="color:#03396c;font-size:80%;padding-top:6px;"></i>
|
||||
{{ .Title }}
|
||||
<p>{{ partial "talk_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in New Issue
Block a user