Skip to content

Commit

Permalink
adição fb, insta e pixel de meta (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
m00sp authored Jan 12, 2025
1 parent 54e4ae9 commit e5cb8a4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
9 changes: 3 additions & 6 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ taxonomies = [
### size: s150, s140, s130, s120, s110, s95, s90, s85, s80, s75, s70, false(full size)
### divider: " " "·" "•"
###############################################################################
username = "Luis TI"
user_title = "Hardware e Software"
user_description = "Bicycle rights irony actually neutra typewriter lyfaxidermy -up ugh bushwick chia lo-f Occupy bitters pour-over snackwave you probably haven't heard of them small batch.Cornholemustache man bun letterpress echo par."
menu = [
# {url = "home", name = "_", slash = true, blank = false, size="s110"},
# {url = "archive", name = "Arquivo", slash = true, blank = false, size="s110"},
Expand Down Expand Up @@ -168,7 +165,7 @@ copyright_override = '© $CURRENT_YEAR $SITE_TITLE'
###############################################################################

title_separator = "|" # Separator between title and title_addition, set as |, -, _, etc
title_addition = "Hardware and Software" # a default value for title addition
title_addition = "Hardware e Software" # a default value for title addition
author = "Luis Ricardo Martínez Díaz" # Put Your Name here
keywords = "Abridge, Abridge.css, Zola, Theme, Zola Theme, getzola, Semantic Html, Fast, lightweight" # used for the primary site index
#banner = "banner.png" # Used as default image for OpenGraph/Twitter if page specific image is undefined.
Expand All @@ -194,7 +191,7 @@ mail = "[email protected]"
#kofi = "your-user-name"
#discord = "your-discord" # Everything after https://discord.com/ eg: invite/my-server *or* servers/my-server-id
#twitter = "your-user-name"
#facebook = "your-user-name"
facebook = "448409651699652"
linkedin = "luis-ricardo-martínez-díaz"
#gitlab = "your-user-name"
github = "m00sp"
Expand All @@ -204,7 +201,7 @@ github = "m00sp"
#python = "your-user-name"
#docker = "your-user-name"
#stack = "your-user-name"
#instagram = "your-user-name"
instagram = "luis_ti.dev.br"
#pixelfed = "https://pixelfed.example.com/" # Heaviest icon, off by default
#pinterest = "your-user-name"
#twitch = "your-user-name"
Expand Down
4 changes: 2 additions & 2 deletions sass/abridge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$icon-buymeacoffee: false,
$icon-kofi: false,
$icon-twitter: false,
$icon-facebook: false,
$icon-facebook: true,
$icon-linkedin: true,
$icon-codeberg: false,
$icon-gitlab: false,
Expand All @@ -38,7 +38,7 @@
$icon-python: false,
$icon-docker: true,
$icon-stack: false,
$icon-instagram: false,
$icon-instagram: true,
$icon-pixelfed: false,
$icon-pinterest: false,
$icon-discord: false,
Expand Down
3 changes: 3 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% import "m00macros.html" as m00macros %}
{% extends "abridge/templates/base.html" %}
{% block comments_init %}
{{ m00macros::m00pixel() }}
{% endblock comments_init %}
{% block header %}
{{ m00macros::m00skip() }}
{{ super() }}
Expand Down
20 changes: 20 additions & 0 deletions templates/m00macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,23 @@
</a>
</div>
{% endmacro %}

{% macro m00pixel() %}
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1157605809271676');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1157605809271676&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
{% endmacro %}

0 comments on commit e5cb8a4

Please sign in to comment.