Theme fixes

This commit is contained in:
roberto 2025-05-16 11:06:06 +02:00
parent 9d2570922f
commit 465dc22397
16 changed files with 102 additions and 62 deletions

8
.idea/.gitignore generated vendored Normal file
View file

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

1
.idea/.name generated Normal file
View file

@ -0,0 +1 @@
SpeedTech Website

6
.idea/misc.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/website.iml" filepath="$PROJECT_DIR$/website.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -21,27 +21,21 @@
<div id="page-content">
<div class="container">
<div class="row">
<div class="col s12 m9 l9">
<section>
<article>
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p style="text-algin: center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}" width="500">
</p>
{{ end }}
{{ end }}
<div class="col s12 m9 l9 articlecontent">
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p style="text-algin: center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}" width="500"></p>
{{ end }}
{{ end }}
<div style="text-align: justify;">
{{ .Content }}
</div>
<div style="text-align: justify;">
{{ .Content }}
</div>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "widgets/ibiscattags.html" . }}
</article>
</section>
{{ partial "widgets/ibiscattags.html" . }}
</div>
{{ partial "widgets/ibissidebar.html" . }}

View file

@ -21,27 +21,21 @@
<div id="page-content">
<div class="container">
<div class="row">
<div class="col s12 m9 l9">
<section>
<article>
<div class="col s12 m9 l9 articlecontent">
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p class="text-center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}" width="400"></p>
{{ end }}
{{ end }}
{{ if isset .Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p class="text-center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}" width="400"></p>
{{ end }}
{{ end }}
<div style="text-align: justify;">
{{ .Content }}
</div>
<div style="text-align: justify;">
{{ .Content }}
</div>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
<small>{{ i18n "publishdate"}} : {{.PublishDate.Format "2006-01-02"}}</small> | <small>{{ i18n "lastchange"}} : {{.Lastmod.Format "2006-01-02"}}</small>
{{ partial "partials/widgets/spotcattags.html" . }}
</article>
</section>
{{ partial "partials/widgets/spotcattags.html" . }}
</div>
{{ partial "partials/widgets/spotsidebar.html" . }}

View file

@ -1,5 +1,5 @@
<div class="row blog-article-item-list">
<h4 class="blog-article-title"><a href="{{ .Permalink }}">{{.article.Title}}</a></h4>
<h4 class="blog-article-title"><a href="{{ .article.Permalink }}">{{.article.Title}}</a></h4>
<div class="col s12 m4 l4 blog-article-image">
{{ if isset .article.Params "images"}}
{{ if (fileExists (printf "assets/%s" (index .article.Params.images 0))) -}}

View file

@ -1,4 +1,4 @@
<section class="col s12 m3 l3 text-center blogsidebar" style="border-left: 1px solid #ddd">
<section class="col s12 m3 l3 text-center blogsidebar">
{{ if isset .Site.Taxonomies "tagsibis" }}
{{ if not (eq (len .Site.Taxonomies.tagsibis) 0) }}
<div class="tags">

View file

@ -1,4 +1,4 @@
<section class="col s12 m3 l3 text-center blogsidebar" style="border-left: 1px solid #ddd">
<section class="col s12 m3 l3 text-center blogsidebar">
{{ if isset .Site.Taxonomies "tagsspot" }}
{{ if not (eq (len .Site.Taxonomies.tagsspot) 0) }}
<div class="tags">

View file

@ -25,8 +25,7 @@
<div class="container">
<div class="row">
<div class="col m9 l9">
<section class="col s12">
<div class="col s12 m9 l9 servicecontent">
{{ if (fileExists (printf "assets/%s" (index .Params.images 0))) -}}
{{ $mainimage := resources.Get (index .Params.images 0) }}
<p style="text-align: center"><img class="img-fluid" src="{{ $mainimage.RelPermalink }}" width="500">
@ -35,7 +34,6 @@
<div style="text-align: justify;">
{{ .Content }}
</div>
</section>
</div>
<div class="col m3 l3 servicesidebar">

View file

@ -78,4 +78,27 @@ footer .menu {
.blog-article-image {
padding-left: 20px;
padding-right: 20px;
}
.blog-single .title {
margin-top: 20px;
}
/* Min medium */
@media (min-width: 767px) {
.servicesidebar, .blogsidebar {
border-left: 1px solid #ccc;
}
.articlecontent, .servicecontent {
padding-left: 20px;
padding-right: 20px;
}
}
/* Max small */
@media (max-width: 767px) {
.servicesidebar, .blogsidebar {
margin-top: 30px;
}
}

View file

@ -1,15 +0,0 @@
<!-- Matomo -->
<script type="text/javascript" async>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//{{ .Site.Params.analyticsUrl }}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ .Site.Params.Analytics.SiteId }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

View file

@ -27,8 +27,8 @@
{{ hugo.Generator }}
<link href="{{ "css/main.css" | relURL }}" rel="stylesheet">
<link href="{{ "css/custom.css" | relURL }}" rel="stylesheet">
<link href="{{ "css/main.css?1" | relURL }}" rel="stylesheet">
<link href="{{ "css/custom.css?1" | relURL }}" rel="stylesheet">
<!-- Favicon and Apple touch icons-->
<link rel="shortcut icon" href="{{ "img/favicon.ico" | relURL }}" type="image/x-icon">
@ -42,6 +42,4 @@
<script src="/js/htmx/htmx.min.js" defer></script>
<script src="/js/main.js" defer></script>
{{ partial "analytics.html" . }}
</head>

View file

@ -339,7 +339,12 @@ body {
@media screen and (max-width: 992px) {
body {
padding-top: 60px;
padding-top: 80px;
}
#topnav {
padding-top: 10px;
padding-bottom: 10px;
}
#responsive-button {
@ -468,9 +473,13 @@ footer {
}
ul.pagination {
margin-block-start: 0;
margin-block-end: 0;
padding-inline-start: 0;
list-style-type: none;
display: flex;
justify-content: center;
margin-bottom: 40px;
}
link {

10
website.iml Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>