Skip to content

Commit 8dc6878

Browse files
committed
Add CodeMeta-Pyramids theme files
This brings in Bootstrap 5.3.8, JQuery 3.7.1, and removes all except the material-kit.css "Product Page" file which forms the basis of the current theme of CodeMeta's website.
1 parent b59c969 commit 8dc6878

34 files changed

+43095
-0
lines changed

themes/CodeMeta-Pyramids/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This theme is derived from one of the default layouts included in
2+
[Material-Kit-BS4](https://github.com/creativetimofficial/material-kit-bs4/)
3+
[adapted for Hugo templating by cboettig](https://github.com/cboettig/hugo-material-theme/)
4+
and further adapted (colour changes) for CodeMeta by cboettig.
5+
6+
In late 2025, the site was stripped of most of Material-Kit-BS4, the css
7+
being all that remains. Its Bootstrap and JQuery are now vanilla, and
8+
drop-in upgradable to later versions.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!doctype html>
2+
<html lang="en" data-bs-theme="auto">
3+
{{partial "head.html" . }}
4+
{{ block "body" . }}
5+
{{ end }}
6+
{{partial "javascript.html" . }}
7+
</html>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{ define "body" }}
2+
<body class="landing-page sidebar-collapse">
3+
{{ partial "nav.html" . }}
4+
5+
{{ partial "page-header.html" . }}
6+
7+
<div class="main main-raised">
8+
<div class="section section-basic">
9+
<div class="container">
10+
11+
{{ .Content }}
12+
13+
</div>
14+
</div>
15+
</div>
16+
17+
{{ partial "footer" . }}
18+
19+
</body>
20+
{{ end }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ define "body" }}
2+
<body class="profile-page sidebar-collapse"> <!-- other classes: index-page , landing-page -->
3+
{{ partial "nav.html" . }}
4+
5+
{{ partial "page-header.html" . }}
6+
7+
<div class="main main-raised">
8+
<div class="section section-basic">
9+
<div class="container">
10+
11+
12+
{{ partial "list.html" . }}
13+
14+
15+
16+
17+
</div>
18+
</div>
19+
</div>
20+
21+
{{ partial "footer" . }}
22+
23+
</body>
24+
{{ end }}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{ define "body" }}
2+
<body class="login-page sidebar-collapse">
3+
{{ partial "nav.html" . }}
4+
5+
<div class="page-header header-filter clear-filter purple-filter" data-parallax="true" style="background-image: url('{{ .Site.Params.background | absURL }}');">
6+
7+
<div class="container">
8+
<div class="row">
9+
<div class="col-lg-4 col-md-6 ml-auto mr-auto">
10+
<div class="card card-login">
11+
{{ .Content }}
12+
</div>
13+
</div>
14+
</div>
15+
</div>
16+
17+
</div>
18+
19+
{{ partial "footer" . }}
20+
21+
</body>
22+
{{ end }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{{ define "body" }}
2+
<body class="profile-page sidebar-collapse"> <!-- other classes: index-page , landing-page -->
3+
4+
{{ partial "nav.html" . }}
5+
{{ partial "page-header.html" . }}
6+
7+
8+
<div class="main main-raised">
9+
<div class="section section-basic">
10+
<div class="container">
11+
12+
{{ .Content }}
13+
14+
</div>
15+
</div>
16+
</div>
17+
18+
{{ partial "footer" . }}
19+
20+
</body>
21+
{{ end }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<footer class="footer">
2+
<div class="container">
3+
<nav class="pull-left">
4+
<ul>
5+
{{ range .Site.Menus.footer }}
6+
{{ if .HasChildren }}
7+
<li class="dropdown">
8+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">
9+
{{ .Name }}
10+
<span class="caret"></span>
11+
</a>
12+
<ul class="dropdown-menu">
13+
{{ range .Children }}
14+
<li class="nav-item">
15+
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
16+
{{ .Pre }}
17+
<span>{{ .Name }}</span>
18+
</a>
19+
</li>
20+
{{end}}
21+
</ul>
22+
</li>
23+
24+
{{ else }}
25+
26+
<li>
27+
<a href="{{ .URL | relURL }}">{{ .Pre }} {{ .Name }}</a>
28+
</li>
29+
{{ end }}
30+
{{ end }}
31+
</ul>
32+
</nav>
33+
<div class="copyright pull-right">
34+
<img src="{{"img/cc-by.svg" | relURL }}"/>
35+
</div>
36+
</div>
37+
</footer>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<head>
2+
<meta charset="utf-8" />
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
4+
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
5+
6+
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
7+
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}
8+
9+
<title>{{ .Site.Title }}</title>
10+
11+
<link rel="apple-touch-icon" sizes="76x76" href="{{ "img/favicon.png" | relURL }}" />
12+
<link rel="icon" type="image/png" href="{{ "img/favicon.png" | relURL }}" />
13+
14+
<!-- Fonts and icons -->
15+
<link rel="stylesheet" type="text/css"
16+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
17+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
18+
<!-- CSS Files -->
19+
<link href="/css/core/bootstrap.css" rel="stylesheet" />
20+
<link href="/css/codemeta.css" rel="stylesheet" />
21+
<link href="/css/material-kit.css?v=2.0.4" rel="stylesheet" />
22+
23+
<!-- Additional icons: fa-docker, academicons, R-logo -->
24+
<link rel="stylesheet" href="https://cdn.rawgit.com/gaborcsardi/r-font/master/rlogo.css">
25+
<link rel="stylesheet" href="https://cdn.rawgit.com/wesbos/Font-Awesome-Docker-Icon/master/fontcustom/fontcustom.css">
26+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.0/css/academicons.min.css">
27+
28+
29+
30+
{{ range .Site.Params.custom_css }}
31+
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
32+
{{ end }}
33+
{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}
34+
<link rel="canonical" href="{{ .Permalink }}">
35+
36+
</head>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- LaTeX math rendering -->
2+
{{ if or .Params.math .Site.Params.math }}
3+
<script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });</script>
4+
<script async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"></script>
5+
{{ end }}
6+
7+
<!-- Core JS Files -->
8+
<script src="/js/core/jquery.min.js" type="text/javascript"></script>
9+
<script src="/js/core/bootstrap.bundle.min.js" type="text/javascript"></script>
10+
11+
<!-- CodeMeta JS -->
12+
<script src="/js/codemeta.js" type="text/javascript"></script>
13+
14+
{{ range .Site.Params.custom_js }}
15+
<script type="text/javascript" src="{{ "/js/" | relURL }}{{ . }}"></script>
16+
{{ end }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
<!-- An optional Header Image -->
3+
{{ if .Params.header.image }}
4+
<div class="article-header">
5+
<img src="{{ "/img/" | relURL }}/{{ .Params.header.image }}" class="article-banner" itemprop="image">
6+
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
7+
</div>
8+
{{end}}
9+
10+
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
11+
12+
<!-- List pages can get Content and yaml metadata from an _index.md -->
13+
{{ with .Content }}<div class="article-style" itemprop="articleBody">{{ . }}</div>{{ end }}
14+
15+
16+
<div class="row">
17+
<div class="col-11">
18+
{{ range .Paginator.Pages }}
19+
<div class="article">
20+
<h2><a href="{{ .RelPermalink }}">{{if .Params.image }} <img src="{{ .Params.image }}" height="50px"/> {{ end }}{{ .Title }}</a></h2>
21+
</div>
22+
{{ end }}
23+
</div>
24+
25+
26+
27+
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
28+
<nav>
29+
<ul class="pager">
30+
{{ if .Paginator.HasPrev }}
31+
<li><a href="{{ .Paginator.Prev.URL | relURL }}">&laquo; Previous</a></li>
32+
{{ end }}
33+
{{ if .Paginator.HasNext }}
34+
<li><a href="{{ .Paginator.Next.URL | relURL }}">Next &raquo;</a></li>
35+
{{ end }}
36+
</ul>
37+
</nav>
38+
{{ end }}
39+
40+
<br />
41+
</div>

0 commit comments

Comments
 (0)