{"id":16332167,"url":"https://github.com/dimaslanjaka/hexo-adsense","last_synced_at":"2025-03-20T23:30:27.729Z","repository":{"id":37464457,"uuid":"425714731","full_name":"dimaslanjaka/hexo-adsense","owner":"dimaslanjaka","description":"Hexo adsense support","archived":false,"fork":false,"pushed_at":"2024-10-31T15:53:29.000Z","size":9605,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T18:34:07.549Z","etag":null,"topics":["adsense","hexo","hexo-plugin","website"],"latest_commit_sha":null,"homepage":"https://www.webmanajemen.com/docs/hexo-adsense/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimaslanjaka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T05:54:40.000Z","updated_at":"2024-10-31T15:53:33.000Z","dependencies_parsed_at":"2023-01-31T19:15:50.693Z","dependency_job_id":"619e2e7f-cf64-449e-8efb-0eda7f73e37a","html_url":"https://github.com/dimaslanjaka/hexo-adsense","commit_stats":{"total_commits":225,"total_committers":2,"mean_commits":112.5,"dds":0.1466666666666666,"last_synced_commit":"7f1785da4d71fc2c56f8c17cbcb04760425031fd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-adsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-adsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-adsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaslanjaka%2Fhexo-adsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimaslanjaka","download_url":"https://codeload.github.com/dimaslanjaka/hexo-adsense/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244710250,"owners_count":20497215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adsense","hexo","hexo-plugin","website"],"created_at":"2024-10-10T23:29:27.849Z","updated_at":"2025-03-20T23:30:27.090Z","avatar_url":"https://github.com/dimaslanjaka.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-adsense\nHexo adsense support \n\n# Features\n- can display adsense to all pages except specific posts or pages (multiple supported)\n- can only display adsense to specific posts or pages\n- adsense javascript enchantments (lazy adsense included)\n- support display adsense on localhost\n- random display banner ads\n- automated display in random positions of pseudo html elements (such as header, new line `\u003cbr/\u003e`, after pretext `\u003cpre/\u003e`) useful for increasing **RPM** and **CTR** Adsense Prices.\n\n# Demos\n- [My Blog www.webmanajemen.com](https://www.webmanajemen.com/NodeJS/eslint-prettier-typescript-vscode.html)\n\ntry reload page\n\n# Installation\nUsing Git Repository (Development)\n```shell\nnpm i git+https://github.com/dimaslanjaka/hexo-adsense.git\n```\nUsing NPM Repository (Production)\n```shell\nnpm i hexo-adsense\n```\n\n### _config.yml\n```yaml\n# https://github.com/dimaslanjaka/hexo-adsense\nadsense:\n  # enable(true) or disable(false)\n  enable: true\n  # ca-pub-xxxx\n  pub: ca-pub-1165447249910969\n  # in-article ads source\n  article_ads:\n    - \"source/ads/in_article.html\"\n    - \"source/ads/in_article2.html\"\n  # ads field\n  field: \"site\" # post=only post, site=all pages and posts\n  # auto redirect to https\n  https: true\n  # block user with adblock enabled\n  adblock: true\n  # exclude pattern to disable adsense\n  exclude:\n    - \"*.min.html\"\n    - \"exclude/**/*\"\n```\n\n### Article Ads\n\u003e include to config article_ads\n```yaml\nadsense:\n  article_ads:\n    - \"source/ads/in_article.html\"\n```\n\u003e `source/ads/in_article.html` contents\n```html\n\u003c!--REMOVE ADSENSE SCRIPT, THIS PLUGIN ALREADY OPTIMIZED THE ADSENSE JAVASCRIPT--\u003e\n\u003c!--\u003cscript async src=\"//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxx\" crossorigin=\"anonymous\"\u003e\u003c/script\u003e--\u003e\n\u003cins class=\"adsbygoogle\"\n     style=\"display:block; text-align:center;\"\n     data-ad-layout=\"in-article\"\n     data-ad-format=\"fluid\"\n     data-ad-client=\"ca-pub-xxxxx\"\n     data-ad-slot=\"xxxxx\"\u003e\u003c/ins\u003e\n\u003c!--script\u003e\n     (adsbygoogle = window.adsbygoogle || []).push({});\n\u003c/script--\u003e\n```\n\n# disable options\n\u003e to disable adsense on pattern `_config.yml` or set each post `adsense: false`.\n\n\u003chr\u003e\n\n### Enable all except specific post\n\u003e enable adsense on all pages except spescific posts or pages.\n\u003e set `_config.yml`\n```yaml\nadsense:\n  enable: true\n  field: \"site\"\n  #... pub, article_ads, etc\n```\n\u003e set post header\n```yaml\ntitle: \"Post title\"\nadsense: false\ntags:\n  - tags1\n  - tags2\n```\n\n\u003chr\u003e\n\n### Disable all except post\n\u003e disable adsense on all pages and posts, except specific posts\n\u003e set `_config.yml`\n```yaml\nadsense:\n  enable: false # adsense disabled globally\n  #... pub, article_ads, etc\n```\n\u003e set post header\n```yaml\ntitle: \"Post title\"\nadsense: true # adsense will shown only for post with header `adsense: true` / enabled\ntags:\n  - tags1\n  - tags2\n```\n\n## Footnote\nfirst development finished on 12 November 2021\n\n# Website using Hexo NodeJS Blogging System\n\n[![Test And Deploy](https://github.com/dimaslanjaka/static-blog-generator-hexo/actions/workflows/test.yml/badge.svg)](https://github.com/dimaslanjaka/static-blog-generator-hexo/actions/workflows/test.yml)\n[![GitHub](https://badgen.net/badge/icon/github?icon=github\u0026label\u0026style=flat-square)](https://github.com/dimaslanjaka/dimaslanjaka.github.io/tree/compiler)\n[![webmanajemen.com](https://img.shields.io/website.svg?down_color=red\u0026down_message=down\u0026style=flat-square\u0026up_color=green\u0026up_message=up\u0026label=webmanajemen.com\u0026url=https://webmanajemen.com)](https://webmanajemen.com)\n\n## hexo-adsense\n[![npm version](https://badge.fury.io/js/hexo-adsense.svg?style=flat-square)](https://badge.fury.io/js/hexo-adsense)\n[![Npm package yearly downloads](https://badgen.net/npm/dy/hexo-adsense?style=flat-square)](https://npmjs.com/package/hexo-adsense)\n[![Minimum node.js version](https://badgen.net/npm/node/hexo-adsense?style=flat-square)](https://npmjs.com/package/hexo-adsense)\n![GitHub repo size](https://img.shields.io/github/repo-size/dimaslanjaka/hexo-adsense?label=Repository%20Size\u0026style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/dimaslanjaka/hexo-adsense?color=blue\u0026label=Last%20Commit\u0026style=flat-square)\n\n## hexo-seo\n[![npm version](https://badge.fury.io/js/hexo-seo.svg?style=flat-square)](https://badge.fury.io/js/hexo-seo)\n[![Npm package yearly downloads](https://badgen.net/npm/dy/hexo-seo?style=flat-square)](https://npmjs.com/package/hexo-seo)\n[![Minimum node.js version](https://badgen.net/npm/node/hexo-seo?style=flat-square)](https://npmjs.com/package/hexo-seo)\n![GitHub repo size](https://img.shields.io/github/repo-size/dimaslanjaka/hexo-seo?label=Repository%20Size\u0026style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/dimaslanjaka/hexo-seo?color=blue\u0026label=Last%20Commit\u0026style=flat-square)\n\n## hexo-blogger-xml\n[![npm version](https://badge.fury.io/js/hexo-blogger-xml.svg?style=flat-square)](https://badge.fury.io/js/hexo-blogger-xml)\n[![Npm package yearly downloads](https://badgen.net/npm/dy/hexo-blogger-xml?style=flat-square)](https://npmjs.com/package/hexo-blogger-xml)\n[![Minimum node.js version](https://badgen.net/npm/node/hexo-blogger-xml?style=flat-square)](https://npmjs.com/package/hexo-blogger-xml)\n![GitHub repo size](https://img.shields.io/github/repo-size/dimaslanjaka/hexo-blogger-xml?label=Repository%20Size\u0026style=flat-square)\n![GitHub last commit](https://img.shields.io/github/last-commit/dimaslanjaka/hexo-blogger-xml?color=blue\u0026label=Last%20Commit\u0026style=flat-square)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaslanjaka%2Fhexo-adsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimaslanjaka%2Fhexo-adsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaslanjaka%2Fhexo-adsense/lists"}