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

Add favicons and logo #40

Merged
merged 1 commit into from
Jun 10, 2023
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
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.