mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
Refactor HTML indents to 2 spaces and refactor long lines
This commit is contained in:
parent
30395f8c0b
commit
2548ae2ad2
19 changed files with 420 additions and 359 deletions
|
@ -2,22 +2,22 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<h1>Page not found</h1>
|
||||
<p>Maybe you were looking for one of these?</p>
|
||||
<h1>Page not found</h1>
|
||||
<p>Maybe you were looking for one of these?</p>
|
||||
|
||||
<h2>Recent Posts</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "post") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
<h2>Recent Posts</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "post") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
<h2>Recent Publications</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
<h2>Recent Publications</h2>
|
||||
{{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
|
||||
<ul>
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div>
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<div class="article-style"><p>{{ .Summary }}</p></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div>
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
<div class="article-style"><p>{{ .Summary }}</p></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
{{ partial "pagination" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -2,24 +2,24 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<article class="article" itemscope itemtype="http://schema.org/Article">
|
||||
<article class="article" itemscope itemtype="http://schema.org/Article">
|
||||
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner" itemprop="image">
|
||||
{{end}}
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner" itemprop="image">
|
||||
{{end}}
|
||||
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
|
||||
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
|
||||
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
</article>
|
||||
</article>
|
||||
|
||||
{{ partial "section_pager.html" . }}
|
||||
{{ partial "comments.html" . }}
|
||||
{{ partial "section_pager.html" . }}
|
||||
{{ partial "comments.html" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -2,24 +2,27 @@
|
|||
{{ $ := .content }}
|
||||
<div class="article-metadata">
|
||||
|
||||
<span class="article-date">
|
||||
<time datetime="{{ $.Date }}" itemprop="datePublished">{{ $.Date.Format $.Site.Params.date_format }}</time>
|
||||
</span>
|
||||
<span class="article-date">
|
||||
<time datetime="{{ $.Date }}" itemprop="datePublished">
|
||||
{{ $.Date.Format $.Site.Params.date_format }}
|
||||
</time>
|
||||
</span>
|
||||
|
||||
{{ if isset $.Params "tags" }}
|
||||
{{ $tagsLen := len $.Params.tags }}
|
||||
{{ if gt $tagsLen 0 }}
|
||||
<span class="article-tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
{{ range $k, $v := $.Params.tags }}
|
||||
<a class="article-tag-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a>{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ if isset $.Params "tags" }}
|
||||
{{ $tagsLen := len $.Params.tags }}
|
||||
{{ if gt $tagsLen 0 }}
|
||||
<span class="article-tags">
|
||||
<i class="fa fa-tags"></i>
|
||||
{{ range $k, $v := $.Params.tags }}
|
||||
<a class="article-tag-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a
|
||||
>{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if ne $is_list 1 }}
|
||||
{{ partial "share.html" $ }}
|
||||
{{ end }}
|
||||
{{ if ne $is_list 1 }}
|
||||
{{ partial "share.html" $ }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{ if and (and (not (eq .Site.DisqusShortname "")) (not (isset .Site.Params "disable_comments")) (not (isset .Params "disable_comments"))) }}
|
||||
<section id="comments">
|
||||
<div id="disqus_thread">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
<div id="disqus_thread">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/jquery-1.12.3.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/hugo-academic.js"></script>
|
||||
{{ range .Site.Params.custom_js }}
|
||||
<script src="{{ $.Site.BaseURL }}js/{{ . }}"></script>
|
||||
{{ end }}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.18.4/TweenMax.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/latest/plugins/ScrollToPlugin.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/jquery-1.12.3.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/hugo-academic.js"></script>
|
||||
{{ range .Site.Params.custom_js }}
|
||||
<script src="{{ $.Site.BaseURL }}js/{{ . }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', '{{ . }}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
/* Send outbound link click events */
|
||||
var links = document.querySelectorAll('a');
|
||||
Array.prototype.map.call(links, function(item) {
|
||||
if (item.host != document.location.host) {
|
||||
item.addEventListener('click', function() {
|
||||
var action = item.getAttribute('data-action') || 'follow';
|
||||
ga('send', 'event', 'outbound', action, item.href);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
/* Send outbound link click events */
|
||||
var links = document.querySelectorAll('a');
|
||||
Array.prototype.map.call(links, function(item) {
|
||||
if (item.host != document.location.host) {
|
||||
item.addEventListener('click', function() {
|
||||
var action = item.getAttribute('data-action') || 'follow';
|
||||
ga('send', 'event', 'outbound', action, item.href);
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
<!-- Code highlighting -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
<!-- Code highlighting -->
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.3.0/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
<!-- LaTeX math rendering -->
|
||||
{{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||
</script>
|
||||
<script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
|
||||
{{ end }}
|
||||
<!-- LaTeX math rendering -->
|
||||
{{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
|
||||
</script>
|
||||
<script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
|
||||
{{ end }}
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,20 @@
|
|||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<p class="powered-by">
|
||||
<div class="container">
|
||||
<p class="powered-by">
|
||||
|
||||
{{ with .Site.Copyright }}{{ . | markdownify}} · {{ end }}
|
||||
{{ with .Site.Copyright }}{{ . | markdownify}} · {{ end }}
|
||||
|
||||
Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>.
|
||||
Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic
|
||||
theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>.
|
||||
|
||||
<span class="pull-right"><a href="#" id="back_to_top"><span class="button_icon"><i class="fa fa-chevron-up fa-2x" aria-hidden="true"></i></span></a></span>
|
||||
<span class="pull-right">
|
||||
<a href="#" id="back_to_top">
|
||||
<span class="button_icon">
|
||||
<i class="fa fa-chevron-up fa-2x" aria-hidden="true"></i>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -2,32 +2,32 @@
|
|||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="theme" content="hugo-academic">
|
||||
{{ .Hugo.Generator }}
|
||||
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="theme" content="hugo-academic">
|
||||
{{ .Hugo.Generator }}
|
||||
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/academicons.min.css">
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700|Merriweather|Roboto+Mono">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-academic.css">
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/academicons.min.css">
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700|Merriweather|Roboto+Mono">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hugo-academic.css">
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .RSSlink }}
|
||||
<link rel="alternate" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
<link rel="feed" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
{{ end }}
|
||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if .RSSlink }}
|
||||
<link rel="alternate" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
<link rel="feed" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
||||
{{ end }}
|
||||
<link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
</head>
|
||||
<body id="top">
|
||||
|
|
|
@ -1,28 +1,29 @@
|
|||
{{ $baseUrl := .Site.BaseURL }}
|
||||
<nav class="navbar navbar-default navbar-fixed-top" id="navbar-main">
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ $baseUrl }}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
|
||||
data-target=".navbar-collapse" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{{ $baseUrl }}">{{ .Site.Title }}</a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="#navbar-collapse-1">
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
<div class="collapse navbar-collapse" id="#navbar-collapse-1">
|
||||
|
||||
<!-- Left Nav Bar -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="nav-item"><a href="{{ $baseUrl }}{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<!-- Left Nav Bar -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="nav-item"><a href="{{ $baseUrl }}{{ .URL }}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div><!-- /.container -->
|
||||
</div><!-- /.navbar-collapse -->
|
||||
</div><!-- /.container -->
|
||||
</nav>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
<nav>
|
||||
<ul class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">« Previous</a></li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">« Previous</a></li>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">Next »</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,53 +1,61 @@
|
|||
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<div class="row">
|
||||
{{ if .Params.image_preview }}
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image_preview }}" class="pub-banner" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
{{ else if .Params.image}}
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="pub-banner" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
{{ else }}
|
||||
<div class="col-md-12">
|
||||
{{end}}
|
||||
<div class="row">
|
||||
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
||||
</h3>
|
||||
{{ if .Params.image_preview }}
|
||||
|
||||
<div class="pub-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-authors" itemprop="author">
|
||||
{{ with .Params.authors }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-publication">
|
||||
{{ if .Params.publication_short }}
|
||||
{{ .Params.publication_short | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Params.publication | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-links">
|
||||
{{ partial "publication_links" (dict "content" . "is_list" 1) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image_preview }}" class="pub-banner"
|
||||
itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ else if .Params.image}}
|
||||
|
||||
<div class="col-md-12">
|
||||
<a href="{{ .Permalink }}">
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="pub-banner" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ else }}
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
{{ end }}
|
||||
|
||||
<h3 class="article-title" itemprop="name">
|
||||
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
|
||||
</h3>
|
||||
|
||||
<div class="pub-abstract" itemprop="text">
|
||||
{{ if .Params.abstract_short }}
|
||||
{{ .Params.abstract_short }}
|
||||
{{ else }}
|
||||
{{ .Params.abstract }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-authors" itemprop="author">
|
||||
{{ with .Params.authors }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-publication">
|
||||
{{ if .Params.publication_short }}
|
||||
{{ .Params.publication_short | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Params.publication | markdownify }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="pub-links">
|
||||
{{ partial "publication_links" (dict "content" . "is_list" 1) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<li itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<i class="fa-li fa fa-file-text-o pub-icon" aria-hidden="true"></i>
|
||||
<span itemprop="name">{{ .Title }}</span>
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
<i class="fa-li fa fa-file-text-o pub-icon" aria-hidden="true"></i>
|
||||
<span itemprop="name">{{ .Title }}</span>
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</li>
|
||||
|
|
|
@ -2,16 +2,42 @@
|
|||
{{ $ := .content }}
|
||||
|
||||
{{ if $is_list }}
|
||||
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">Details</a>
|
||||
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
|
||||
Details
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_pdf }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
PDF
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_slides }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
Slides
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_video }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
Video
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_code }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
Code
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_dataset }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
Dataset
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with $.Params.url_project }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
|
||||
Project
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with $.Params.url_pdf }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">PDF</a>{{ end }}
|
||||
{{ with $.Params.url_slides }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">Slides</a>{{ end }}
|
||||
{{ with $.Params.url_video }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">Video</a>{{ end }}
|
||||
{{ with $.Params.url_code }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">Code</a>{{ end }}
|
||||
{{ with $.Params.url_dataset }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">Dataset</a>{{ end }}
|
||||
{{ with $.Params.url_project }}<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">Project</a>{{ end }}
|
||||
|
||||
{{ range $.Params.url_custom }}
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">{{ .name }}</a>
|
||||
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
|
||||
{{ .name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<nav>
|
||||
<ul class="pager">
|
||||
{{if .PrevInSection}}
|
||||
<li class="previous"><a href="{{.PrevInSection.Permalink}}"><span aria-hidden="true">←</span> {{.PrevInSection.Title}}</a></li>
|
||||
{{end}}
|
||||
<ul class="pager">
|
||||
{{if .PrevInSection}}
|
||||
<li class="previous"><a href="{{.PrevInSection.Permalink}}"><span
|
||||
aria-hidden="true">←</span> {{.PrevInSection.Title}}</a></li>
|
||||
{{end}}
|
||||
|
||||
{{if .NextInSection}}
|
||||
<li class="next"><a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} <span aria-hidden="true">→</span></a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{if .NextInSection}}
|
||||
<li class="next"><a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} <span
|
||||
aria-hidden="true">→</span></a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
|
@ -1,31 +1,40 @@
|
|||
{{ if .Site.Params.sharing }}
|
||||
<div class="share-box">
|
||||
<ul class="share">
|
||||
<li>
|
||||
<a class="facebook" href="https://www.facebook.com/sharer.php?u={{ .Permalink | html }}" target="_blank">
|
||||
<i class="fa fa-facebook"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="twitter" href="https://twitter.com/intent/tweet?text={{ .Title | html }}&url={{ .Permalink | html }}" target="_blank">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink | html }}&title={{ .Title | html }}" target="_blank">
|
||||
<i class="fa fa-linkedin"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="weibo" href="http://service.weibo.com/share/share.php?url={{ .Permalink | html }}&title={{ .Title | html }}" target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="email" href="mailto:?subject={{ .Title | html }}&body={{ .Permalink | html }}">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="share">
|
||||
<li>
|
||||
<a class="facebook"
|
||||
href="https://www.facebook.com/sharer.php?u={{ .Permalink | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-facebook"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="twitter"
|
||||
href="https://twitter.com/intent/tweet?text={{ .Title | html }}&url={{ .Permalink | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-twitter"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="linkedin"
|
||||
href="https://www.linkedin.com/shareArticle?mini=true&url={{ .Permalink | html }}&title={{ .Title | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-linkedin"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="weibo"
|
||||
href="http://service.weibo.com/share/share.php?url={{ .Permalink | html }}&title={{ .Title | html }}"
|
||||
target="_blank">
|
||||
<i class="fa fa-weibo"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="email"
|
||||
href="mailto:?subject={{ .Title | html }}&body={{ .Permalink | html }}">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -2,21 +2,23 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<article class="article article-project" itemscope itemtype="http://schema.org/Article">
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner" itemprop="image">
|
||||
{{end}}
|
||||
<article class="article article-project" itemscope itemtype="http://schema.org/Article">
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="article-banner" itemprop="image">
|
||||
{{end}}
|
||||
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
|
||||
{{ with .Params.external_link }}<a class="btn btn-primary btn-outline" href="{{ . }}">Go to Project Site</a>{{ end }}
|
||||
{{ with .Params.external_link }}
|
||||
<a class="btn btn-primary btn-outline" href="{{ . }}">Go to Project Site</a>
|
||||
{{ end }}
|
||||
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
<div class="article-style" itemprop="articleBody">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ partial "section_pager.html" . }}
|
||||
{{ partial "section_pager.html" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -2,73 +2,75 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<div class="pub" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<div class="pub-title">
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
<span class="pub-authors" itemprop="author">
|
||||
<div class="pub" itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<div class="pub-title">
|
||||
<h1 itemprop="name">{{ .Title }}</h1>
|
||||
<span class="pub-authors" itemprop="author">
|
||||
{{ with .Params.authors }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
</span>
|
||||
<span class="pull-right">
|
||||
<span class="pull-right">
|
||||
{{ partial "share.html" . }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="pub-banner" itemprop="image">
|
||||
{{end}}
|
||||
|
||||
<h3>Abstract</h3>
|
||||
<p class="pub-abstract" itemprop="text">{{ .Params.abstract }}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading">Publication</div>
|
||||
<div class="col-xs-12 col-sm-9">{{ .Params.publication | markdownify }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading">Date</div>
|
||||
<div class="col-xs-12 col-sm-9" itemprop="datePublished">{{ .Date.Format "January, 2006" }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="row" style="padding-top: 10px">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading" style="line-height:34px;">Links</div>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
|
||||
{{ partial "publication_links" (dict "content" . "is_list" 0) }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="space-below"></div>
|
||||
|
||||
<div class="article-style">{{ .Content }}</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ partial "section_pager.html" . }}
|
||||
{{ if .Params.image }}
|
||||
<img src="{{ $.Site.BaseURL }}img/{{ .Params.image }}" class="pub-banner" itemprop="image">
|
||||
{{end}}
|
||||
|
||||
<h3>Abstract</h3>
|
||||
<p class="pub-abstract" itemprop="text">{{ .Params.abstract }}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading">Publication</div>
|
||||
<div class="col-xs-12 col-sm-9">{{ .Params.publication | markdownify }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading">Date</div>
|
||||
<div class="col-xs-12 col-sm-9" itemprop="datePublished">
|
||||
{{ .Date.Format "January, 2006" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="row" style="padding-top: 10px">
|
||||
<div class="col-sm-1"></div>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-3 pub-row-heading" style="line-height:34px;">Links</div>
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
|
||||
{{ partial "publication_links" (dict "content" . "is_list" 0) }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1"></div>
|
||||
</div>
|
||||
<div class="visible-xs space-below"></div>
|
||||
|
||||
<div class="space-below"></div>
|
||||
|
||||
<div class="article-style">{{ .Content }}</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ partial "section_pager.html" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -2,29 +2,29 @@
|
|||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
|
||||
<h1>Posts</h1>
|
||||
<h1>Posts</h1>
|
||||
|
||||
{{ $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 .Truncated }}
|
||||
{{ printf "%s" .Summary | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</p></div>
|
||||
</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 .Truncated }}
|
||||
{{ printf "%s" .Summary | markdownify }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</p></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
{{ partial "pagination" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
|
@ -1,33 +1,34 @@
|
|||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>Publications</h1>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>Publications</h1>
|
||||
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="row" id="pub_list">
|
||||
<div class="col-md-2">
|
||||
<h3>{{ .Key }}</h3>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<ul class="compact fa-ul">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="row" id="pub_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-file-text-o" aria-hidden="true" style="color:#03396c;font-size:80%;padding-top:6px;"></i>
|
||||
{{ .Title }}
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<li>
|
||||
<i class="fa-li fa fa-file-text-o" aria-hidden="true"
|
||||
style="color:#03396c;font-size:80%;padding-top:6px;"></i>
|
||||
{{ .Title }}
|
||||
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ partial "footer_container.html" . }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue