Skip to content
Snippets Groups Projects
Commit 605fa62f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add basic skeleton

parent b3a31e22
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,8 @@ portal-dev: ...@@ -25,7 +25,8 @@ portal-dev:
--user $(shell id -u):$(shell id -g) \ --user $(shell id -u):$(shell id -g) \
-v $(shell pwd)/portal:/src \ -v $(shell pwd)/portal:/src \
-p 1313:1313 \ -p 1313:1313 \
klakegg/hugo:0.76.5 server klakegg/hugo:0.76.5 server \
--buildDrafts
portal-site: portal-site:
@docker run --rm -it \ @docker run --rm -it \
......
+++
date = "{{ .Date }}"
title = "{{ replace .Name "-" " " | title }}"
type = "article"
draft = true
+++
Lorem ipsum summary of the article.
<!--more-->
Lorem ipsum rest of the article.
+++
date = "{{ .Date }}"
title = "{{ replace .Name "-" " " | title }}"
type = "post"
draft = true
+++
Lorem ipsum summary of the post.
<!--more-->
Lorem ipsum rest of the post.
---
title: "KM3NeT Open Science Portal"
date: 2010-10-27T13:29:00-00:00
---
# The KM3NeT Open Science Portal
{{ partial "head.html" . }}
<main>
<section>
<header>
<h1>{{.Title}}</h1>
</header>
<article>
{{.Content}}
</article>
<footer>
<ul>
{{ with .PrevInSection }}<li><a href="{{ .Permalink }}">&laquo; {{ .Title }}</a></li>{{ end }}
{{ with .NextInSection }}<li><a href="{{ .Permalink }}">{{ .Title }} &raquo;</a></li>{{ end }}
</ul>
</footer>
</section>
<aside>
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ "posts/" | absURL }}">Posts</a></li>
<li><a href="{{ .Section | absURL }}">Articles</a></li>
</ul>
</aside>
</main>
{{ partial "foot.html" .}}
{{ partial "head.html" . }}
<main>
<section>
<header>
<h1>All Articles</h1>
</header>
<article>
<ul>
{{ range where .Pages.ByPublishDate.Reverse "Section" "articles" }}
<li><a href="{{ .RelPermalink }}">{{ .Title }} - <time datetime="{{.Date}}">{{ .Date.Format "2006/01/02 15:04:05" }}</time></a></li>
{{ end }}
</ul>
</article>
</section>
<aside>
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ "posts/" | absURL }}">Posts</a></li>
<li><a href="{{ "articles/" | absURL }}">Articles</a></li>
</ul>
</aside>
</main>
{{ partial "foot.html" .}}
{{ partial "head.html" . }}
<main>
<section>
<!-- this section is populated from content/_index.md -->
<header>
<h1>{{.Title}}</h1>
</header>
<article>
{{.Content}}
</article>
<footer>
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
{{ range first 10 .Pages }}
{{ .Render "summary"}}
{{ end }}
</footer>
</section>
<section>
<!-- this section is populated by pulling posts from the site -->
{{ range first 1 (where .Pages.ByPublishDate.Reverse "Section" "posts") }}
<article>
<header>
<h2>{{ .Title }}</h2>
<p><time datetime="{{.Date}}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></p>
</header>
{{ .Summary }}
<nav>
<ul>
<li><a href="{{ .RelPermalink }}">Read More &raquo;</a></li>
</ul>
</nav>
</article>
{{ end }}
<footer>
<a href="{{ "posts/" | absURL }}">All posts...</a>
</footer>
</section>
<section>
<!-- this section is populated by pulling articles from the site -->
{{ range first 1 (where .Pages.ByPublishDate.Reverse "Section" "articles") }}
<article>
<header>
<h2>{{ .Title }}</h2>
<p><time datetime="{{.Date}}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></p>
</header>
{{ .Summary }}
<nav>
<ul>
<li><a href="{{ .RelPermalink }}">Read More &raquo;</a></li>
</ul>
</nav>
</article>
{{ end }}
<footer>
<a href="{{ "articles/" | absURL }}">All articles...</a>
</footer>
</section>
</main>
{{ partial "foot.html" .}}
<footer>
<ul>
<li><a href="https://www.km3net.org">KM3NeT.org</a></li>
</ul>
</footer>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>KM3NeT Open Science Portal</title>
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
{{ partial "head.html" . }}
<main>
<section>
<header>
<h1>{{.Title}}</h1>
</header>
<article>
{{.Content}}
</article>
<footer>
<ul>
{{ with .PrevInSection }}<li><a href="{{ .Permalink }}">&laquo; {{ .Title }}</a></li>{{ end }}
{{ with .NextInSection }}<li><a href="{{ .Permalink }}">{{ .Title }} &raquo;</a></li>{{ end }}
</ul>
</footer>
</section>
<aside>
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ .Section | absURL }}">Posts</a></li>
<li><a href="{{ "articles/" | absURL }}">Articles</a></li>
</ul>
</aside>
</main>
{{ partial "foot.html" .}}
{{ partial "head.html" . }}
<main>
<section>
<header>
<h1>All Posts</h1>
</header>
<article>
<ul>
{{ range where .Pages.ByPublishDate.Reverse "Section" "posts" }}
<li><a href="{{ .RelPermalink }}">{{ .Title }} - <time datetime="{{.Date}}">{{ .Date.Format "2006/01/02 15:04:05" }}</time></a></li>
{{ end }}
</ul>
</article>
</section>
<aside>
<ul>
<li><a href="{{ .Site.BaseURL }}">Home</a></li>
<li><a href="{{ "posts/" | absURL }}">Posts</a></li>
<li><a href="{{ "articles/" | absURL }}">Articles</a></li>
</ul>
</aside>
</main>
{{ partial "foot.html" .}}
html {
background-color: #fefefe
}
body {
color: #454545;
font-size: 18px;
margin: 2em auto;
max-width: 800px;
padding: 1em;
line-height: 1.6;
}
h1, h2, h3 {
line-height:1.2
}
a {
color: #07a
}
a:visited {
color: #941352
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment