{"id":13791286,"url":"https://github.com/jskherman/inadsense","last_synced_at":"2026-02-12T22:02:27.718Z","repository":{"id":136729000,"uuid":"539569899","full_name":"jskherman/inadsense","owner":"jskherman","description":"A Quarto.org extension to add Google Adsense in-article ad support via a shortcode","archived":false,"fork":false,"pushed_at":"2022-09-21T17:16:05.000Z","size":57,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T11:18:35.668Z","etag":null,"topics":["adsense","blog","quarto","quarto-extension","shortcode","website"],"latest_commit_sha":null,"homepage":"https://jskherman.quarto.pub/inadsense-extension-website/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jskherman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-09-21T15:56:19.000Z","updated_at":"2024-10-15T06:58:04.000Z","dependencies_parsed_at":"2024-01-05T23:49:07.288Z","dependency_job_id":null,"html_url":"https://github.com/jskherman/inadsense","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskherman%2Finadsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskherman%2Finadsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskherman%2Finadsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jskherman%2Finadsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jskherman","download_url":"https://codeload.github.com/jskherman/inadsense/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868766,"owners_count":21174758,"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","blog","quarto","quarto-extension","shortcode","website"],"created_at":"2024-08-03T22:00:58.299Z","updated_at":"2026-02-12T22:02:22.696Z","avatar_url":"https://github.com/jskherman.png","language":"Lua","funding_links":[],"categories":["Extensions"],"sub_categories":[],"readme":"# Google Adsense Extension for Quarto\n\nThis extension provides [shortcode](https://quarto.org/docs/extensions/shortcodes.html) support for including ad units into Quarto html documents on a website or blog.\n\n## Installing\n\n```sh\nquarto install extension jskherman/inadsense\n```\n\nThis will install the extension under the `_extensions` subdirectory.\nIf you're using version control, you will want to check in this directory.\n\n## Usage\n\nIt is required that you need to specify `cookie-consent` and Google Adsense credentials in `_quarto.yml` first before you can insert ad units.\n\nExample: \n```yaml\nwebsite:\n  cookie-consent:\n    type: express # or implied\n\nadsense:\n    client: \"ca-pub-xxxxxxxxxxxxxxxx\"   # data-ad-client\n    slot:   \"1234567890\"                # data-ad-slot\n```\n\nYou can get your credentials by signing up for a [Google Adsense account](https://www.google.com/adsense/start/), going to the `Ads` option on the left sidebar and creating a new in-article ad. For more information please refer to how this was achieved via Hugo by at godo.dev: [Inserting an Ad Unit to Hugo Content without Shortcode](https://www.godo.dev/tutorials/hugo-in-article-ad/)\n\n![Google Adsense](/assets/adsense.png)\n\nAfter that, you can then use the shortcode `{{\u003c inadsense \u003e}}` in your `qmd` files to embed ad units in pages.\n\n## Example\n\n```markdown\n**Hi world**! *Below* this text you can find an ad by replacing it with a javascript `\u003cscript\u003e` block.\n\n{{\u003c inadsense \u003e}}\n\nAbove this line is an ad, with a label under it that says \"Advertisement\". Nothing will show up yet because you need to accept the cookie consent for ads and targeting cookies first.\n```\n\nHere is also an example of the shortcode used in a website.\n- [Quarto Document](/example.qmd)\n- [Quarto HTML Output](https://jskherman.quarto.pub/inadsense-extension-website/)\n\n## Limitations\n\n- Uses only in-article ad units of Google Adsense\n- Only supports `html` format in Quarto websites or blogs.\n\nNote: The format must be `html` and a website because this only makes sense for that context (duh ;P).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskherman%2Finadsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjskherman%2Finadsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjskherman%2Finadsense/lists"}