epidrome / cover-card

:necktie: Online business card with a minimal landing page theme for any social media or online presence account: fork, edit, and go!
https://epidrome.github.io/cover-card/
MIT License
108 stars 109 forks source link

[Feature Request] Ability to add some manual text or analytics code to page #18

Open bungabunga opened 5 years ago

bungabunga commented 5 years ago

It would be great to have an option to add some additional text to my page if (when) needed. Also that feature would be useful to add some analytics code if needed. Maybe that is already possible but I don't know how/where exactly I could do it.

epidrome commented 5 years ago

I have considered to include analytics in the original design, but I have been reluctant to add it.

Currently, there are several reasons against having analytics:

  1. The theme offers a single page, so there is not much to track with analytics
  2. If we add analytics, then we should also have several extra options in the configuration and the source code, because there is no single standard or preferred analytics provider
  3. The main goal of the theme is to be really minimal as described in the readme at the master branch, so we are looking to remove non-essential features rather than add extras

Of course, you can easily add analytics at your local version by modifying the default layout or even better, I am happy to accept a pull request that adds an include for a custom header file (similarly to too_social) that might contain the analytics code of preference for each installation.

bungabunga commented 5 years ago

actually my question was more about some very minimalistic change, closer to minimalistic cover-card approach: just to be able to publish some personal text on your personal page when needed. but if you'de be able to do that you'd also be able to publish a few lines of code from Statcounter or something similar. so, no dramatic changes, cover-card would still stay simple.

epidrome commented 5 years ago

The last couple of commits adds support for (virtually any type of) analytics snippet (or for any custom piece of code that one wants to put in the head): https://github.com/epidrome/cover-card/commit/76efc09e4c71c1032f9257efd74372b23aff13d6

if you want to add something visible (e.g., stat counter) then it is suggested to override the default header: https://github.com/epidrome/cover-card/blob/master/_includes/header.html

e.g., an extra line after the end of , of course, this kind of edit increases the chances of breakage in a future major update