Comments (2)
So, this is my svg value.
Thanks for the quick reply! Looks like a few small differences like the viewbox in the SVG markup made the difference and it works for me now too. Thanks!
from astro-paper.
Hello @jschuur
Your works in src/config.ts
and src/types.ts
seem to be fine.
The problem is your svg value in src/assets/socialIcons.ts
.
I tried testing with the svg downloaded from svgrepo (which you provided) and tweaked a little bit. I think it looks okay now.
So, this is my svg value.
const socialIcons: SocialIcons = {
// other social icons ...
Mastodon: `<svg class="icon-tabler" viewBox="-10 -5 1034 1034" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<path fill="currentColor"
d="M499 112q-93 1 -166 11q-81 11 -128 33l-14 8q-16 10 -32 25q-22 21 -38 47q-21 33 -32 73q-14 47 -14 103v37q0 77 1 119q3 113 18 188q19 95 62 154q50 67 134 89q109 29 210 24q46 -3 88 -12q30 -7 55 -17l19 -8l-4 -75l-22 6q-28 6 -57 10q-41 6 -78 4q-53 -1 -80 -7
q-43 -8 -67 -30q-29 -25 -35 -72q-2 -14 -2 -29l25 6q31 6 65 10q48 7 93 9q42 2 92 -2q32 -2 88 -9t107 -30q49 -23 81.5 -54.5t38.5 -63.5q9 -45 13 -109q4 -46 5 -97v-41q0 -56 -14 -103q-11 -40 -32 -73q-16 -26 -38 -47q-15 -15 -32 -25q-12 -8 -14 -8
q-46 -22 -127 -33q-74 -10 -166 -11h-3zM367 267q73 0 109 56l24 39l24 -39q36 -56 109 -56q63 0 101 43t38 117v239h-95v-232q0 -74 -61 -74q-69 0 -69 88v127h-94v-127q0 -88 -69 -88q-61 0 -61 74v232h-95v-239q0 -74 38 -117t101 -43z" />
</svg>`,
};
If you still have some problems, let me know.
from astro-paper.
Related Issues (20)
- SVG logo doesn't inherit style
- Create a default docker compose configuration
- Upgrade from version 2 to 3 HOT 1
- Tailwind background color not applied HOT 1
- Render tag name without slug when title HOT 6
- Enhancement: Get rid of custom "postSlug" property and slugify the Astro way HOT 1
- Upgrade to astro 4.0 HOT 12
- Edit page HOT 1
- Redirect page on google HOT 2
- Is pubDatetime filled in manually every time? HOT 4
- Searching for article behaviour HOT 2
- Recent posts is empty if all the current posts are marked as featured HOT 3
- Adding reading time post does not include the Tag files HOT 2
- feat-req: A guide on how to add in better fenced code block output support
- astro updated in the meantime HOT 1
- feat-req: Guide on how to upgrade versions HOT 1
- Can more View Transitions be used
- How to change the link preview image? HOT 1
- Weird line break in inline code
- Schedule posts if pubDateTime has not been reached
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-paper.