Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #101 add icon for instagram #102

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 1 addition & 44 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,50 +243,6 @@ td,th {
-moz-osx-font-smoothing: grayscale
}

/*.icon-star:before {
content: '\e800'
}

.icon-mail:before {
content: '\e801'
}

.icon-globe:before {
content: '\e802'
}

.icon-arrow-left:before {
content: '\e803'
}

.icon-arrow-right:before {
content: '\e804'
}

.icon-search:before {
content: '\e805'
}

.icon-rss:before {
content: '\e807'
}

.icon-twitter:before {
content: '\f099'
}

.icon-facebook:before {
content: '\f09a'
}

.icon-menu:before {
content: '\f0c9'
}

.icon-linkedin:before {
content: '\f0e1'
} */

.icon-star:before { content: '\e800'; } /* '' */
.icon-rss:before { content: '\e801'; } /* '' */
.icon-posts:before { content: '\e802'; } /* '' */
Expand All @@ -304,6 +260,7 @@ td,th {
.icon-github:before { content: '\e80e'; } /* '' */
.icon-reddit:before { content: '\e80f'; } /* '' */
.icon-mail:before { content: '\e816'; } /* '' */
.icon-instagram:before { content: '\f16d'; } /* '' */

@font-face {
font-family: 'Libre Baskerville';
Expand Down
3 changes: 3 additions & 0 deletions static/font/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
The icons are generated from https://fontello.com/

Refer the [config.json](config.json) for the list of icons and their respective unicode.


star - Font Awesome, star-empty - e800
rss - Font Awesome, rss - e801
Expand All @@ -18,3 +20,4 @@ linkedin - Entypo, linkedin - e80d
github - Zocial, github-circled - e80e
reddit - Font Awesome, reddit-alien- e80f
mail - Font Awesome, mail - e816
instagram - Font Awesome, instagram - f16D
8 changes: 7 additions & 1 deletion static/font/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@
"css": "menu",
"code": 59402,
"src": "fontawesome"
},
{
"uid": "4c1ef492f1d2c39a2250ae457cee2a6e",
"css": "instagram",
"code": 61805,
"src": "fontawesome"
}
]
}
}
Binary file modified static/font/icon.eot
Binary file not shown.
8 changes: 5 additions & 3 deletions static/font/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/font/icon.ttf
Binary file not shown.
Binary file modified static/font/icon.woff
Binary file not shown.
Binary file modified static/font/icon.woff2
Binary file not shown.
3 changes: 3 additions & 0 deletions templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ <h4 class="post-author-name"><a href="{{ SITEURL }}/{{author.url}}">{{author_nam
{% if AUTHOR_META[author.name.lower()].twitter %}
<span class="post-author-twitter"><a target="_blank" href="https://twitter.com/{{AUTHOR_META[author.name.lower()].twitter}}"><i class="icon icon-twitter"></i> Twitter</a></span>
{% endif %}
{% if AUTHOR_META and AUTHOR_META[author.name.lower()] and AUTHOR_META[author.name.lower()].instagram %}
<a target="_blank" href="https://instagram.com/{{AUTHOR_META[author.name.lower()].instagram}}"><i class="icon icon-instagram"></i><span>Instagram</span></a>
{% endif %}
</div>
<div class="clear"></div>
</aside>
Expand Down
3 changes: 3 additions & 0 deletions templates/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ <h2 class="archive-title">{{author_name}}</h2>
{% if AUTHOR_META and AUTHOR_META[author.name.lower()] and AUTHOR_META[author.name.lower()].twitter %}
<a target="_blank" href="https://twitter.com/{{AUTHOR_META[author.name.lower()].twitter}}"><i class="icon icon-twitter"></i><span>Twitter</span></a>
{% endif %}
{% if AUTHOR_META and AUTHOR_META[author.name.lower()] and AUTHOR_META[author.name.lower()].instagram %}
<a target="_blank" href="https://instagram.com/{{AUTHOR_META[author.name.lower()].instagram}}"><i class="icon icon-instagram"></i><span>Instagram</span></a>
{% endif %}
</span>
</div>
{% if selected_cover %}
Expand Down
Loading