Skip to content

Commit

Permalink
Merge pull request #9 from ii/enable-emoji-for-content
Browse files Browse the repository at this point in the history
chore: enable emoji for content
  • Loading branch information
BobyMCbobs authored Dec 13, 2023
2 parents e809f10 + a0dbbdd commit 7685f9f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ languageCode = 'en-us'
title = 'ii'
theme = "ii"

enableEmoji = true

[taxonomies]
author = "authors"

Expand Down
2 changes: 1 addition & 1 deletion themes/ii/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="content center-column">
<h1 class="section-title">{{ .Title }}</h1>

{{ .Content }}
{{ .Content | emojify }}
<ul class="post-list">
{{ range .Pages }}
<li class="post-list__item">
Expand Down
4 changes: 2 additions & 2 deletions themes/ii/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ <h1 class="blog__title">{{ .Title }}</h1>
</div>
</div>
<div class="content">
{{ .Content }}
{{ .Content | emojify }}
</div>
</article>
</section>
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion themes/ii/layouts/contact/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class='contact center-column'>
<h1>{{ .Title }}</h1>
<div class="subtitle">
{{ .Content }}
{{ .Content | emojify }}
</div>
<form
id="contact_form"
Expand Down
2 changes: 1 addition & 1 deletion themes/ii/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/>
</figure>
<div class='hello'>
{{ .Content }}
{{ .Content | emojify }}
</div>
</div>
{{ end }}
4 changes: 2 additions & 2 deletions themes/ii/layouts/post/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ <h1 class="post__title">{{ .Title }}</h1>
</div>
</div>
<div class="post__content">
{{ .Content }}
{{ .Content | emojify }}
</div>
</article>
<nav class="back-nav">
<a href="/post">← back to posts</a>
</nav>
</section>
{{ end }}
{{ end }}
6 changes: 3 additions & 3 deletions themes/ii/layouts/projects/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<h1 class="section-title">{{ .Title }}</h1>

<div class="intro center-column">
{{ .Content }}
{{ .Content | emojify }}
</div>
<ul class="project-list">
{{ range sort (where .Pages "Params.status" "eq" "active") "Params.priority" "asc"}}
<li class="project-item">
<b class="project-name">{{ .Title }}</b>
<div class="project-description">
{{ .Content }}
{{ .Content | emojify }}
{{ .Params.url }}
<a class="project-link" href="{{ .Params.externalUrl | safeURL }}">
Learn more</a>
Expand All @@ -20,4 +20,4 @@ <h1 class="section-title">{{ .Title }}</h1>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions themes/ii/layouts/team/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ <h1>Our Team</h1>
<img src={{ .Params.photo }}>
</figure>
<div class="member-bio">
{{ .Content }}
{{ .Content | emojify }}
</div>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions themes/ii/layouts/team/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 class="post__title">{{ .Title }}</h1>
</div>
</div>
<div class="post__content">
{{ .Content }}
{{ .Content | emojify }}
</div>
<div>
<h2>Posts</h2>
Expand All @@ -35,4 +35,4 @@ <h2>Posts</h2>
<a href="/post">← back to posts</a>
</nav>
</section>
{{ end }}
{{ end }}

0 comments on commit 7685f9f

Please sign in to comment.