Skip to content

Instantly share code, notes, and snippets.

View midoghranek's full-sized avatar
☑️

Muhammad Abu 'l-Gharaniq midoghranek

☑️
View GitHub Profile
@midoghranek
midoghranek / comments box code
Last active December 25, 2015 18:19
Best way to add facebook comments to blogger
<b:if cond='data:blog.pageType == "item"'>
<div class="fb-comments" expr:data-href='data:post.url' data-colorscheme="light" data-numposts="5" data-width="600"></div>
<b:if/>
<!-- under <head> tag -->
<link href='http://cdn.jsdelivr.net/darfonts/0.1/dinone-dintwo-sstext-ssthree/stylesheet.css' rel='stylesheet'/>
<style>body{font-family: 'ge_dinar_tworegular'!important;font-size: 13px!important;font-weight: 400!important;}</style>
@midoghranek
midoghranek / XML Flle
Created August 1, 2014 15:18
Blogger post widget
<b:section class='main' id='main' showaddelement='yes'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
</b:section
@midoghranek
midoghranek / Socialhover
Created August 5, 2014 21:18
Socialhover icons for blogger.com
<div id='social'>
<a class='facebook' title='facebook' href='#'>
<i class="fa fa-facebook"></i>
</a>
<a class='twitter' title='twitter' href='#'>
<i class="fa fa-twitter"></i>
</a>
<a class='gplus' title='Google plus' href='#'>
<i class="fa fa-google-plus"></i>
</a>
@midoghranek
midoghranek / Hide_Sidebar
Created August 11, 2014 06:34
Hide Sidebars in item page only
<b:if cond='data:blog.pageType == "item"'>
<style type="text/css">
#sidebar-wrapper, #sidebar-wrapper2 {
display: none;
}
#main-wrapper {
width: 100%;
margin-right: 0;
float: none;
clear: both;
<script type='text/javascript'>
// BloggerJS v0.3.1
// Copyright (c) 2017-2018 Kenny Cruz
// Licensed under the MIT License
// Configuration -----------
var postsDatePrefix = false;
var accessOnly = false;
var useApiV3 = false;
@midoghranek
midoghranek / ubuntu-nextjs-nginx-config-file
Created November 21, 2022 07:48 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name domainname.com;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;