updating templates to the ones from the dimension theme, no video support yet with this theming

This commit is contained in:
shockrah 2025-08-18 10:18:31 -07:00
parent eb99d97e7b
commit f6d2fcd3f6
6 changed files with 58 additions and 7 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "gitpage/themes/dimension"] [submodule "gitpage/themes/dimension"]
path = gitpage/themes/dimension path = gitpage/themes/dimension
url = https://gitlab.com/dspechnikov/dimension-hugo url = https://gitlab.com/dspechnikov/dimension-hugo
[submodule "service/themes/dimension"]
path = service/themes/dimension
url = https://github.com/your-identity/hugo-theme-dimension.git

View File

@ -0,0 +1,5 @@
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/browser.min.js"></script>
<script src="/static/js/breakpoints.min.js"></script>
<script src="/static/js/util.js"></script>
<script src="/static/js/main.js"></script>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Clippable</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/static/main.css"/>
<link rel="icon" href="/static/favicon.png" type="image/png"
<noscript><link rel="stylesheet" href="/static/noscript.css"/></noscript>
<style>
:root{--site-background : url("/static/bg.png")};
</style>
</head>

View File

@ -0,0 +1,31 @@
{% include "header" %}
<body class="is-preload">
<div id="wrapper">
<header id="header">
<div class="logo">
<span class="icon"> <img src="/static/logo.png"> </span>
</div>
<div class="content">
<div class="inner">
<h1>some title</h1>
<p> some description </p>
</div>
</div>
<nav>
<ul>
<li> <a href="#about-section">about section</a> </li>
</ul>
</nav>
</header>
<div id="main">
<article id="about-section">
<h2 class="major">about section</h2>
<span class="image main"><img src="" alt="" /></span>
<p>asdfadf</p>
</article>
</div>
</div>
<div id="bg"></div>
</body>
{% include "footer" %}

View File

@ -1,16 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<head lang="en-us"> {% include "head" %}
<link rel="stylesheet" href="/static/style.css">
</head>
<body> <body>
<div class="content"> <div class="container">
<h1 class="title">{{ title }}</h1>
{% if video %} {% if video %}
<video controls> <video class="content" controls>
<source src="{{ video }}" type="video/{{ kind }}"> <source src="{{ video }}" type="video/{{ kind }}">
</video> </video>
<br><p class="content">{{title}}</p>
{% else %} {% else %}
<p>Nothing to see here</p> <p class="content">Nothing to see here</p>
{% endif %} {% endif %}
</div> </div>
</body> </body>

@ -0,0 +1 @@
Subproject commit 2474081b7846ce0e211c57b86ed84989548a777d