Added new basic hugo structure
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
5d6a5afb54
commit
c92f177645
Before Width: | Height: | Size: 645 KiB After Width: | Height: | Size: 645 KiB |
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
baseURL = "https://vikunja.io/"
|
||||||
|
languageCode = "en-us"
|
||||||
|
title = "Vikunja"
|
|
@ -0,0 +1,2 @@
|
||||||
|
+++
|
||||||
|
+++
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
{{- partial "head.html" . -}}
|
||||||
|
<body>
|
||||||
|
{{- partial "header.html" . -}}
|
||||||
|
<div id="content">
|
||||||
|
{{- block "main" . }}{{- end }}
|
||||||
|
</div>
|
||||||
|
{{- partial "footer.html" . -}}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,12 @@
|
||||||
|
{{ partial "header.html" . }}
|
||||||
|
{{ partial "navbar.html" . }}
|
||||||
|
|
||||||
|
<div class="container is-centered page">
|
||||||
|
<div class=" content">
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
{{ partial "disqus.html" . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ partial "footer.html" . }}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{{ if .Site.DisqusShortname }}
|
||||||
|
<div id="disqus_thread"></div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||||
|
var disqus_identifier = '{{ .Permalink }}';
|
||||||
|
var disqus_title = '{{ .Title }}';
|
||||||
|
var disqus_url = '{{ .Permalink }}';
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var dsq = document.createElement('script');
|
||||||
|
|
||||||
|
dsq.type = 'text/javascript';
|
||||||
|
dsq.async = true;
|
||||||
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
|
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<noscript>
|
||||||
|
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>
|
||||||
|
</noscript>
|
||||||
|
{{end}}
|
|
@ -0,0 +1,49 @@
|
||||||
|
<footer class="footer">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content has-text-centered">
|
||||||
|
<p>
|
||||||
|
Copyright © {{ now.Year }} <a href="{{ .Site.Params.website }}">{{ .Site.Params.author }}</a>. All rights reserved. Made with <i class="fa fa-heart" aria-hidden="true"></i> and <a href="https://gohugo.io">Hugo</a>. Sponsored by <a href="http://inblockchain.com">INBlockchain</a>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ $lang := .Lang }}{{ $base := .Site.BaseURL }}{{ range .Site.Languages }}
|
||||||
|
<a class="nav-link" href="{{ $base }}{{ .Lang }}">{{ .LanguageName }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
|
|
||||||
|
// Get all "navbar-burger" elements
|
||||||
|
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
||||||
|
|
||||||
|
// Check if there are any navbar burgers
|
||||||
|
if ($navbarBurgers.length > 0) {
|
||||||
|
|
||||||
|
// Add a click event on each of them
|
||||||
|
$navbarBurgers.forEach(function ($el) {
|
||||||
|
$el.addEventListener('click', function () {
|
||||||
|
|
||||||
|
// Get the target from the "data-target" attribute
|
||||||
|
var target = $el.dataset.target;
|
||||||
|
var $target = document.getElementById(target);
|
||||||
|
|
||||||
|
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
|
||||||
|
$el.classList.toggle('is-active');
|
||||||
|
$target.classList.toggle('is-active');
|
||||||
|
|
||||||
|
|
||||||
|
document.getElementById('navbar-background').classList.toggle('is-active');
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,35 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
|
<meta property="og:title" content="{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}"></meta>
|
||||||
|
{{ if .IsPage }}
|
||||||
|
<meta property="og:description" content="{{ if .IsPage }}{{ .Description }}{{end}}" />
|
||||||
|
{{ end }}
|
||||||
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"></meta>
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}"></meta>
|
||||||
|
<meta property="og:image" content="https://docs.gitea.io/images/gitea.png"></meta>
|
||||||
|
{{ .Hugo.Generator }}
|
||||||
|
|
||||||
|
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
||||||
|
|
||||||
|
{{ with .Params.goimport }}<meta name="go-import" content="{{ . }}">{{ end }}
|
||||||
|
{{ with .Params.gosource }}<meta name="go-source" content="{{ . }}">{{ end }}
|
||||||
|
|
||||||
|
{{ with .RSSLink }}
|
||||||
|
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
<link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" />
|
||||||
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}styles/main.css">
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}images/favicon.png">
|
||||||
|
<link rel="icon" type="image/x-icon" href="{{ .Site.BaseURL }}images/favicon.png">
|
||||||
|
</head>
|
||||||
|
<body>
|
|
@ -0,0 +1,2 @@
|
||||||
|
{{ partial "pages.html" . }}
|
||||||
|
{{ partial "toc.html" . }}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<nav class="navbar">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-brand">
|
||||||
|
<a class="navbar-item" href="{{ .Site.BaseURL }}">
|
||||||
|
<img src="{{ .Site.BaseURL }}images/gitea.png" alt="{{ .Site.Title }}">
|
||||||
|
</a>
|
||||||
|
<span class="navbar-burger burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="navbar-menu" id="navMenu">
|
||||||
|
<div class="navbar-end">
|
||||||
|
{{ partial "toplinks.html" . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="navbar-background" id="navbar-background"></div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
|
@ -0,0 +1,28 @@
|
||||||
|
<aside class="menu">
|
||||||
|
{{ $currentNode := . }}{{ range .Site.Menus.sidebar }}
|
||||||
|
{{ if .HasChildren }}
|
||||||
|
<p class="menu-label">
|
||||||
|
{{ .Pre }}
|
||||||
|
{{ .Name }}
|
||||||
|
</p>
|
||||||
|
<ul class="menu-list">
|
||||||
|
{{ range .Children }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .URL | relLangURL }}" {{ if $currentNode.IsMenuCurrent "sidebar" . }}class="is-active"{{ end }}>
|
||||||
|
{{ .Pre }}
|
||||||
|
{{ .Name }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ else }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .URL | relLangURL }}">
|
||||||
|
{{ .Pre }}
|
||||||
|
{{ .Name }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</aside>
|
|
@ -0,0 +1,5 @@
|
||||||
|
{{ if .Params.toc }}
|
||||||
|
<!-- <aside>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</aside> -->
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,7 @@
|
||||||
|
<span class="navbar-item logo"><img src="{{ .Site.BaseURL }}images/gitea.png" alt="{{ .Site.Title }}"></span>
|
||||||
|
{{ $currentNode := . }}{{ range .Site.Menus.page }}
|
||||||
|
<a class="navbar-item" href="{{ .URL }}">
|
||||||
|
<i class="fa fa-{{ .Pre }}"></i>
|
||||||
|
{{ .Name }}
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
|
@ -0,0 +1,21 @@
|
||||||
|
# theme.toml template for a Hugo theme
|
||||||
|
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||||
|
|
||||||
|
name = "Vikunja Web"
|
||||||
|
license = "GPLv3"
|
||||||
|
licenselink = "http://code.vikunja.io/website/src/branch/master/LICENSE"
|
||||||
|
description = ""
|
||||||
|
homepage = "http://vikunja.io"
|
||||||
|
tags = []
|
||||||
|
features = []
|
||||||
|
min_version = "0.41"
|
||||||
|
|
||||||
|
[author]
|
||||||
|
name = "kolaente"
|
||||||
|
homepage = "http://kolaente.de"
|
||||||
|
|
||||||
|
# If porting an existing theme
|
||||||
|
[original]
|
||||||
|
name = ""
|
||||||
|
homepage = ""
|
||||||
|
repo = ""
|
Loading…
Reference in New Issue