Skip to content

Commit

Permalink
fix favicons
Browse files Browse the repository at this point in the history
  • Loading branch information
dadatuputi committed Oct 25, 2024
1 parent d2d30c7 commit 10c267b
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
docs
Binary file added src/favicon.ico
Binary file not shown.
Binary file added src/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/includes/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ head
meta(name='description' content='')
meta(name='author' content='')
title USAF Links
link(rel='icon' href=USAFIcon)

//- SVG favicon for modern browsers
link(rel='icon' type='image/svg+xml' href='/static/usaf.svg')
link(rel='icon' type='image/svg+xml' href='/favicon.svg')
//- Alternative PNG favicon
link(rel='icon' type='image/png' sizes='32x32' href='/favicon.png')
//- Traditional favicon for search engines and older browsers
link(rel='icon' type='image/x-icon' href='/favicon.ico')


//- CSS
style
include css/bootstrap.5.2.3.min.css
Expand All @@ -20,7 +29,7 @@ mixin navigation
nav.navbar.navbar-expand-lg.navbar-dark.bg-spice-brown.sticky-top
.container
a.navbar-brand(href='/')
img.d-inline-block.align-text-top(height='30' src=USAFIcon)
img.d-inline-block.align-text-top(height='30' src='/static/usaf.svg')
| USAF Links
button.navbar-toggler(type='button' data-bs-toggle='collapse' data-bs-target='#navbarResponsive' aria-controls='navbarResponsive' aria-expanded='false' aria-label='Toggle navigation')
span.navbar-toggler-icon
Expand Down
2 changes: 0 additions & 2 deletions src/includes/static.pug

This file was deleted.

13 changes: 7 additions & 6 deletions src/index.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include includes/static.pug

doctype html
html.bg-spice-brown(lang='en')

Expand Down Expand Up @@ -50,10 +48,13 @@ html.bg-spice-brown(lang='en')
section#correction.bg-olive-drab.text-center
.container
h2 Request Link Addition
p.lead
| If you want to add a link, submit one through GitHub:
a(href='https://github.com/dadatuputi/aflink/blob/master/README.md')
img(width='25' src=GHIcon)
.lead.d-flex.justify-content-center.align-items-center
p.m-0
| If you want to add a link,
a(href='https://github.com/dadatuputi/aflink/blob/master/README.md').text-decoration-none.text-reset
| submit one through GitHub:
a(href='https://github.com/dadatuputi/aflink/blob/master/README.md').ps-4.d-flex.align-items-center
img(width='48' src='/static/github.svg' alt='GitHub')
section#footer.bg-spice-brown.py-1.text-end
em
| Synced with AF portal #{date}
Expand Down
1 change: 1 addition & 0 deletions src/static/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/static/usaf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/tutorial.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include includes/static.pug

doctype html
html.bg-spice-brown(lang='en')
include includes/head.pug
Expand Down

0 comments on commit 10c267b

Please sign in to comment.