Preheat the oven to 325 F. Line a loaf pan with parchment paper.
Place the onion and garlic in a food processor and pulse until chopped into small pieces. Add the rest of the ingredients until the mixture is smooth and pasty looking.
Scrape the mixture out of the food processor into the lined loaf pan. Press it down as much as you can. Bake for 60 minutes.
Remove from the oven and let cool. Pour off the excess fat (preferably into the trash can so it doesn't clog up your pipes) and then if possible, let chill in the fridge or on your counter for at least 20 minutes (this isn't necessary but does make slicing a lot easier).
Slice the loaf into thin, 1/4 inch wide slices. If you want to freeze the slices, do so at this point by laying each piece flat on a baking sheet or glass dish for several hours. Remove from the freezer, place small pieces of parchment in between each slice and place into a plastic bag for storing in the freezer. Go directly to the next step when needed.
Heat a pan over medium heat and then add your preferred cooking oil (coconut oil works well). Add the slices and cook for several minutes a side, until browned.