-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use config.toml to manage footer links & svgs
- Loading branch information
Showing
6 changed files
with
724 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
<footer class="footer"> | ||
<a class="footer_item" href="/link1">Link 1</a> | ||
<a class="footer_item" href="/link2">Link 2</a> | ||
<span class="footer_item"> © {{ now.Format "2006" }} {{ .Site.Params.author.name }}</span> | ||
<span class="footer_item"> </span> | ||
| ||
<a class="rss" href="/feed.xml"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 512 512" fill="currentcolor"> | ||
<title>RSS</title> | ||
<path d="M108.56,342.78a60.34,60.34,0,1,0,60.56,60.44A60.63,60.63,0,0,0,108.56,342.78Z"></path> | ||
<path | ||
d="M48,186.67v86.55c52,0,101.94,15.39,138.67,52.11s52,86.56,52,138.67h86.66C325.33,312.44,199.67,186.67,48,186.67Z"> | ||
</path> | ||
<path d="M48,48v86.56c185.25,0,329.22,144.08,329.22,329.44H464C464,234.66,277.67,48,48,48Z"></path> | ||
</svg> | ||
</a> | ||
|
||
<div class="footer_social-icons"> | ||
{{- partial "socialIcons.html" site.Params.socialIcons -}} | ||
</div> | ||
<small class="footer_copyright"> | ||
<a href="https://github.com/hugo-sid/hugo-blog-awesome" target="_blank" rel="noreferrer noopener">Hugo blog awesome</a> | ||
© {{ now.Format "2006" }} {{ .Site.Params.author.name }}. | ||
Powered by <a href="https://github.com/hugo-sid/hugo-blog-awesome" target="_blank" rel="noreferrer noopener">Hugo blog awesome</a> | ||
theme on | ||
<a href="https://gohugo.io" target="_blank" rel="noreferrer noopener">Hugo</a> | ||
<a href="https://gohugo.io" target="_blank" rel="noreferrer noopener">Hugo</a>. | ||
</small> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- range . }} | ||
<a href="{{ trim .url " " }}" target="_blank" rel="noopener noreferrer me" title="{{ (.title | default .name) | title }}"> | ||
{{ partial "svgs/svgs.html" . }} | ||
</a> | ||
{{- end }} |
Oops, something went wrong.