Archived
Initialize homepage
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{{ define "content" }}
|
||||
{{ partial "404.html" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,80 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
<meta name="description" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
|
||||
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:title" content="{{ block "og-title" . }}{{ .Site.Title }}{{ end }}">
|
||||
<meta property="og:description" content="{{ if .IsPage }}{{ .Params.description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:image" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ .Params.thumbnail }}{{ else }}{{ .Site.BaseURL }}{{ .Site.Params.thumbnail }}{{ end }}">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="{{ .Permalink }}">
|
||||
<meta name="twitter:image" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ .Params.thumbnail }}{{ else }}{{ .Site.BaseURL }}{{ .Site.Params.thumbnail }}{{ end }}">
|
||||
|
||||
<base href="{{ .Permalink }}">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ if or (.Site.Params.snsShare) (.Site.Params.faIcons) }}
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700">
|
||||
<link rel="stylesheet" href="{{ "/css/normalize.min.css" | absURL }}">
|
||||
<link rel="stylesheet" href="{{ "/css/style.min.css" | absURL }}">
|
||||
|
||||
{{ if .Site.Params.rtl}}
|
||||
<link rel="stylesheet" href="{{ "/css/style-rtl.min.css" | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
||||
|
||||
{{ with .Site.Home.AlternativeOutputFormats.Get "RSS" }}
|
||||
<link rel="alternate" href="{{ .Permalink }}" type="application/rss+xml" title="{{ $.Site.Title | plainify }}">
|
||||
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title | plainify }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ hugo.Generator }}
|
||||
</head>
|
||||
|
||||
<body class="{{ if .Site.Params.rtl }}rtl{{ end }}">
|
||||
<main class="wrapper">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="content">
|
||||
{{ block "content" . }}{{ end }}
|
||||
</div>
|
||||
{{ if or (.Site.Params.fixedbarContent) (.Site.Params.snsShare)}}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
|
||||
<script src="{{ "js/app.js" | absURL }}"></script>
|
||||
{{ with .Site.Params.fixedbarContentAfter }}
|
||||
<script>
|
||||
(function($) {
|
||||
$(function() {
|
||||
$('#privateTrigger').on('click', function() {
|
||||
$('.private').slideToggle();
|
||||
$('#privateTriggerText').text("{{ . }}");
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ define "og-title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
{{ partial "list.html" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ define "og-title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
{{ partial "page.html" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ define "content" }}
|
||||
{{ partial "home.html" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,7 @@
|
||||
<section class="container centered">
|
||||
<div class="error">
|
||||
<h1>404</h1>
|
||||
<h2>Page Not Found</h2>
|
||||
<p>Sorry, this page does not exist.<br />You can head back to <a href="{{ .Site.BaseURL }}">homepage</a>.</p>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,36 @@
|
||||
<footer class="footer">
|
||||
<section class="container">
|
||||
{{ if .Site.Params.snsShare }}
|
||||
<div class="sns-shares sp-sns-shares">
|
||||
{{ if .Site.Params.enableTwitterShare }}
|
||||
<a class="sns-share twitter-share" href="https://twitter.com/intent/tweet?original_referer={{ .Permalink }}&ref_src=twsrc%5Etfw&text={{ .Title }} {{ .Site.Title }}&tw_p=tweetbutton&url={{ .Permalink }}"><i class="fab fa-twitter"></i></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.enableFacebookShare }}
|
||||
<a class="fb btn sns-share fb-share" href="http://www.facebook.com/share.php?u={{ .Permalink }}" onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fab fa-facebook-f"></i></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.enableHatenaShare }}
|
||||
{{ end }}
|
||||
{{ if .Site.Params.enableLineShare }}
|
||||
<a class="sns-share line-share" href="https://social-plugins.line.me/lineit/share?url={{ .Permalink }}"><i class="fab fa-line"></i></a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.enableLinkedInShare }}
|
||||
<a class="sns-share linkedIn-share" href="https://www.linkedin.com/sharing/share-offsite/?url={{ .Permalink }}"><i class="fab fa-linkedin"></i></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.footercontent }}
|
||||
<p>{{.}}</p>
|
||||
{{ end }}
|
||||
{{ if not .Site.Params.hideCopyright }} © {{ .Site.LastChange.Format "2006" }} {{ end }} {{ if not .Site.Params.hideCredits}} {{ if not .Site.Params.hideCopyright }} · {{ end }} Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/naro143/hugo-coder-portfolio">CoderPortfolio</a>. {{ end }}
|
||||
|
||||
</section>
|
||||
</footer>
|
||||
<div class="fixed-bar">
|
||||
<section class="container">
|
||||
{{ with .Site.Params.fixedbarContent }}
|
||||
<p id="privateTriggerText">{{.}}<a id="privateTrigger"
|
||||
href="https://matrix.to/#/!qmUrKSNurDoVuKAtRU:matrix.avaframe.org?via=matrix.avaframe.org">
|
||||
#public:matrix.avaframe.org</a></p>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
<nav class="navigation">
|
||||
<section class="container">
|
||||
<a class="navigation-title" href="{{ print "/" | relLangURL }}">{{ .Site.Title }}</a>
|
||||
<input type="checkbox" id="menu-control"/>
|
||||
<label class="menu-mobile {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}" for="menu-control">
|
||||
<span class="btn-mobile {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}">☰</span>
|
||||
<ul class="navigation-list">
|
||||
{{ with .Site.Menus.main}}
|
||||
{{ range sort . }}
|
||||
<li class="navigation-item {{ if $.Site.Params.itemscentered }} align-center {{ else }} {{ if $.Site.Params.rtl }} align-right {{ else }} align-left {{ end }} {{ end }}">
|
||||
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if .Site.IsMultiLingual }}
|
||||
{{ $node := . }}
|
||||
{{ .Scratch.Set "separator" true }}
|
||||
{{ with .Site.Params.LangSeparator }}
|
||||
<li class= "{{ if $.Site.Params.itemscentered }} mobile-menu-lang-separator-centered {{ else }} mobile-menu-lang-separator-full {{ end }}">
|
||||
<hr />
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ range .Site.Home.AllTranslations }}
|
||||
{{ if ne $.Site.Language .Language }}
|
||||
{{ if $node.Scratch.Get "separator" }}
|
||||
{{ with .Site.Params.LangSeparator }}
|
||||
<li class="multilingual-separator">
|
||||
<p>{{ . }}</p>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ $node.Scratch.Set "separator" false }}
|
||||
{{ end }}
|
||||
<li class="navigation-item {{ if $.Site.Params.itemscentered }} align-center {{ else }} {{ if $.Site.Params.rtl }} align-right {{ else }} align-left {{ end }} {{ end }}">
|
||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</label>
|
||||
</section>
|
||||
</nav>
|
||||
@@ -0,0 +1,14 @@
|
||||
<section class="container centered">
|
||||
<div class="about">
|
||||
<!-- {{ with .Site.Params.avatarurl }} -->
|
||||
<!-- <div class="avatar"><img src="{{ . | absURL }}" alt="avatar"></div> -->
|
||||
<!-- {{ end }} -->
|
||||
<h1>{{ .Site.Params.author }}</h1>
|
||||
<h2>{{ .Site.Params.info }}</h2>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p style="text-align:center;">
|
||||
We currently seek to fill a postion as <br>
|
||||
<a href="/pdf/20200214_Ausschreibung_Numeriker.pdf" > <b>Numerical developer/scientist for avalanche simulations</b> </a>
|
||||
</p>
|
||||
@@ -0,0 +1,11 @@
|
||||
<section class="container list">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
<li>
|
||||
<span>{{ .Date.Format "January 2, 2006" }}</span><a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ partial "pagination.html" . }}
|
||||
</section>
|
||||
@@ -0,0 +1,9 @@
|
||||
<section class="container page">
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</section>
|
||||
@@ -0,0 +1,48 @@
|
||||
{{ $paginator := .Paginator }}
|
||||
{{ $adjacent_links := 2 }}
|
||||
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
|
||||
{{ $lower_limit := (add $adjacent_links 1) }}
|
||||
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
{{ if $paginator.HasPrev }}
|
||||
{{ if ne $paginator.PageNumber 1 }}
|
||||
<li><a href="{{ $paginator.First.URL }}">«</a></li>
|
||||
{{ end }}
|
||||
<li class="hidden"><a href="{{ $paginator.Prev.URL }}">‹</a></li>
|
||||
{{ end }}
|
||||
{{ range $paginator.Pagers }}
|
||||
{{ $.Scratch.Set "page_number_flag" false }}
|
||||
{{ if gt $paginator.TotalPages $max_links }}
|
||||
{{ if le $paginator.PageNumber $lower_limit }}
|
||||
{{ if le .PageNumber $max_links }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
{{ else if ge $paginator.PageNumber $upper_limit }}
|
||||
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "page_number_flag" true }}
|
||||
{{ end }}
|
||||
{{ if eq ($.Scratch.Get "page_number_flag") true }}
|
||||
{{ if eq . $paginator }}
|
||||
<li>{{ .PageNumber }}</li>
|
||||
{{ else }}
|
||||
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if $paginator.HasNext }}
|
||||
<li class="hidden"><a href="{{ $paginator.Next.URL }}">›</a></li>
|
||||
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
|
||||
<li><a href="{{ $paginator.Last.URL }}">»</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,42 @@
|
||||
<section class="container post">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<h2 class="date">{{ .Date.Format "January 2, 2006" }}</h2>
|
||||
|
||||
{{ if eq .Params.math "true" }}
|
||||
<script type="text/javascript" async
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {
|
||||
inlineMath: [['$','$']],
|
||||
displayMath: [['$$','$$']],
|
||||
processEscapes: true,
|
||||
processEnvironments: true,
|
||||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
||||
TeX: { extensions: ["AMSmath.js", "AMSsymbols.js"] }
|
||||
}
|
||||
});
|
||||
MathJax.Hub.Queue(function() {
|
||||
// Fix <code> tags after MathJax finishes running. This is a
|
||||
// hack to overcome a shortcoming of Markdown. Discussion at
|
||||
// https://github.com/mojombo/jekyll/issues/199
|
||||
var all = MathJax.Hub.getAllJax(), i;
|
||||
for(i = 0; i < all.length; i += 1) {
|
||||
all[i].SourceElement().parentNode.className += ' has-jax';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
</header>
|
||||
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<br/>
|
||||
|
||||
{{ if and (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false)}}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }}
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1,9 @@
|
||||
{{ define "og-title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "title" }}
|
||||
{{ .Title }} - {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
{{ partial "post.html" . }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1,20 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
{{ if .IsNamedParams }}
|
||||
{{ $.Scratch.Add "image" ( .Get "image") }}
|
||||
{{ $.Scratch.Add "alt" ( .Get "alt") }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Add "image" "" }}
|
||||
{{ $.Scratch.Add "alt" "" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $image := $.Scratch.Get "image" }}
|
||||
{{ $alt := $.Scratch.Get "alt" }}
|
||||
|
||||
<div class="portfolio">
|
||||
<div class="portfolio-inner">
|
||||
<div class="portfolio-image"><img src="{{ $image }}" alt="{{ $alt }}"></div>
|
||||
<div class="portfolio-content">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="private">
|
||||
<div class="private-inner">
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user