I was wondering if there is a way to get the contibutors to a page on github pages using the github-metadata gem. I know that you can use site.github.contributors to get all the contributors to the site, but I was wondering specifically about getting the contributors to that page.
For example, on Primer's documentation, they have the contributors to the current page at the bottom of that page:
Source: Primer UI Patterns: Empty states
Thank you so much!
Related
I'm developing an encyclopedia-type site, of sorts. Essentially the site contains pages for words, definitions, concepts, and blog posts, and I intend to add a new page/post every week or so. I currently have about 40 HTML pages for each post. Previously I had been publishing a repository of the site to Github Pages, but recently I made the decision to host my website through Netlify. So far, I've enjoyed Netlify's features and it has improved my development process pretty well.
However, my website remains static. To be clear, I haven't created the site's files with a static site generator such as Next.js or Jekyll. I wanted the project to be a practice for hard-coding. The only files in the directory currently are HTML, CSS, and JS files (along with git attributes and things like icons and fonts) I've looked through Netlify's web applications and functions sections, however, nothing that I've found really hits the mark, whether it's because I'm a new user to Netlify, or because I don't necessarily have much experience in site indexing and/or back-end applications.
My question is, how can I implement a search bar and a title search functionality to the homepage of my static site? This would be for the process of viewers to easily find any specific post of mine once visiting. I would want the search bar to ONLY search the title of each html file (at least for now) in a designated folder I have for posts. Additional questions would be which, if any, web apps should I use to accomplish this, and should I consider changing the process of which I develop and host the site to accommodate for these?
Look at Lunr.js / ElasticLunr.js. Both allow you to create an index as a file and provide Javascript access that can be embedded in your page.
I'm currently working through that process now.
I think as you are not using database you can't have search functionality within the application. but you can google search within your website.
Check this out.
https://cse.google.com/cse/
we are implementing our current site in AMP version and i am new to this. I have below queries regarding AMP -
How to get user input from user in AMP-HTML.
In the above mentioned site [desktop version] we have comment section at the bottom of the page. We need to implement the same functionality in AMP.
Are there any websites which are build and developed in AMP? If yes, i need links to check.
Any suggestion and ideas related to above queries would be appreciated.
Thanks.
It is still under experimental.
See: https://github.com/ampproject/amphtml/blob/a2477e1790d604dbc01997b6e0a9fe42ac6fa799/extensions/amp-form/amp-form.md
I am developing a blog using Jekyll. I've been reading over the documentation, however I realized that I haven't seen anything about followers. Does Jekyll offer an option for people to follow a blog, as well as a means to keep track of followers?
Thanks for your help!
You would have to extend the functionality of Jekyll with a custom plugin to build followers with the site. You can use social media to promote and build followers. Jekyll is just a static site/blog generator.
I would look at adding a plugin like addthis for social, etc. This will allow your users to promote content on the various social platforms.
"Does Jekyll offer an option for people to follow a blog, as well as a means to keep track of followers?"
The answer to that question is NO.
You can build your own plugin, but having a dynamic (user influenced) number on your website does not fit the concept of a static site (and is therefore not part of Jekyll).
A RSS feed that uses server metrics (log files) to measure the amount of readers, however, fits the Jekyll concept perfectly. A mailing list, like Brandon suggests, is also a very good solution. Adding spyware through AddThis works too, but that would be my very last resort. However, these are not solutions 'Jekyll offers'. Therefore, the answer remains 'no'.
Are iframes still widely in use today?
I am coding a site with divs, and I want everything to appear in the container div. Is it possible to do it without coding the header + nav into each page and have the content show at the exact same spot without using iframes?
I did a quick Google search and found a post that said it's not possible, but my site will have quite a bit of links.
As of right now, I am coding it with Tumblr, and the hashtags in the posts would act as links to a section of posts (Ex: #blog would retrieve every post under the "blog" link). What are some widely used ways to target links on a website?
If you are creating a multi-page website, it would be helpful to have the HTML content be generated dynamically or be built statically from template files. You don't want to manually update the same content across multiple HTML files.
Dynamic Pages
There are several options for dynamically generating HTML content depending on the software available to you. For example, PHP is a popular language for web development and is available through many web hosts.
Static Pages
It is possible to build static HTML documents from templates using something like Jekyll.
I'm not sure if I'm interpreting what you mean by "coding it with Tumblr" correctly or not, but I think you mean you're making a Tumblr site with their built-in HTML editing capability.
I think you'll have a very difficult time achieving the behavior you desire there. I think you're trying to create something resembling a single-page application. Tumblr probably just allows basic static HTML with little Javascript. The suggestion Kyle made about using PHP or something like that won't work because that code must be executed on a server, and Tumblr doesn't provide that capability to my knowledge.
If you really want this kind of functionality, you probably should get some paid web hosting and develop your web development skills. It's not a simple task, but it's fun!
Sorry if I underestimated you or anything. Just trying to read between the lines. It seems to me that you may be relatively new to web development given the content of your post, and I'm trying to nudge you in the right direction constructively.
I'm looking at things that can distinguish a blog from a normal website. These are things that a program needs to be able identify from the html of a website or particular features that a site supports. For eg. pings. The same for news websites.
I'm working on a blog/news monitor program and it will index sites to automatically determine if it is a blog or a news site and then monitor user feedback in comments etc on posts from sites that it determines to be of a blog or news nature.
So what i'm really after is suggestions on what i can use or look out for in identifying these sites.
It's going to be a desktop app written in java so if you have any code specifics in java that'll be great.
thanks in advance
You can search the page for the word "blog", as this will probably be present. Specifically, you can look for it in parts of the HTML page, or exclude parts - like links. This will give you a decent starting point.
Ultimately, though, this is something that will have to be done manually. You should construct an interface for people to specify if it's a blog or news site, or different features of it, when the site is submitted. Then you should create a database of sites and features, and flag them so that you or another administrator can review them and make changes. Once you do this for a site, you'll never need to do it again, so for example http://*.wordpress.com/ is all going to be blogs.
Some features you can automatically detect or get a pretty good chance of detecting, but ultimately you will need a manual review.
Look for a discoverable RSS or Atom feed, which should be present on a blog or serially-updated news site.