Skip to content

Commit

Permalink
del lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
Nofated095 committed Jan 12, 2024
1 parent 529c67f commit c94b438
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 20 deletions.
1 change: 0 additions & 1 deletion include/style/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ body
min-height: 100%
display: flex
flex-direction: column
font-display: swap

body > .section
flex-grow: 1
Expand Down
4 changes: 2 additions & 2 deletions layout/common/article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = class extends Component {
{/* Thumbnail */}
{cover ? <div class="card-image">
{index ? <a href={url_for(page.link || page.path)} class="image is-7by3">
<img class="fill lazy" data-src={cover} alt={page.title || cover} />
<img class="fill" src={cover} alt={page.title || cover} />
</a> : <span class="image is-7by3">
<img class="fill lazy" data-src={cover} alt={page.title || cover} />
<img class="fill" src={cover} alt={page.title || cover} />
</span>}
</div> : null}
<article class={`card-content article${'direction' in page ? ' ' + page.direction : ''}`} role="article">
Expand Down
5 changes: 0 additions & 5 deletions layout/common/scripts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ module.exports = class extends Component {
return <Fragment>
<script src={cdn('jquery', '3.3.1', 'dist/jquery.min.js')}></script>
<script src={cdn('moment', '2.22.2', 'min/moment-with-locales.min.js')}></script>
<script src={cdn('vanilla-lazyload', '17.8.3', 'dist/lazyload.min.js')}></script>
{clipboard && <script src={cdn('clipboard', '2.0.4', 'dist/clipboard.min.js')} defer></script>}
<script dangerouslySetInnerHTML={{ __html: `moment.locale("${language}");` }}></script>
<script dangerouslySetInnerHTML={{ __html: embeddedConfig }}></script>
<script src={url_for('/js/column.js')}></script>
<Plugins site={site} config={config} page={page} helper={helper} head={false} />
<script src={url_for('/js/main.js')} defer></script>
<script src={url_for('/js/flying-pages.min.js')} defer={true}></script>
<script>
var lazyLoadInstance = new LazyLoad({
});
</script>
</Fragment>;
}
};
2 changes: 1 addition & 1 deletion layout/widget/profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Profile extends Component {
<div class="level-item has-text-centered flex-shrink-1">
<div>
<figure class="image is-128x128 mx-auto mb-2">
<img class={'lazy ' + 'avatar' + (avatarRounded ? ' is-rounded' : '')} data-src={avatar} alt={author} />
<img class={'avatar' + (avatarRounded ? ' is-rounded' : '')} src={avatar} alt={author} />
</figure>
{author ? <p class="title is-size-4 is-block" style={{'line-height': 'inherit'}}>{author}</p> : null}
{authorTitle ? <p class="is-size-6 is-block">{authorTitle}</p> : null}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-amane",
"version": "0.0.41",
"version": "0.0.42",
"author": "Nofated095 <[email protected]>",
"license": "MIT",
"description": "A simple, delicate, and modern theme for Hexo",
Expand Down
10 changes: 0 additions & 10 deletions source/css/lazyload.css

This file was deleted.

0 comments on commit c94b438

Please sign in to comment.