Skip to content

Commit

Permalink
url fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ORIGIN INVESTMENTS authored and ORIGIN INVESTMENTS committed Mar 14, 2024
1 parent 53805c8 commit b153b54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(eleventySass);

return {
// pathPrefix: "/subdirectory/", //If using a base path for your site
dir: {
input: "src",
output: "public",
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<body>
<header>
<div class="container-fluid">
<div class="site-title"><a href="{{ '/' | url }}"><img src="{{'/img/pose-logo.svg'}}"/></a></div>
<div class="site-title"><a href="{{ '/' | url }}"><img src="{{ '/img/pose-logo.svg' | url }}"/></a></div>
<nav>
<li><a href="#news">News</a></li>
<li><a href="#events">Events</a></li>
Expand Down
10 changes: 5 additions & 5 deletions src/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Home Page Title
<div class="splide__track">
<ul class="splide__list">
<li class="splide__slide slide-left">
<img src="{{'/img/carousel1.jpg'}}"/>
<img src="{{'/img/carousel1.jpg' | url}}"/>
<div class="splide-content">
<div class="splide-content-container container">
<h1>Software is a Great Combination Between Artistry and Engineering.</h1>
Expand All @@ -17,7 +17,7 @@ title: Home Page Title
</div>
</li>
<li class="splide__slide slide-center">
<img src="{{'/img/carousel2.jpg'}}"/>
<img src="{{'/img/carousel2.jpg' | url}}"/>
<div class="splide-content">
<div class="splide-content-container container">
<h2>Computers themselves, and software yet to be developed, will revolutionize the way we learn.</h2>
Expand All @@ -34,11 +34,11 @@ title: Home Page Title
<h2 class="text-center">News</h2>
{% for post in collections.news %}
<div class="news-card">
<img src="{{ post.data.image }}"/>
<img src="{{ post.data.image | url}}"/>
<div>
<h3><a href="{{post.url}}">{{ post.data.title }}</a></h3>
<h3><a href="{{post.url | url}}">{{ post.data.title }}</a></h3>
<p>{{ post.data.content }}</p>
<a class="btn" href="{{ post.data.link }}">Learn More</a>
<a class="btn" href="{{ post.data.link | url }}">Learn More</a>
</div>
</div>
{% endfor %}
Expand Down

0 comments on commit b153b54

Please sign in to comment.