Skip to content

Commit

Permalink
chore: remove/rename unused plugins and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
crfmc committed Dec 3, 2024
1 parent 5767417 commit 45d2388
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 51 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ twitter:

# Build settings
markdown: kramdown
#theme: minima
theme: bulma-clean-theme
plugins:
- jekyll-feed
Expand Down
19 changes: 19 additions & 0 deletions _includes/news-card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="news-card card">
<div class="card-header">
<div class="content">
{% if news-item.thumbnail %}
<div class="thumbnail">
<img src="{{ news-item.thumbnail }}" alt="{{ news-item.thumbnail_alt }}">
</div>
{% endif %}
<div class="text">
<a class="card-header-title" href="{{ news-item.baseurl }}{{ news-item.url }}"><span>{{ news-item.title}}</span></a>
<span class="card-header-date">{{ news-item.date | date: "%B %d, %Y"}} </span>
</div>
</div>
</div>
<div class="card-content">
<!-- Note: truncatewords may split a word inside of some text decoration -->
{{ news-item.content | truncatewords: 51 }}
</div>
</div>
19 changes: 0 additions & 19 deletions _includes/post-card-news.html

This file was deleted.

19 changes: 0 additions & 19 deletions _layouts/blog.html

This file was deleted.

5 changes: 2 additions & 3 deletions _layouts/post.html → _layouts/news-item.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: page
hide_hero: true
---

<div class="content">
Expand All @@ -15,8 +14,8 @@ <h1>{{ page.title }}</h1>
{{ content }}
</div>

<div class="tags">
<!-- <div class="tags">
{% for tag in page.tags %}
<span class="tag is-primary">{{ tag }}</span>
{% endfor %}
</div>
</div> -->
16 changes: 16 additions & 0 deletions _layouts/news-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default
---

{{ content }}

<div class="columns is-multiline">
{% for news-item in paginator.posts %}
<div class="column is-12">
{% include news-card.html %}
</div>
{% endfor %}
<div class="column is-12">
{% include pagination.html %}
</div>
</div>
11 changes: 2 additions & 9 deletions news/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
---
layout: blog
title: News Page Title
subtitle: <br/>
hero_link: heroButtonLink
hero_link_text: heroButtonText
show_sidebar: false
hero_image: heroImageSrc
hide_footer: false
hide_hero: true
layout: news-page
title: "News Page Title"
---


Expand Down

0 comments on commit 45d2388

Please sign in to comment.