Skip to content

Commit

Permalink
Merge pull request #40 from librarianphp/favicon
Browse files Browse the repository at this point in the history
Add favicons and logo
  • Loading branch information
erikaheidi authored Jun 10, 2023
2 parents d0fcd15 + 20c5750 commit 56206c2
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/art export-ignore
CONTRIBUTING.md export-ignore
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div align="center">
<img src="https://github.com/librarianphp/librarian/raw/main/art/logo.png" alt="Librarian" width="400"/>
<h1>Librarian</h1>
<h4>Static site builder and Markdown document indexer inspired by Hugo but written in PHP.</h4>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/Resources/public/img/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/Resources/public/img/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/Resources/public/img/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/Resources/public/img/favicon.ico
Binary file not shown.
Binary file added app/Resources/public/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions app/Resources/public/img/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Librarian",
"short_name": "Librarian",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone",
"icons":[
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
2 changes: 1 addition & 1 deletion app/Resources/themes/default/_partials/sidebar.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="column blog-sidebar">
<div class="px-4 py-6 mb-6 bg-gray-50 mt-6 rounded-md shadow-lg">
<div class="text-center mx-auto">
<img class="mx-auto rounded-full" src="https://picsum.photos/seed/128/128">
<img class="mx-auto rounded-full" src="/img/logo.png">
<h3 class="text-2xl my-2">About</h3>
</div>

Expand Down
5 changes: 5 additions & 0 deletions app/Resources/themes/default/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@

<link href="{{ site_root() }}css/app.css" rel="stylesheet">

<link rel="apple-touch-icon" sizes="180x180" href="{{ site_url() }}/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ site_url() }}/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ site_url() }}/img/favicon-16x16.png">
<link rel="manifest" href="{{ site_url() }}/img/site.webmanifest">

{% block includes %}
{% endblock %}
</head>
Expand Down
Binary file added art/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion content/page/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ I can be extended for dynamic content as well, and I can have dynamic content so

By default, I can serve static (markdown) content from my content dir, and I can also build a static HTML site with the same content.

Check https://github.com/librarianphp/librarian for more information and tips.
Check https://github.com/librarianphp/librarian for more information and tips.

0 comments on commit 56206c2

Please sign in to comment.