Skip to content

Commit

Permalink
Merge pull request #5 from OpenTenBase/dev/fix-theme
Browse files Browse the repository at this point in the history
Dev/fix theme
  • Loading branch information
zlu1123 authored Oct 23, 2023
2 parents 4e22135 + df3113e commit 9719b3f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,4 @@
"系统要求"
]
}
}
}
10 changes: 10 additions & 0 deletions themes/meghna-hugo/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2662,6 +2662,16 @@ figcaption {
font-size: 1.25rem;
}

.navigation-layout {
display: flex;
padding: 1px 10px;
justify-content: center;
align-items: center;
gap: 10px;
}



.simple-icon {
color: #6c7b8a;
padding: 10px;
Expand Down
13 changes: 12 additions & 1 deletion themes/meghna-hugo/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{{"<!-- Start Blog Section -->" | safeHTML}}
<section id="blog" class="section">
<div class="container no-data">
<div class="container">
{{"<!-- section title --> " | safeHTML}}
<div class="title text-center">
<div>{{ with i18n "newPublish" }} {{ index (split . " ") 0 | safeHTML }} {{ end }} {{ with i18n "blogTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}
Expand All @@ -22,6 +22,17 @@
</div>
</div>
</section>
<script type="text/javascript">
/**
* hack 强制修改最小高度
* @type {HTMLElement}
*/
var blog = document.getElementById('blog');
var clientHeight = blog.clientHeight || ""
if (clientHeight < 480) {
blog.setAttribute('style', 'min-height: 600px')
}
</script>
{{"<!-- /blog -->" | safeHTML}}

{{ end }}

0 comments on commit 9719b3f

Please sign in to comment.