Skip to content

Commit

Permalink
Added github link
Browse files Browse the repository at this point in the history
  • Loading branch information
blanklob committed Aug 29, 2023
1 parent 1bb56b8 commit b7c1443
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
<script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
</head>
<body class="grid min-h-screen">
<header class="container mx-auto px-4 py-2 lg:py-4">
<header class="sticky top-0 container mx-auto px-4 flex justify-between items-center py-2 lg:py-4">
<a href="{{ routes.root_url }}" class="font-medium text-lg lg:text-xl no-underline">
{{ shop.name }}
</a>
<a href="https://github.com/odestry/theme-starter" class="text-gray-500 no-underline" target="_blank">
View on Github
</a>
</header>

<main
Expand Down
16 changes: 7 additions & 9 deletions snippets/image.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- class: {string} Extra classes (optional)
- lazyload: {boolean} Lazyload the image (optional) (default: false)
- alt: {string} Custom image ALT (optional) (default: image.alt)
- preload: {boolean} Specify whether the image should be preloaded into the head. (optional) (default: false)
- placeholder: {string} Placeholder name when image is empty (optional) (default: 'hero-apparel-1')
Usage:
Expand All @@ -19,16 +18,16 @@
assign alt = alt | default: image.alt | escape

assign lazyload = lazyload | default: false
assign preload = preload | default: false

assign priority = 'auto'
assign decoding = 'auto'

if lazyload == false
assign loading = 'eager'
assign priority = 'high'
elsif lazyload == true
if lazyload
assign loading = 'lazy'
assign decoding = 'async'
else
assign loading = 'eager'
assign priority = 'high'
endif
%}

Expand All @@ -40,11 +39,10 @@
| image_tag:
alt: alt,
class: class,
widths: '200,300,400,500,600,700,800,1000,1200,1400,1600,1800,2000,2200',
widths: '100,200,300,400,500,600,700,800,1000,1200,1400,1600,1800,2000',
loading: loading,
fetchpriority: priority,
decoding: decoding,
preload: preload
decoding: decoding
}}
{% else %}
{% liquid
Expand Down

0 comments on commit b7c1443

Please sign in to comment.