Skip to content

Commit

Permalink
added social links
Browse files Browse the repository at this point in the history
  • Loading branch information
doomy committed Sep 8, 2024
1 parent fd0e8f2 commit 046e266
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ highlight_themes_css = [
# feather_theme = "dark"
feather_head = ""
feather_hide_nav_image = false
# feather_social = { url = "https://mastodon.social/@doomy", display = "@doomy@mastodon.social" }
# feather_disqus_domain = "mysite-com"
3 changes: 1 addition & 2 deletions sass/feather.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ section {

.info {
span {
// padding: 0px;
a {
text-decoration: none;
text-decoration: underline;
color: inherit;
font-weight: inherit;

Expand Down
8 changes: 6 additions & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
<h2>{{ page.title }}</h2>
<div class="info">
<span>{{ page.date | date(format="%Y %b %d") }}</span>
<span class='divider' />
<span>{{ page.reading_time }} minute read</span>

{% if config.extra.feather_social %}
<span class='divider' />
<a href="{{config.extra.feather_social.url}}" target="_blank">{{ config.extra.feather_social.display }}</a>
{% endif %}

{% if page.category %}
<span class='divider' />
<!-- link to page category if user is building categories -->
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ feather_disqus_domain = ""
feather_head = ""
feather_hide_nav_image = false
feather_cusdis_id = ""

# feather_social = { url = "https://mastodon.social/@doomy", display = "@doomy@mastodon.social" }

[author]
name = "doomy"
Expand Down

0 comments on commit 046e266

Please sign in to comment.