dimension theme
This commit is contained in:
parent
0c44a2e2fe
commit
c8a4fc4567
73 changed files with 10250 additions and 0 deletions
0
themes/dimension/layouts/404.html
Normal file
0
themes/dimension/layouts/404.html
Normal file
0
themes/dimension/layouts/_default/list.html
Normal file
0
themes/dimension/layouts/_default/list.html
Normal file
4
themes/dimension/layouts/_default/onepagestyle.html
Normal file
4
themes/dimension/layouts/_default/onepagestyle.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<article id="{{ .File.TranslationBaseName }}">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
0
themes/dimension/layouts/_default/single.html
Normal file
0
themes/dimension/layouts/_default/single.html
Normal file
46
themes/dimension/layouts/index.html
Normal file
46
themes/dimension/layouts/index.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
<!-- Wrapper -->
|
||||
<div id="wrapper">
|
||||
|
||||
<!-- Header -->
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
{{ with .Site.Params.logoimage }}
|
||||
<img src="{{ . }}" width="100%" style="padding: 10px 10px 10px 10px;">
|
||||
{{ end }}
|
||||
{{ with .Site.Params.logo }}
|
||||
<span class="icon {{ . }}"></span>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>{{ .Site.Title | safeHTML }}</h1>
|
||||
<p>{{ .Site.Params.description | safeHTML }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByWeight }}
|
||||
<li>{{ if isset .Params "link" }}<a href="{{ index .Params "link" }}"{{else}}<a href="#{{ .File.TranslationBaseName }}"{{end}}>{{ if .GetParam "menuname" }}{{ .GetParam "menuname" }}{{ else }}{{ .Title }}{{ end }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
{{ range .Data.Pages }}
|
||||
{{ .Render "onepagestyle" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<!-- Multilanguage -->
|
||||
<div id="languages">
|
||||
{{ if .IsTranslated }}
|
||||
{{ range $i, $e := .Translations }}
|
||||
{{ if $i }}, {{ end }}<a href="{{ .Permalink }}">{{ $e.Language.LanguageName }}</a>
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
18
themes/dimension/layouts/partials/footer.html
Normal file
18
themes/dimension/layouts/partials/footer.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
<!-- Footer -->
|
||||
<footer id="footer">
|
||||
<p class="copyright">© {{ .Site.Params.copyright }}. </p>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
<!-- BG -->
|
||||
<div id="bg"></div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="/js/skel.min.js"></script>
|
||||
<script src="/js/util.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
19
themes/dimension/layouts/partials/header.html
Normal file
19
themes/dimension/layouts/partials/header.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Dimension by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
<link rel="stylesheet" href="/css/project.css" />
|
||||
<!--[if lte IE 9]><link rel="stylesheet" href="/css/ie9.css" /><![endif]-->
|
||||
<noscript><link rel="stylesheet" href="/css/noscript.css" /></noscript>
|
||||
</head>
|
||||
<!-- Scripts -->
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<body>
|
||||
4
themes/dimension/layouts/robots.txt
Normal file
4
themes/dimension/layouts/robots.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: {{ .Site.BaseURL }}/sitemap.xml
|
||||
1
themes/dimension/layouts/shortcodes/gmaps.html
Normal file
1
themes/dimension/layouts/shortcodes/gmaps.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<iframe src="https://www.google.com/maps/embed?pb={{ .Get "pb" }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}100%{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}450{{ end }}" frameborder="0" style="border:0" allowfullscreen></iframe>
|
||||
5
themes/dimension/layouts/shortcodes/socialLinks.html
Normal file
5
themes/dimension/layouts/shortcodes/socialLinks.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<ul class="icons">
|
||||
{{ range .Site.Params.social }}
|
||||
<li><a href="{{ .link | safeURL }}" class="icon fa-{{ .icon }}"><span class="label">{{ .medium }}</span></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
11
themes/dimension/layouts/sitemap.xml
Normal file
11
themes/dimension/layouts/sitemap.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{{ $baseURL := .Site.BaseURL }}
|
||||
{{ range sort .Data.Pages }}
|
||||
<url>
|
||||
<loc>{{ $baseURL }}{{ .LanguagePrefix }}/#{{ .File.TranslationBaseName }}</loc>{{ if not .Lastmod.IsZero }}
|
||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
||||
</url>
|
||||
{{ end }}
|
||||
</urlset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue